64 long int index()
const;
79 bool set_slot(
const std::string& slot_name,
const Value& value);
Template::pointer get_template()
Returns the template associated with a fact.
Definition: fact.cpp:57
bool exists() const
Indicates whether a fact is still in the fact list or has been retracted.
Definition: fact.cpp:69
bool operator==(const Fact &other) const
Definition: fact.cpp:168
bool assign_slot_defaults()
Assigns default values to a fact.
Definition: fact.cpp:51
~Fact()
Definition: fact.cpp:46
Fact::pointer next()
Returns the next fact in the fact list.
Definition: fact.cpp:112
static Fact::pointer create(Environment &environment, void *cobj=NULL)
Definition: fact.cpp:37
bool set_slot(const std::string &slot_name, const Values &values)
Sets the named slot to a specific value or values.
Definition: fact.cpp:152
Definition: environment.h:57
std::vector< Value > Values
Definition: value.h:278
std::vector< std::string > slot_names()
Returns the slot names associated with this fact.
Definition: fact.cpp:81
long int index() const
Returns the fact index of a fact.
Definition: fact.cpp:75
Environment & environment() const
Definition: environmentobject.cpp:33
unsigned int refcount() const
Definition: fact.cpp:179
Definition: activation.cpp:29
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:33
CLIPSPointer< Fact > pointer
Definition: fact.h:36
bool retract()
Retracts a fact from the fact list.
Definition: fact.cpp:130
Fact(Environment &environment, void *cobj=NULL)
Definition: fact.cpp:30
Values slot_value(const std::string &slot_name)
Return the values contained within a slot.
Definition: fact.cpp:92
CLIPSPointer< Template > pointer
Definition: template.h:44
Definition: environmentobject.h:31