CLIPS::Value Class Reference

#include <clipsmm/value.h>

List of all members.


Detailed Description

Author:
Rick L.

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
Valueset (float x, bool change_type=false)
Valueset (double x, bool change_type=false)
Valueset (short int x, bool change_type=false)
Valueset (unsigned short int x, bool change_type=false)
Valueset (int x, bool change_type=false)
Valueset (unsigned int x, bool change_type=false)
Valueset (long int x, bool change_type=false)
Valueset (const std::string &x, bool change_type=false, Type type=TYPE_STRING)
Valueset (const char *x, bool change_type=false, Type type=TYPE_STRING)
Valueset (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.
Valueoperator= (float x)
 Allows assignment to the property from the contained value type.
Valueoperator= (double x)
Valueoperator= (short int x)
Valueoperator= (unsigned short int x)
Valueoperator= (int x)
Valueoperator= (unsigned int x)
Valueoperator= (long int x)
Valueoperator= (const std::string &x)
Valueoperator= (const char *x)
Valueoperator= (void *x)
Valueoperator= (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.


The documentation for this class was generated from the following files:
Generated on Sun Nov 12 11:55:36 2006 by  doxygen 1.5.1