|
Public Member Functions |
| | Value (Type type) |
| | Value (float x) |
| | Value (double x) |
| | Value (short int x) |
| | Value (unsigned short int x) |
| | Value (int x) |
| | Value (unsigned int x) |
| | Value (long int x) |
| | Value (char *x, Type type=TYPE_STRING) |
| | Value (const std::string &x, Type type=TYPE_STRING) |
| | Value (void *x, Type type=TYPE_EXTERNAL_ADDRESS) |
| | Value (const Value &value) |
| | ~Value () |
| 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 |
| Value & | operator= (float x) |
| 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 |
| Type | set_type (Type type) |
| sigc::signal< void > | signal_changed () |
| | Value (Type type) |
| | Value (float x) |
| | Value (double x) |
| | Value (short int x) |
| | Value (unsigned short int x) |
| | Value (int x) |
| | Value (unsigned int x) |
| | Value (long int x) |
| | Value (char *x, Type type=TYPE_STRING) |
| | Value (const std::string &x, Type type=TYPE_STRING) |
| | Value (void *x, Type type=TYPE_EXTERNAL_ADDRESS) |
| | Value (const Value &value) |
| | ~Value () |
| 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 |
| Value & | operator= (float x) |
| 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 |
| Type | set_type (Type type) |
| sigc::signal< void > | signal_changed () |
Protected Member Functions |
| void | deallocate_storage () |
| void | deallocate_storage () |
Protected Attributes |
| void * | m_value |
| Type | m_clips_type |
| sigc::signal< void > | m_signal_changed |
| Type DACLIPS::Value::type |
( |
|
) |
const |
Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T + X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T - X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T * X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T / X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T % X must be well defined Returns the CLIPS library type of this value
Definition at line 401 of file value.cpp.
| Type DACLIPS::Value::type |
( |
|
) |
const |
Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T + X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T - X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T * X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T / X must be well defined Arithmetic assignment operator
This method is implemented as a template for two reasons:
- So that it will work with a variety of operands
- So that a stub will not be generated if the operator is not defined for T
T % X must be well defined Returns the CLIPS library type of this value