19 #ifndef CLIPSTEMPLATE_H
20 #define CLIPSTEMPLATE_H
29 #undef DYNAMIC_DEFAULT
Values slot_range(const std::string &slot_name)
Returns the range information for a slot.
Definition: template.cpp:138
std::string name()
The name of this template.
Definition: template.cpp:39
Values slot_default_value(const std::string &slot_name)
Returns the default value for a given slot.
Definition: template.cpp:127
void set_watch(unsigned state)
Definition: template.cpp:172
Template(Environment &environment, void *cobj=NULL)
Definition: template.cpp:30
Template::pointer next()
Definition: template.cpp:155
std::vector< std::string > slot_names()
Returns the slot names associated with this template.
Definition: template.cpp:111
bool is_watched()
True is this template is being watched.
Definition: template.cpp:149
bool is_deletable()
Definition: template.cpp:166
static Template::pointer create(Environment &environment, void *cobj=NULL)
Definition: template.cpp:33
Definition: template.h:35
Values slot_cardinality(const std::string &slot_name)
Returns the cardinality information for a slot.
Definition: template.cpp:72
std::string module_name()
The name of the module this template is in.
Definition: template.cpp:46
Definition: environment.h:57
DefaultType
Definition: template.h:33
std::vector< Value > Values
Definition: value.h:278
bool is_single_field_slot(const std::string &slot_name)
Determines whether a slot is a single field slot.
Definition: template.cpp:102
Environment & environment() const
Definition: environmentobject.cpp:33
bool is_multifield_slot(const std::string &slot_name)
Determines whether a slot is a multifield slot.
Definition: template.cpp:93
~Template()
Definition: template.cpp:37
Definition: template.h:36
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:33
Values slot_allowed_values(const std::string &slot_name)
Returns the allowed values for a given slot.
Definition: template.cpp:60
DefaultType slot_default_type(const std::string &slot_name)
Determines whether a slot has a default value.
Definition: template.cpp:121
bool retract()
Definition: template.cpp:177
bool slot_exists(const std::string &slot_name)
Determines whether a slot exists in the template.
Definition: template.cpp:84
CLIPSPointer< Template > pointer
Definition: template.h:44
std::string formatted()
Definition: template.cpp:53
Definition: template.h:42
Definition: template.h:34
Definition: environmentobject.h:31