| |
libFAUDES
Sections
Index
|
faudes::ClockSet Class Reference |
Public Member Functions | |
virtual ClockSet * | New (void) const |
Construct on heap. | |
virtual ClockSet * | Copy (void) const |
Construct on heap. | |
virtual const ClockSet * | Cast (const Type *pOther) const |
Cast other object to this type. | |
virtual ClockSet & | Assign (const Type &rSrc) |
Assign configuration data from other object. | |
virtual bool | Equal (const Type &rOther) const |
Test equality of configuration data. | |
virtual ClockSet & | operator= (const ClockSet &rSrc) |
virtual bool | operator== (const ClockSet &rOther) const |
virtual bool | operator!= (const ClockSet &rOther) const |
ClockSet (void) | |
Constructor. | |
ClockSet (const ClockSet &rOtherSet) | |
Copy-constructor. | |
ClockSet (const std::string &rFilename, const std::string &rLabel="Clocks") | |
Construct from file. | |
Static Public Member Functions | |
static SymbolTable * | StaticSymbolTablep (void) |
Get pointer to static clock SymbolTable. | |
Protected Member Functions | |
virtual ClockSet & | DoAssign (const ClockSet &rSourceSet) |
Assign from other clock set. | |
virtual bool | DoEqual (const ClockSet &rOtherSet) const |
Test equality with other clock set. | |
Static Protected Attributes | |
static SymbolTable | msSymbolTable |
Static global SymbolTable for clock names. |
faudes::ClockSet::ClockSet | ( | void | ) |
faudes::ClockSet::ClockSet | ( | const ClockSet & | rOtherSet | ) |
Copy-constructor.
rOtherSet | Set to copy |
Definition at line 44 of file tp_timeconstraint.cpp.
faudes::ClockSet::ClockSet | ( | const std::string & | rFilename, | |
const std::string & | rLabel = "Clocks" | |||
) |
Construct from file.
Uses the NameSet's Read() function to scan a file for a specified clockset.
rFilename | File to read | |
rLabel | Section label for the clocks in the file; default value "Clocks" |
Definition at line 49 of file tp_timeconstraint.cpp.
ClockSet * faudes::ClockSet::New | ( | void | ) | const [virtual] |
Construct on heap.
Technically not a constructor, this function creates an object with the same type Type. New() is defined as a virtual function and derived classes are meant to re-implement with the appropiate constructor. This can be done via the provided macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION. As with new, it is the callers reponsabilty to delete the object when no longer needed.
Reimplemented from faudes::NameSet.
Definition at line 57 of file tp_timeconstraint.cpp.
ClockSet * faudes::ClockSet::Copy | ( | void | ) | const [virtual] |
Construct on heap.
Technically not a constructor, this function creates an object with the same type Type and the same configuration. Copy() is defined as a virtual function and derived classes are meant to re-implement with the appropiate copy constructor. This can be done via the provided macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION. As with new, it is the callers reponsabilty to delete the object when no longer needed.
Reimplemented from faudes::NameSet.
Definition at line 27 of file tp_timeconstraint.cpp.
Cast other object to this type.
Enables the run-time interface to test whether pObject is derived from this object. This feature is used e.g. in the faudes container classes to test attributes. Derived classes must reimplement this function using the appropriate dynamic cast.
Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.
Reimplemented from faudes::NameSet.
Definition at line 28 of file tp_timeconstraint.cpp.
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::NameSet.
Definition at line 29 of file tp_timeconstraint.cpp.
bool faudes::ClockSet::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::NameSet.
Definition at line 30 of file tp_timeconstraint.cpp.
Definition at line 29 of file tp_timeconstraint.cpp.
bool faudes::ClockSet::operator== | ( | const ClockSet & | rOther | ) | const [virtual] |
Definition at line 30 of file tp_timeconstraint.cpp.
bool faudes::ClockSet::operator!= | ( | const ClockSet & | rOther | ) | const [virtual] |
Definition at line 30 of file tp_timeconstraint.cpp.
SymbolTable * faudes::ClockSet::StaticSymbolTablep | ( | void | ) | [static] |
Get pointer to static clock SymbolTable.
Definition at line 78 of file tp_timeconstraint.cpp.
Assign from other clock set.
rSourceSet | Destination to copy from |
Definition at line 64 of file tp_timeconstraint.cpp.
bool faudes::ClockSet::DoEqual | ( | const ClockSet & | rOtherSet | ) | const [protected, virtual] |
Test equality with other clock set.
rOtherSet | Set to compare with |
Definition at line 72 of file tp_timeconstraint.cpp.
SymbolTable faudes::ClockSet::msSymbolTable [static, protected] |
libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6