2 #include <ossia/network/value/value.hpp>
14 struct value_trait<
ossia::impulse>
17 using value_type = void;
19 static const constexpr
bool is_numeric =
false;
20 static const constexpr
bool is_array =
false;
24 struct value_trait<int32_t>
27 using value_type = int32_t;
30 static const constexpr
bool is_array =
false;
34 struct value_trait<float>
37 using value_type = float;
38 static const constexpr
auto ossia_enum = val_type::FLOAT;
40 static const constexpr
bool is_array =
false;
44 struct value_trait<bool>
47 using value_type = bool;
50 static const constexpr
bool is_array =
false;
54 struct value_trait<char>
57 using value_type = char;
60 static const constexpr
bool is_array =
false;
64 struct value_trait<value_map_type>
67 using value_type = value_map_type;
69 static const constexpr
bool is_numeric =
false;
70 static const constexpr
bool is_array =
true;
74 struct value_trait<std::string>
77 using value_type = std::string;
79 static const constexpr
bool is_numeric =
false;
80 static const constexpr
bool is_array =
false;
84 struct value_trait<std::vector<ossia::value>>
87 using value_type = std::vector<value>;
89 static const constexpr
bool is_numeric =
false;
90 static const constexpr
bool is_array =
true;
94 struct value_trait<
ossia::vec2f>
97 using value_type = std::array<float, 2>;
99 static const constexpr
bool is_numeric =
false;
100 static const constexpr
bool is_array =
true;
104 struct value_trait<
ossia::vec3f>
107 using value_type = std::array<float, 3>;
109 static const constexpr
bool is_numeric =
false;
110 static const constexpr
bool is_array =
true;
114 struct value_trait<
ossia::vec4f>
117 using value_type = std::array<float, 4>;
119 static const constexpr
bool is_numeric =
false;
120 static const constexpr
bool is_array =
true;
124 struct value_trait<
ossia::value>
128 static const constexpr
bool is_numeric =
false;
129 static const constexpr
bool is_array =
false;
The value class.
Definition: value.hpp:173
ossia_type
Definition: ossia-c.h:376
bool is_array(const ossia::value &val)
is_numeric True if the value is of an array type (list, vec...)
Definition: value.cpp:631
bool is_numeric(const ossia::value &val)
is_numeric True if the value is of a numeric type (int, bool, float, char...)
Definition: value.cpp:624