25 #include <sigc++/sigc++.h>
44 class Value:
public sigc::trackable {
63 Value(
unsigned short int x );
69 Value(
unsigned int x );
75 Value(
long long int x );
96 Value&
set(
float x,
bool change_type=
false );
97 Value&
set(
double x,
bool change_type=
false );
98 Value&
set(
short int x,
bool change_type=
false );
99 Value&
set(
unsigned short int x,
bool change_type=
false );
100 Value&
set(
int x,
bool change_type=
false );
101 Value&
set(
unsigned int x,
bool change_type=
false );
102 Value&
set(
long int x,
bool change_type=
false );
103 Value&
set(
long long int x,
bool change_type=
false );
108 operator float( )
const;
109 operator double( )
const;
110 operator short int( )
const;
111 operator unsigned short int( )
const;
112 operator int( )
const;
113 operator unsigned int( )
const;
114 operator long int( )
const;
115 operator long long int( )
const;
116 operator std::string&( )
const;
117 operator const char*( )
const;
118 operator void*( )
const;
160 bool operator==(
unsigned short int x )
const;
165 bool operator==(
const std::string& x )
const;
172 bool operator!=(
unsigned short int x )
const;
177 bool operator!=(
const std::string& x )
const;
Type type() const
Arithmetic assignment operator.
Definition: value.cpp:440
sigc::signal< void > m_signal_changed
Signal emitted when underlying data is changed.
Definition: value.h:273
Value & set(float x, bool change_type=false)
Definition: value.cpp:140
Type
Definition: value.h:29
sigc::signal< void > signal_changed()
Signal emitted when the value is changed.
Definition: value.cpp:471
size_t size() const
Function call syntax to get the value with var() notation.
Definition: value.cpp:264
bool operator==(float x) const
Definition: value.cpp:352
Type set_type(Type type)
Sets the underlying storage type.
Definition: value.cpp:444
void * as_address() const
Definition: value.cpp:129
double as_float() const
Definition: value.cpp:96
~Value()
Destructor.
Definition: value.cpp:92
Value & operator=(float x)
Allows assignment to the property from the contained value type.
Definition: value.cpp:283
void deallocate_storage()
Definition: value.cpp:475
std::vector< Value > Values
Definition: value.h:278
Value()
Typeless constructor.
Definition: value.cpp:25
void * m_value
Storage for the underlying value.
Definition: value.h:267
Definition: activation.cpp:29
bool operator!=(float x) const
Definition: value.cpp:396
long long int as_integer() const
Definition: value.cpp:107
Type m_clips_type
Stores the CLIPS type information.
Definition: value.h:270
std::string & as_string() const
Definition: value.cpp:118