clipsmm - C++ CLIPS Interface Library

clipsmm logo

CLIPS Namespace Reference


Classes

class  Activation
class  any
class  bad_any_cast
class  DefaultFacts
class  Environment
class  EnvironmentObject
class  Fact
class  Function
class  Global
class  Module
class  Object
class  Rule
class  Template
class  Value

Typedefs

typedef enum
CLIPS::SalienceEvaluation 
SalienceEvaluation
typedef enum
CLIPS::ConflictResolution 
ConflictResolution
typedef enum CLIPS::DefaultType DefaultType
typedef enum CLIPS::Type Type
typedef std::vector< ValueValues

Enumerations

enum  SalienceEvaluation { SALIENCE_EVAL_WHEN_DEFINED, SALIENCE_EVAL_WHEN_ACTIVATED, SALIENCE_EVAL_EVERY_CYCLE }
enum  ConflictResolution {
  CONFLICT_DEPTH_STRATEGY, CONFLICT_BREADTH_STRATEGY, CONFLICT_LEX_STRATEGY, CONFLICT_MEA_STRATEGY,
  CONFLICT_COMPLEXITY_STRATEGY, CONFLICT_SIMPLICITY_STRATEGY, CONFLICT_RANDOM_STRATEGY, CONFLICT_DEFAULT_STRATEGY = CONFLICT_DEPTH_STRATEGY
}
enum  DefaultType { NO_DEFAULT = 0, STATIC_DEFAULT = 1, DYNAMIC_DEFAULT = 2 }
enum  Type {
  TYPE_FLOAT = 0, TYPE_INTEGER = 1, TYPE_SYMBOL = 2, TYPE_STRING = 3,
  TYPE_EXTERNAL_ADDRESS = 5, TYPE_INSTANCE_ADDRESS = 7, TYPE_INSTANCE_NAME = 8
}

Functions

template<typename ValueType >
ValueType * any_cast (any *operand)
template<typename ValueType >
const ValueType * any_cast (const any *operand)
template<typename ValueType >
ValueType any_cast (const any &operand)
Values data_object_to_values (dataObject *clipsdo)
 TODO Move to utility, since these are no longer factory methods.
Values data_object_to_values (dataObject &clipsdo)
dataObject * value_to_data_object (const Environment &env, const Value &value)
dataObject * value_to_data_object (const Environment &env, const Values &values)
void init ()
 The init method should be called before any other clipsmm functions.
std::vector< std::string > data_object_to_strings (dataObject *clipsdo)
std::vector< std::string > data_object_to_strings (dataObject &clipsdo)
void get_argument (void *env, int argposition, double &value)
void get_argument (void *env, int argposition, float &value)
void get_argument (void *env, int argposition, short &value)
void get_argument (void *env, int argposition, short unsigned &value)
void get_argument (void *env, int argposition, int &value)
void get_argument (void *env, int argposition, unsigned &value)
void get_argument (void *env, int argposition, long &value)
void get_argument (void *env, int argposition, std::string &value)
template<typename T_return >
char get_return_code ()
template<>
char get_return_code< bool > ()
template<>
char get_return_code< char > ()
template<>
char get_return_code< double > ()
template<>
char get_return_code< float > ()
template<>
char get_return_code< int > ()
template<>
char get_return_code< long > ()
template<>
char get_return_code< std::string > ()
template<>
char get_return_code< void > ()
template<typename T_return >
char get_argument_code ()
template<>
char get_argument_code< double > ()
template<>
char get_argument_code< float > ()
template<>
char get_argument_code< int > ()
template<>
char get_argument_code< long > ()
template<>
char get_argument_code< std::string > ()

Typedef Documentation

Note:
This typedef is dependent upon the enum values matching the defines in CLIPS

Note:
This typedef is dependent upon the enum values matching the defines in CLIPS

typedef enum CLIPS::Type CLIPS::Type

typedef std::vector<Value> CLIPS::Values


Enumeration Type Documentation

Note:
This typedef is dependent upon the enum values matching the defines in CLIPS
Enumerator:
CONFLICT_DEPTH_STRATEGY 
CONFLICT_BREADTH_STRATEGY 
CONFLICT_LEX_STRATEGY 
CONFLICT_MEA_STRATEGY 
CONFLICT_COMPLEXITY_STRATEGY 
CONFLICT_SIMPLICITY_STRATEGY 
CONFLICT_RANDOM_STRATEGY 
CONFLICT_DEFAULT_STRATEGY 

Enumerator:
NO_DEFAULT 
STATIC_DEFAULT 
DYNAMIC_DEFAULT 

Note:
This typedef is dependent upon the enum values matching the defines in CLIPS
Enumerator:
SALIENCE_EVAL_WHEN_DEFINED 
SALIENCE_EVAL_WHEN_ACTIVATED 
SALIENCE_EVAL_EVERY_CYCLE 

Enumerator:
TYPE_FLOAT 
TYPE_INTEGER 
TYPE_SYMBOL 
TYPE_STRING 
TYPE_EXTERNAL_ADDRESS 
TYPE_INSTANCE_ADDRESS 
TYPE_INSTANCE_NAME 


Function Documentation

template<typename ValueType >
ValueType CLIPS::any_cast ( const any &  operand  )  [inline]

References any_cast().

template<typename ValueType >
const ValueType* CLIPS::any_cast ( const any *  operand  )  [inline]

References any_cast().

template<typename ValueType >
ValueType* CLIPS::any_cast ( any *  operand  )  [inline]

References CLIPS::any::content, and CLIPS::any::type().

Referenced by any_cast().

std::vector< std::string > CLIPS::data_object_to_strings ( dataObject &  clipsdo  ) 

std::vector< std::string > CLIPS::data_object_to_strings ( dataObject *  clipsdo  ) 

Values CLIPS::data_object_to_values ( dataObject &  clipsdo  ) 

Values CLIPS::data_object_to_values ( dataObject *  clipsdo  ) 

void CLIPS::get_argument ( void *  env,
int  argposition,
std::string &  value 
)

void CLIPS::get_argument ( void *  env,
int  argposition,
long &  value 
)

void CLIPS::get_argument ( void *  env,
int  argposition,
unsigned &  value 
)

void CLIPS::get_argument ( void *  env,
int  argposition,
int &  value 
)

void CLIPS::get_argument ( void *  env,
int  argposition,
short unsigned &  value 
)

void CLIPS::get_argument ( void *  env,
int  argposition,
short &  value 
)

void CLIPS::get_argument ( void *  env,
int  argposition,
float &  value 
)

void CLIPS::get_argument ( void *  env,
int  argposition,
double &  value 
)

template<typename T_return >
char CLIPS::get_argument_code (  )  [inline]

template<>
char CLIPS::get_argument_code< double > (  )  [inline]

template<>
char CLIPS::get_argument_code< float > (  )  [inline]

template<>
char CLIPS::get_argument_code< int > (  )  [inline]

template<>
char CLIPS::get_argument_code< long > (  )  [inline]

template<>
char CLIPS::get_argument_code< std::string > (  )  [inline]

template<typename T_return >
char CLIPS::get_return_code (  )  [inline]

template<>
char CLIPS::get_return_code< bool > (  )  [inline]

template<>
char CLIPS::get_return_code< char > (  )  [inline]

template<>
char CLIPS::get_return_code< double > (  )  [inline]

template<>
char CLIPS::get_return_code< float > (  )  [inline]

template<>
char CLIPS::get_return_code< int > (  )  [inline]

template<>
char CLIPS::get_return_code< long > (  )  [inline]

template<>
char CLIPS::get_return_code< std::string > (  )  [inline]

template<>
char CLIPS::get_return_code< void > (  )  [inline]

void CLIPS::init (  ) 

The init method should be called before any other clipsmm functions.

dataObject * CLIPS::value_to_data_object ( const Environment &  env,
const Values &  values 
)

dataObject * CLIPS::value_to_data_object ( const Environment &  env,
const Value &  value 
)


Generated on Wed Jul 29 12:04:14 2009 for clipsmm by doxygen 1.5.8