clipsmm - C++ CLIPS Interface Library
Go to the documentation of this file.
25 #include <sigc++/sigc++.h>
44 class Value:
public sigc::trackable {
63 Value(
unsigned short 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;
278 typedef std::vector<Value>
Values;
long long int as_integer() const
Definition: value.cpp:124
std::string & as_string() const
Definition: value.cpp:135
Value & operator=(float x)
Allows assignment to the property from the contained value type.
Definition: value.cpp:300
void * as_address() const
Definition: value.cpp:146
bool operator!=(float x) const
Definition: value.cpp:413
Type
Definition: value.h:46
void deallocate_storage()
Definition: value.cpp:492
size_t size() const
Function call syntax to get the value with var() notation.
Definition: value.cpp:281
Type set_type(Type type)
Sets the underlying storage type.
Definition: value.cpp:461
@ TYPE_SYMBOL
Definition: value.h:67
sigc::signal< void > signal_changed()
Signal emitted when the value is changed.
Definition: value.cpp:488
@ TYPE_INTEGER
Definition: value.h:66
@ TYPE_STRING
Definition: value.h:68
void * m_value
Storage for the underlying value.
Definition: value.h:284
@ TYPE_FLOAT
Definition: value.h:65
sigc::signal< void > m_signal_changed
Signal emitted when underlying data is changed.
Definition: value.h:290
std::vector< Value > Values
Definition: value.h:295
@ TYPE_UNKNOWN
Definition: value.h:64
bool operator==(float x) const
Definition: value.cpp:369
~Value()
Destructor.
Definition: value.cpp:109
@ TYPE_INSTANCE_NAME
Definition: value.h:71
@ TYPE_INSTANCE_ADDRESS
Definition: value.h:70
Definition: activation.cpp:29
Type m_clips_type
Stores the CLIPS type information.
Definition: value.h:287
double as_float() const
Definition: value.cpp:113
Value & set(float x, bool change_type=false)
Definition: value.cpp:157
Type type() const
Arithmetic assignment operator.
Definition: value.cpp:457
Value()
Typeless constructor.
Definition: value.cpp:42
@ TYPE_EXTERNAL_ADDRESS
Definition: value.h:69
Generated on Mon Jul 27 2020 00:00:00 for clipsmm by
1.8.18