#include <clipsmm/fact.h>
Inheritance diagram for CLIPS::Fact:
Vinyard, Jr. <rvinyard@cs.nmsu.edu>
Public Types | |
typedef CLIPSPointer< Fact > | pointer |
Public Member Functions | |
Fact (Environment &environment, void *cobj=NULL) | |
bool | assign_slot_defaults () |
Assigns default values to a fact. | |
Template::pointer | get_template () |
Returns the template associated with a fact. | |
bool | exists () |
Indicates whether a fact is still in the fact list or has been retracted. | |
long int | index () |
Returns the fact index of a fact. | |
std::vector< std::string > | slot_names () |
Returns the slot names associated with this fact. | |
Values | slot_value (const std::string &slot_name) |
Return the values contained within a slot. | |
Fact::pointer | next () |
Returns the next fact in the fact list. | |
bool | set_slot (const std::string &slot_name, const Values &values) |
Sets the named slot to a specific value or values. | |
bool | set_slot (const std::string &slot_name, const Value &value) |
Sets the named slot to a specific value or values. | |
bool | retract () |
Retracts a fact from the fact list. | |
Static Public Member Functions | |
static Fact::pointer | create (Environment &environment, void *cobj=NULL) |
bool CLIPS::Fact::assign_slot_defaults | ( | ) |
Assigns default values to a fact.
bool CLIPS::Fact::exists | ( | ) |
Indicates whether a fact is still in the fact list or has been retracted.
long int CLIPS::Fact::index | ( | ) |
Returns the fact index of a fact.