clipsmm - C++ CLIPS Interface Library

clipsmm logo
Classes | Typedefs | Enumerations | Functions
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_UNKNOWN = -1, 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. More...
 
Values data_object_to_values (dataObject &clipsdo)
 
dataObject * value_to_data_object (const Environment &env, const Value &value, dataObject *obj)
 
dataObject * value_to_data_object_rawenv (void *env, const Value &value, dataObject *obj)
 
dataObject * value_to_data_object (const Environment &env, const Values &values, dataObject *obj)
 
dataObject * value_to_data_object_rawenv (void *env, const Values &values, dataObject *obj)
 
void init ()
 The init method should be called before any other clipsmm functions. More...
 
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, void *&value)
 
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)
 
void get_argument (void *env, int argposition, Values &values)
 
void get_argument (void *env, int argposition, Value &value)
 
template<typename T_return >
char get_return_code ()
 
template<>
char get_return_code< void * > ()
 
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<>
char get_return_code< Values > ()
 
template<>
char get_return_code< Value > ()
 
template<typename T_return >
char get_argument_code ()
 
template<>
char get_argument_code< void * > ()
 
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 > ()
 
template<>
char get_argument_code< Values > ()
 
template<>
char get_argument_code< Value > ()
 

Typedef Documentation

◆ ConflictResolution

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

◆ DefaultType

◆ SalienceEvaluation

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

◆ Type

typedef enum CLIPS::Type CLIPS::Type

◆ Values

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

Enumeration Type Documentation

◆ ConflictResolution

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 

◆ DefaultType

Enumerator
NO_DEFAULT 
STATIC_DEFAULT 
DYNAMIC_DEFAULT 

◆ SalienceEvaluation

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 

◆ Type

Enumerator
TYPE_UNKNOWN 
TYPE_FLOAT 
TYPE_INTEGER 
TYPE_SYMBOL 
TYPE_STRING 
TYPE_EXTERNAL_ADDRESS 
TYPE_INSTANCE_ADDRESS 
TYPE_INSTANCE_NAME 

Function Documentation

◆ any_cast() [1/3]

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

◆ any_cast() [2/3]

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

References any_cast().

◆ any_cast() [3/3]

template<typename ValueType >
ValueType CLIPS::any_cast ( const any operand)

References any_cast().

◆ data_object_to_strings() [1/2]

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

◆ data_object_to_strings() [2/2]

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

◆ data_object_to_values() [1/2]

Values CLIPS::data_object_to_values ( dataObject *  clipsdo)

◆ data_object_to_values() [2/2]

Values CLIPS::data_object_to_values ( dataObject &  clipsdo)

◆ get_argument() [1/11]

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

◆ get_argument() [2/11]

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

◆ get_argument() [3/11]

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

◆ get_argument() [4/11]

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

◆ get_argument() [5/11]

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

◆ get_argument() [6/11]

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

◆ get_argument() [7/11]

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

◆ get_argument() [8/11]

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

◆ get_argument() [9/11]

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

◆ get_argument() [10/11]

void CLIPS::get_argument ( void *  env,
int  argposition,
Values values 
)

◆ get_argument() [11/11]

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

◆ get_argument_code()

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

◆ get_argument_code< double >()

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

◆ get_argument_code< float >()

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

◆ get_argument_code< int >()

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

◆ get_argument_code< long >()

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

◆ get_argument_code< std::string >()

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

◆ get_argument_code< Value >()

template<>
char CLIPS::get_argument_code< Value > ( )
inline

◆ get_argument_code< Values >()

template<>
char CLIPS::get_argument_code< Values > ( )
inline

◆ get_argument_code< void * >()

template<>
char CLIPS::get_argument_code< void *> ( )
inline

◆ get_return_code()

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

◆ get_return_code< bool >()

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

◆ get_return_code< char >()

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

◆ get_return_code< double >()

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

◆ get_return_code< float >()

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

◆ get_return_code< int >()

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

◆ get_return_code< long >()

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

◆ get_return_code< std::string >()

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

◆ get_return_code< Value >()

template<>
char CLIPS::get_return_code< Value > ( )
inline

◆ get_return_code< Values >()

template<>
char CLIPS::get_return_code< Values > ( )
inline

◆ get_return_code< void * >()

template<>
char CLIPS::get_return_code< void *> ( )
inline

◆ get_return_code< void >()

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

◆ init()

void CLIPS::init ( )

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

◆ value_to_data_object() [1/2]

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

◆ value_to_data_object() [2/2]

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

◆ value_to_data_object_rawenv() [1/2]

dataObject * CLIPS::value_to_data_object_rawenv ( void *  env,
const Value value,
dataObject *  obj 
)

◆ value_to_data_object_rawenv() [2/2]

dataObject * CLIPS::value_to_data_object_rawenv ( void *  env,
const Values values,
dataObject *  obj 
)

Generated on Wed Jul 24 2019 00:00:00 for clipsmm by doxygen 1.8.14