#include <clipsmm/value.h>
Vinyard, Jr. <rvinyard@cs.nmsu.edu>
Public Member Functions | |
Value (Type type) | |
Typeless constructor. | |
Value (float x) | |
Constructor sets value and CLIPS type to FLOAT. | |
Value (double x) | |
Constructor sets value and CLIPS type to FLOAT. | |
Value (short int x) | |
Constructor sets value and CLIPS type to INTEGER. | |
Value (unsigned short int x) | |
Constructor sets value and CLIPS type to INTEGER. | |
Value (int x) | |
Constructor sets value and CLIPS type to INTEGER. | |
Value (unsigned int x) | |
Constructor sets value and CLIPS type to INTEGER. | |
Value (long int x) | |
Constructor sets value and CLIPS type to INTEGER. | |
Value (char *x, Type type=TYPE_STRING) | |
Constructor sets value and CLIPS type. | |
Value (const std::string &x, Type type=TYPE_STRING) | |
Constructor sets value and CLIPS type. | |
Value (void *x, Type type=TYPE_EXTERNAL_ADDRESS) | |
Constructor sets value and CLIPS type to. | |
Value (const Value &value) | |
~Value () | |
Destructor. | |
double | as_float () const |
long int | as_integer () const |
std::string & | as_string () const |
void * | as_address () const |
Value & | set (float x, bool change_type=false) |
Value & | set (double x, bool change_type=false) |
Value & | set (short int x, bool change_type=false) |
Value & | set (unsigned short int x, bool change_type=false) |
Value & | set (int x, bool change_type=false) |
Value & | set (unsigned int x, bool change_type=false) |
Value & | set (long int x, bool change_type=false) |
Value & | set (const std::string &x, bool change_type=false, Type type=TYPE_STRING) |
Value & | set (const char *x, bool change_type=false, Type type=TYPE_STRING) |
Value & | set (void *x, bool change_type=false, Type type=TYPE_EXTERNAL_ADDRESS) |
operator float () const | |
operator double () const | |
operator short int () const | |
operator unsigned short int () const | |
operator int () const | |
operator unsigned int () const | |
operator long int () const | |
operator std::string & () const | |
operator const char * () const | |
operator void * () const | |
size_t | size () const |
Returns the size in bytes of the contained type, and not necessarily the size of this class. | |
Value & | operator= (float x) |
Allows assignment to the property from the contained value type. | |
Value & | operator= (double x) |
Value & | operator= (short int x) |
Value & | operator= (unsigned short int x) |
Value & | operator= (int x) |
Value & | operator= (unsigned int x) |
Value & | operator= (long int x) |
Value & | operator= (const std::string &x) |
Value & | operator= (const char *x) |
Value & | operator= (void *x) |
Value & | operator= (const Value &x) |
bool | operator== (float x) const |
bool | operator== (double x) const |
bool | operator== (short int x) const |
bool | operator== (unsigned short int x) const |
bool | operator== (int x) const |
bool | operator== (unsigned int x) const |
bool | operator== (long int x) const |
bool | operator== (const std::string &x) const |
bool | operator== (const char *x) const |
bool | operator== (void *x) const |
bool | operator!= (float x) const |
bool | operator!= (double x) const |
bool | operator!= (short int x) const |
bool | operator!= (unsigned short int x) const |
bool | operator!= (int x) const |
bool | operator!= (unsigned int x) const |
bool | operator!= (long int x) const |
bool | operator!= (const std::string &x) const |
bool | operator!= (const char *x) const |
bool | operator!= (void *x) const |
Type | type () const |
Returns the CLIPS library type of this value. | |
Type | set_type (Type type) |
Sets the underlying storage type. | |
sigc::signal< void > | signal_changed () |
Signal emitted when the value is changed. | |
Protected Member Functions | |
void | deallocate_storage () |
Protected Attributes | |
void * | m_value |
Storage for the underlying value. | |
Type | m_clips_type |
Stores the CLIPS type information. | |
sigc::signal< void > | m_signal_changed |
Signal emitted when underlying data is changed. |