clipsmm - C++ CLIPS Interface Library
Go to the documentation of this file.
34 class Fact:
public EnvironmentObject {
36 typedef CLIPSPointer<Fact>
pointer;
64 long int index()
const;
79 bool set_slot(
const std::string& slot_name,
const Value& value);
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:50
std::vector< std::string > slot_names()
Returns the slot names associated with this fact.
Definition: fact.cpp:98
bool assign_slot_defaults()
Assigns default values to a fact.
Definition: fact.cpp:68
bool retract()
Retracts a fact from the fact list.
Definition: fact.cpp:147
Environment & m_environment
Definition: environmentobject.h:58
static Template::pointer create(Environment &environment, void *cobj=NULL)
Definition: template.cpp:50
Values slot_value(const std::string &slot_name)
Return the values contained within a slot.
Definition: fact.cpp:109
dataObject * value_to_data_object(const Environment &env, const Value &value, dataObject *obj)
Definition: factory.cpp:132
unsigned int refcount() const
Definition: fact.cpp:196
Template::pointer get_template()
Returns the template associated with a fact.
Definition: fact.cpp:74
~Fact()
Definition: fact.cpp:63
Values data_object_to_values(dataObject *clipsdo)
TODO Move to utility, since these are no longer factory methods.
Definition: factory.cpp:49
bool operator==(const Fact &other) const
Definition: fact.cpp:185
Environment & environment() const
Definition: environmentobject.cpp:50
long int index() const
Returns the fact index of a fact.
Definition: fact.cpp:92
std::vector< Value > Values
Definition: value.h:295
Fact::pointer next()
Returns the next fact in the fact list.
Definition: fact.cpp:129
bool set_slot(const std::string &slot_name, const Values &values)
Sets the named slot to a specific value or values.
Definition: fact.cpp:169
bool exists() const
Indicates whether a fact is still in the fact list or has been retracted.
Definition: fact.cpp:86
Definition: activation.cpp:29
Fact(Environment &environment, void *cobj=NULL)
Definition: fact.cpp:47
CLIPSPointer< Template > pointer
Definition: template.h:61
static Fact::pointer create(Environment &environment, void *cobj=NULL)
Definition: fact.cpp:54
CLIPSPointer< Fact > pointer
Definition: fact.h:70
std::vector< std::string > data_object_to_strings(dataObject *clipsdo)
Definition: utility.cpp:51
void * m_cobj
The underlying CLIPS C object.
Definition: object.h:79
Generated on Tue Jan 28 2020 00:00:00 for clipsmm by
1.8.17