DACLIPS::Fact Class Reference

#include <fact.h>

Inheritance diagram for DACLIPS::Fact:

Inheritance graph
[legend]
Collaboration diagram for DACLIPS::Fact:

Collaboration graph
[legend]

List of all members.

Public Types

typedef CLIPSPointer< Factpointer
typedef CLIPSPointer< Factpointer

Public Member Functions

 Fact (Environment &environment, void *cobj=NULL)
 ~Fact ()
bool assign_slot_defaults ()
Template::pointer get_template ()
bool exists ()
long int index ()
std::vector< std::string > slot_names ()
Values slot_value (const std::string &slot_name)
Fact::pointer next ()
bool set_slot (const std::string &slot_name, const Values &values)
bool set_slot (const std::string &slot_name, const Value &value)
bool retract ()
 Fact (Environment &environment, void *cobj=NULL)
 ~Fact ()
bool assign_slot_defaults ()
Template::pointer get_template ()
bool exists ()
long int index ()
std::vector< std::string > slot_names ()
Values slot_value (const std::string &slot_name)
Fact::pointer next ()
bool set_slot (const std::string &slot_name, const Values &values)
bool set_slot (const std::string &slot_name, const Value &value)
bool retract ()

Static Public Member Functions

static Fact::pointer create (Environment &environment, void *cobj=NULL)
static Fact::pointer create (Environment &environment, void *cobj=NULL)


Detailed Description

Author:
Rick L. Vinyard, Jr. <rvinyard@cs.nmsu.edu>

Definition at line 34 of file fact.h.


Member Typedef Documentation

typedef CLIPSPointer<Fact> DACLIPS::Fact::pointer

Reimplemented from DACLIPS::Object.

Definition at line 36 of file fact.h.

typedef CLIPSPointer<Fact> DACLIPS::Fact::pointer

Reimplemented from DACLIPS::Object.

Definition at line 36 of file fact.h.


Constructor & Destructor Documentation

DACLIPS::Fact::Fact ( Environment environment,
void *  cobj = NULL 
)

Definition at line 30 of file fact.cpp.

DACLIPS::Fact::~Fact (  ) 

Definition at line 41 of file fact.cpp.

DACLIPS::Fact::Fact ( Environment environment,
void *  cobj = NULL 
)

DACLIPS::Fact::~Fact (  ) 


Member Function Documentation

Fact::pointer DACLIPS::Fact::create ( Environment environment,
void *  cobj = NULL 
) [static]

Definition at line 37 of file fact.cpp.

bool DACLIPS::Fact::assign_slot_defaults (  ) 

Assigns default values to a fact.

Returns:
true if the default values were successfully set, false otherwise

Definition at line 45 of file fact.cpp.

Template::pointer DACLIPS::Fact::get_template (  ) 

Returns the template associated with a fact.

Definition at line 51 of file fact.cpp.

bool DACLIPS::Fact::exists (  ) 

Indicates whether a fact is still in the fact list or has been retracted

Returns:
true if the fact is still in the fact list, false otherwise

Definition at line 63 of file fact.cpp.

long int DACLIPS::Fact::index (  ) 

Returns the fact index of a fact

Returns:
the index of the fact or -1 if this fact object is uninitialized

Definition at line 69 of file fact.cpp.

std::vector< std::string > DACLIPS::Fact::slot_names (  ) 

Returns the slot names associated with this fact

Definition at line 75 of file fact.cpp.

Values DACLIPS::Fact::slot_value ( const std::string &  slot_name  ) 

Return the values contained within a slot

Definition at line 86 of file fact.cpp.

Fact::pointer DACLIPS::Fact::next (  ) 

Returns the next fact in the fact list

Definition at line 106 of file fact.cpp.

bool DACLIPS::Fact::set_slot ( const std::string &  slot_name,
const Values values 
)

Sets the named slot to a specific value or values

Definition at line 144 of file fact.cpp.

bool DACLIPS::Fact::set_slot ( const std::string &  slot_name,
const Value value 
)

Sets the named slot to a specific value or values

Definition at line 131 of file fact.cpp.

bool DACLIPS::Fact::retract (  ) 

Retracts a fact from the fact list

Definition at line 124 of file fact.cpp.

static Fact::pointer DACLIPS::Fact::create ( Environment environment,
void *  cobj = NULL 
) [static]

bool DACLIPS::Fact::assign_slot_defaults (  ) 

Assigns default values to a fact.

Returns:
true if the default values were successfully set, false otherwise

Template::pointer DACLIPS::Fact::get_template (  ) 

Returns the template associated with a fact.

bool DACLIPS::Fact::exists (  ) 

Indicates whether a fact is still in the fact list or has been retracted

Returns:
true if the fact is still in the fact list, false otherwise

long int DACLIPS::Fact::index (  ) 

Returns the fact index of a fact

Returns:
the index of the fact or -1 if this fact object is uninitialized

std::vector<std::string> DACLIPS::Fact::slot_names (  ) 

Returns the slot names associated with this fact

Values DACLIPS::Fact::slot_value ( const std::string &  slot_name  ) 

Return the values contained within a slot

Fact::pointer DACLIPS::Fact::next (  ) 

Returns the next fact in the fact list

bool DACLIPS::Fact::set_slot ( const std::string &  slot_name,
const Values values 
)

Sets the named slot to a specific value or values

bool DACLIPS::Fact::set_slot ( const std::string &  slot_name,
const Value value 
)

Sets the named slot to a specific value or values

bool DACLIPS::Fact::retract (  ) 

Retracts a fact from the fact list


The documentation for this class was generated from the following files:

Generated on Mon Jan 10 22:33:44 2011 by  doxygen 1.5.6