OSSIA
Open Scenario System for Interactive Application
|
The value class holds all ossia parameters typed values. More...
The value class holds all ossia parameters typed values.
The value class holds all ossia parameters typed values
Classes | |
struct | impulse |
struct | vec2f |
container for a vector of 2 floats More... | |
struct | vec3f |
container for a vector of 3 floats More... | |
struct | vec4f |
container for a vector of 4 floats More... | |
Public Member Functions | |
value () | |
Value default constructors - creates an empty value. | |
~value () | |
Value destructor. | |
value (const value &v) | |
Copy constructor of a value. More... | |
value (char v) | |
Create a value of type char. More... | |
value (int v) | |
Create a value of type int. More... | |
value (bool v) | |
Create a value of type bool. More... | |
value (float v) | |
Create a value of type float. More... | |
value (double v) | |
Create a value of type double. More... | |
value (const vec2f) | |
Create a value of type vec2f. More... | |
value (const vec3f) | |
Create a value of type vec3f. More... | |
value (const vec4f) | |
Create a value of type vec4f. More... | |
value (std::vector< opp::value > v) | |
Create a value of type list (vector of values) More... | |
value (std::string v) | |
Create a value of type std::string. More... | |
value (const char *v) | |
Create a value of type string (char*) More... | |
value (impulse p) | |
Create a value of type impulse. More... | |
bool | is_impulse () const |
Is the value of type impulse ? More... | |
bool | is_int () const |
Is the value of type int ? More... | |
bool | is_float () const |
Is the value of type float? More... | |
bool | is_bool () const |
Is the value of type boolean ? More... | |
bool | is_vec2f () const |
Is the value of type vec2f ? More... | |
bool | is_vec3f () const |
Is the value of type vec3f ? More... | |
bool | is_vec4f () const |
Is the value of type vec4f ? More... | |
bool | is_list () const |
Is the value of type list? More... | |
bool | is_string () const |
Is the value of type string? More... | |
char | to_char () const |
converts the value to a 8-bit character More... | |
int | to_int () const |
converts the value to an int More... | |
float | to_float () const |
converts the value to a float More... | |
bool | to_bool () const |
converts the value to a boolean More... | |
vec2f | to_vec2f () const |
converts the value to a vec2f More... | |
vec3f | to_vec3f () const |
converts the value to a vec3f More... | |
vec4f | to_vec4f () const |
converts the value to a vec4f More... | |
std::vector< opp::value > | to_list () const |
converts the value to a list (vector of opp::value) More... | |
std::string | to_string () const |
converts the value to a string More... | |
value & | operator= (const value &v) |
operator = assigns with another opp::value More... | |
value & | operator= (char v) |
operator = assigns with a character More... | |
value & | operator= (int v) |
operator = assigns with an integer More... | |
value & | operator= (float v) |
operator = assigns with a float More... | |
value & | operator= (bool v) |
operator = assigns with a bool More... | |
value & | operator= (vec2f v) |
operator = assigns with a vec2f More... | |
value & | operator= (vec3f v) |
operator = assigns with a vec3f More... | |
value & | operator= (vec4f v) |
operator = assigns with a vec4f More... | |
value & | operator= (std::vector< opp::value > v) |
operator = assigns with a vector of values (aka list) More... | |
value & | operator= (std::string v) |
operator = assigns with a string More... | |
bool | operator== (const opp::value &v) const |
operator == compare two opp::value More... | |
bool | operator!= (const opp::value &v) const |
operator != compare two opp::value More... | |
void | set_impulse () |
sets the value as an impulse (a value-less signal) | |
void | set_int (int v) |
sets the value as an int More... | |
void | set_float (float v) |
sets the value as a float More... | |
void | set_bool (bool v) |
sets the value as a bool More... | |
void | set_vec2f (vec2f v) |
sets the value as a vec2f More... | |
void | set_vec3f (vec3f v) |
sets the value as a vec3f More... | |
void | set_vec4f (vec4f v) |
sets the value as a vec4f More... | |
void | set_list (std::vector< opp::value > v) |
sets the value as a vector of opp::values More... | |
void | set_string (std::string v) |
sets the value as a string More... | |
ossia::value * | get_raw_value_pointer () |
Get the raw value pointer. More... | |
opp::value::value | ( | const value & | v | ) |
Copy constructor of a value.
reference | to another value |
opp::value::value | ( | char | v | ) |
opp::value::value | ( | int | v | ) |
opp::value::value | ( | bool | v | ) |
Create a value of type bool.
opp::value::value | ( | float | v | ) |
Create a value of type float.
opp::value::value | ( | double | v | ) |
Create a value of type double.
opp::value::value | ( | const vec2f | v | ) |
Create a value of type vec2f.
opp::value::value | ( | const vec3f | v | ) |
Create a value of type vec3f.
opp::value::value | ( | const vec4f | v | ) |
Create a value of type vec4f.
opp::value::value | ( | std::vector< opp::value > | v | ) |
Create a value of type list (vector of values)
opp::value::value | ( | std::string | v | ) |
Create a value of type std::string.
opp::value::value | ( | const char * | v | ) |
Create a value of type string (char*)
opp::value::value | ( | impulse | p | ) |
Create a value of type impulse.
bool opp::value::is_impulse | ( | ) | const |
Is the value of type impulse ?
bool opp::value::is_int | ( | ) | const |
Is the value of type int ?
bool opp::value::is_float | ( | ) | const |
Is the value of type float?
bool opp::value::is_bool | ( | ) | const |
Is the value of type boolean ?
bool opp::value::is_vec2f | ( | ) | const |
bool opp::value::is_vec3f | ( | ) | const |
bool opp::value::is_vec4f | ( | ) | const |
bool opp::value::is_list | ( | ) | const |
Is the value of type list?
bool opp::value::is_string | ( | ) | const |
Is the value of type string?
char opp::value::to_char | ( | ) | const |
converts the value to a 8-bit character
int opp::value::to_int | ( | ) | const |
converts the value to an int
float opp::value::to_float | ( | ) | const |
converts the value to a float
bool opp::value::to_bool | ( | ) | const |
converts the value to a boolean
value::vec2f opp::value::to_vec2f | ( | ) | const |
value::vec3f opp::value::to_vec3f | ( | ) | const |
value::vec4f opp::value::to_vec4f | ( | ) | const |
std::vector< value > opp::value::to_list | ( | ) | const |
converts the value to a list (vector of opp::value)
std::string opp::value::to_string | ( | ) | const |
converts the value to a string
operator = assigns with another opp::value
v | : an opp::value |
value & opp::value::operator= | ( | char | v | ) |
operator = assigns with a character
v | : a char |
value & opp::value::operator= | ( | int | v | ) |
operator = assigns with an integer
v | : an int |
value & opp::value::operator= | ( | float | v | ) |
operator = assigns with a float
v | : a float |
value & opp::value::operator= | ( | bool | v | ) |
operator = assigns with a bool
v | : a bool |
value & opp::value::operator= | ( | std::vector< opp::value > | v | ) |
operator = assigns with a vector of values (aka list)
v | : a vector of values (aka list) |
value & opp::value::operator= | ( | std::string | v | ) |
operator = assigns with a string
v | : a string |
bool opp::value::operator== | ( | const opp::value & | v | ) | const |
operator == compare two opp::value
v | : another opp::value |
bool opp::value::operator!= | ( | const opp::value & | v | ) | const |
operator != compare two opp::value
v | : another opp::value |
void opp::value::set_int | ( | int | v | ) |
sets the value as an int
v | int is moved into the value object |
void opp::value::set_float | ( | float | v | ) |
sets the value as a float
v | float is moved into the value object |
void opp::value::set_bool | ( | bool | v | ) |
sets the value as a bool
v | bool is moved into the value object |
void opp::value::set_vec2f | ( | vec2f | v | ) |
void opp::value::set_vec3f | ( | vec3f | v | ) |
void opp::value::set_vec4f | ( | vec4f | v | ) |
void opp::value::set_list | ( | std::vector< opp::value > | v | ) |
sets the value as a vector of opp::values
v | vector of opp::values is moved into the value object |
void opp::value::set_string | ( | std::string | v | ) |
sets the value as a string
v | string is moved into the value object |
|
inline |
Get the raw value pointer.
Be careful, this gives you great power and with great power comes... It's useful to make use of ossia feature that are not available in opp:: namespace (but requires some more computer skill)