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