25#include <sigc++/sigc++.h>
44class Value:
public sigc::trackable {
63 Value(
unsigned short int x );
108 operator float( )
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;
void * m_value
Storage for the underlying value.
Definition value.h:267
Type type() const
Arithmetic assignment operator.
Definition value.cpp:440
size_t size() const
Function call syntax to get the value with var() notation.
Definition value.cpp:264
sigc::signal< void > m_signal_changed
Signal emitted when underlying data is changed.
Definition value.h:273
Type m_clips_type
Stores the CLIPS type information.
Definition value.h:270
void * as_address() const
Definition value.cpp:129
Value & set(float x, bool change_type=false)
Definition value.cpp:140
bool operator!=(float x) const
Definition value.cpp:396
bool operator==(float x) const
Definition value.cpp:352
double as_float() const
Definition value.cpp:96
void deallocate_storage()
Definition value.cpp:475
sigc::signal< void > signal_changed()
Signal emitted when the value is changed.
Definition value.cpp:471
Value()
Typeless constructor.
Definition value.cpp:25
long long int as_integer() const
Definition value.cpp:107
~Value()
Destructor.
Definition value.cpp:92
Type set_type(Type type)
Sets the underlying storage type.
Definition value.cpp:444
Value & operator=(float x)
Allows assignment to the property from the contained value type.
Definition value.cpp:283
std::string & as_string() const
Definition value.cpp:118
Definition activation.cpp:29
std::vector< Value > Values
Definition value.h:278
Type
Definition value.h:29
@ TYPE_SYMBOL
Definition value.h:33
@ TYPE_UNKNOWN
Definition value.h:30
@ TYPE_INSTANCE_NAME
Definition value.h:37
@ TYPE_STRING
Definition value.h:34
@ TYPE_INTEGER
Definition value.h:32
@ TYPE_EXTERNAL_ADDRESS
Definition value.h:35
@ TYPE_FLOAT
Definition value.h:31
@ TYPE_INSTANCE_ADDRESS
Definition value.h:36
#define CLIPSPointer
Definition pointer.h:28