OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
impulse.hpp
1#pragma once
2#include <ossia/detail/config.hpp>
3namespace ossia
4{
5class value;
6
22struct OSSIA_EXPORT impulse
23{
24 using value_type = impulse;
25 constexpr impulse() noexcept = default;
26 constexpr impulse(const impulse&) noexcept = default;
27 constexpr impulse(impulse&&) noexcept = default;
28 constexpr impulse& operator=(const impulse&) noexcept = default;
29 constexpr impulse& operator=(impulse&&) noexcept = default;
30
31 constexpr bool operator==(const ossia::impulse&) const { return true; }
32
33 constexpr bool operator!=(const ossia::impulse&) const { return false; }
34
35 constexpr bool operator>(const ossia::impulse&) const { return false; }
36
37 constexpr bool operator>=(const ossia::impulse&) const { return true; }
38
39 constexpr bool operator<(const ossia::impulse&) const { return false; }
40
41 constexpr bool operator<=(const ossia::impulse&) const { return true; }
42};
43
44template <typename T>
45constexpr bool operator==(const T&, const ossia::impulse&)
46{
47 return true;
48}
49template <typename T>
50constexpr bool operator!=(const T&, const ossia::impulse&)
51{
52 return false;
53}
54template <typename T>
55constexpr bool operator>(const T&, const ossia::impulse&)
56{
57 return false;
58}
59template <typename T>
60constexpr bool operator>=(const T&, const ossia::impulse&)
61{
62 return true;
63}
64template <typename T>
65constexpr bool operator<(const T&, const ossia::impulse&)
66{
67 return false;
68}
69template <typename T>
70constexpr bool operator<=(const T&, const ossia::impulse&)
71{
72 return true;
73}
74template <typename T>
75constexpr bool operator==(const ossia::impulse&, const T&)
76{
77 return true;
78}
79template <typename T>
80constexpr bool operator!=(const ossia::impulse&, const T&)
81{
82 return false;
83}
84template <typename T>
85constexpr bool operator>(const ossia::impulse&, const T&)
86{
87 return false;
88}
89template <typename T>
90constexpr bool operator>=(const ossia::impulse&, const T&)
91{
92 return true;
93}
94template <typename T>
95constexpr bool operator<(const ossia::impulse&, const T&)
96{
97 return false;
98}
99template <typename T>
100constexpr bool operator<=(const ossia::impulse&, const T&)
101{
102 return true;
103}
104}
Definition git_info.h:7