| |
libFAUDES
Sections
Index
|
faudes::SimConditionSet Class Reference |
Public Member Functions | |
virtual SimConditionSet * | New (void) const |
Faudes Type interface. | |
virtual SimConditionSet * | Copy (void) const |
Faudes Type interface. | |
virtual const SimConditionSet * | Cast (const Type *pOther) const |
Faudes Type interface. | |
virtual SimConditionSet & | Assign (const Type &rSrc) |
Assign configuration data from other object. | |
virtual bool | Equal (const Type &rOther) const |
Test equality of configuration data. | |
virtual SimConditionSet & | operator= (const SimConditionSet &rSrc) |
virtual bool | operator== (const SimConditionSet &rOther) const |
virtual bool | operator!= (const SimConditionSet &rOther) const |
SimConditionSet (void) | |
Default constructor. | |
SimConditionSet (const SimConditionSet &rOtherSet) | |
Copy constructor. | |
virtual | ~SimConditionSet (void) |
Virtual destructor. | |
bool | Enabled (Idx cond) const |
Test condition for enabled. | |
void | Enabled (Idx cond, bool on) |
Set condition enabled. | |
SimConditionSet | EnabledConditions (void) |
Get set of enabled conditions. | |
void | Reset (void) |
Reset all condition states. | |
Protected Member Functions | |
virtual SimConditionSet & | DoAssign (const SimConditionSet &rSourceSet) |
Assign from other condition set. |
faudes::SimConditionSet::SimConditionSet | ( | void | ) |
faudes::SimConditionSet::SimConditionSet | ( | const SimConditionSet & | rOtherSet | ) |
virtual faudes::SimConditionSet::~SimConditionSet | ( | void | ) | [inline, virtual] |
SimConditionSet * faudes::SimConditionSet::New | ( | void | ) | const [virtual] |
Faudes Type interface.
Construct object of same type on heap.
Reimplemented from faudes::TaNameSet< Attr >.
Definition at line 305 of file sp_simconditionset.cpp.
SimConditionSet * faudes::SimConditionSet::Copy | ( | void | ) | const [virtual] |
Faudes Type interface.
Construct copy on heap.
Reimplemented from faudes::TaNameSet< Attr >.
Definition at line 287 of file sp_simconditionset.cpp.
const SimConditionSet * faudes::SimConditionSet::Cast | ( | const Type * | pType | ) | const [virtual] |
Faudes Type interface.
Cast object to my type.
Reimplemented from faudes::TaNameSet< Attr >.
Definition at line 288 of file sp_simconditionset.cpp.
SimConditionSet & faudes::SimConditionSet::Assign | ( | const Type & | rSrc | ) | [virtual] |
Assign configuration data from other object.
Derived classes should reimplement this method to first try to cast the source to the respective class. If successful, the protected function DoAssign is invoked to perform the actual assignment. If the cast fails, the Assign method of the parent class is called. Thus, faudes objects are up- and downcatsted for assignment, maintaining as much of the source data as digestable by the destination object. On the downside, there is no sensible typechecking at compile-time.
Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
rSrc | Source to copy from |
Reimplemented from faudes::TaNameSet< Attr >.
Definition at line 289 of file sp_simconditionset.cpp.
bool faudes::SimConditionSet::Equal | ( | const Type & | rOther | ) | const [virtual] |
Test equality of configuration data.
Derived classes should reimplement this method to return true if both actual types and configuration data match. The object name is not consired in the test.
This method calls the virtual method DoEqual(). Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
rOther | Other objevt to compare with. |
Reimplemented from faudes::TaNameSet< Attr >.
Definition at line 290 of file sp_simconditionset.cpp.
SimConditionSet & faudes::SimConditionSet::operator= | ( | const SimConditionSet & | rSrc | ) | [virtual] |
Definition at line 289 of file sp_simconditionset.cpp.
bool faudes::SimConditionSet::operator== | ( | const SimConditionSet & | rOther | ) | const [virtual] |
Definition at line 290 of file sp_simconditionset.cpp.
bool faudes::SimConditionSet::operator!= | ( | const SimConditionSet & | rOther | ) | const [virtual] |
Definition at line 290 of file sp_simconditionset.cpp.
bool faudes::SimConditionSet::Enabled | ( | Idx | cond | ) | const [inline] |
void faudes::SimConditionSet::Enabled | ( | Idx | cond, | |
bool | on | |||
) | [inline] |
SimConditionSet faudes::SimConditionSet::EnabledConditions | ( | void | ) |
void faudes::SimConditionSet::Reset | ( | void | ) |
virtual SimConditionSet& faudes::SimConditionSet::DoAssign | ( | const SimConditionSet & | rSourceSet | ) | [inline, protected, virtual] |
Assign from other condition set.
rSourceSet | Destination to copy from |
Definition at line 438 of file sp_simconditionset.h.
libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6