libFAUDES

Sections

Index

faudes::SimConditionSet Class Reference
[Simulation Condition Attributes]

#include <sp_simconditionset.h>

Inherits faudes::TaNameSet< faudes::SimConditionAttribute >.

List of all members.


Detailed Description

Set of simulation named conditions.

Note: we currently share a symboltabel with the global event set. This will definitely change in a future revision.

Definition at line 401 of file sp_simconditionset.h.


Public Member Functions

virtual SimConditionSetNew (void) const
 Faudes Type interface.
virtual SimConditionSetCopy (void) const
 Faudes Type interface.
virtual const SimConditionSetCast (const Type *pOther) const
 Faudes Type interface.
virtual SimConditionSetAssign (const Type &rSrc)
 Assign configuration data from other object.
virtual bool Equal (const Type &rOther) const
 Test equality of configuration data.
virtual SimConditionSetoperator= (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 SimConditionSetDoAssign (const SimConditionSet &rSourceSet)
 Assign from other condition set.

Constructor & Destructor Documentation

faudes::SimConditionSet::SimConditionSet ( void   ) 

Default constructor.

Definition at line 294 of file sp_simconditionset.cpp.

faudes::SimConditionSet::SimConditionSet ( const SimConditionSet rOtherSet  ) 

Copy constructor.

Definition at line 299 of file sp_simconditionset.cpp.

virtual faudes::SimConditionSet::~SimConditionSet ( void   )  [inline, virtual]

Virtual destructor.

Definition at line 414 of file sp_simconditionset.h.


Member Function Documentation

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.

Parameters:
rSrc Source to copy from
Returns:
Reference to this object.

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.

Parameters:
rOther Other objevt to compare with.
Returns:
True on match.

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]

Test condition for enabled.

Definition at line 417 of file sp_simconditionset.h.

void faudes::SimConditionSet::Enabled ( Idx  cond,
bool  on 
) [inline]

Set condition enabled.

Definition at line 420 of file sp_simconditionset.h.

SimConditionSet faudes::SimConditionSet::EnabledConditions ( void   ) 

Get set of enabled conditions.

Definition at line 312 of file sp_simconditionset.cpp.

void faudes::SimConditionSet::Reset ( void   ) 

Reset all condition states.

Definition at line 320 of file sp_simconditionset.cpp.

virtual SimConditionSet& faudes::SimConditionSet::DoAssign ( const SimConditionSet rSourceSet  )  [inline, protected, virtual]

Assign from other condition set.

Parameters:
rSourceSet Destination to copy from
Returns:
ref to this set

Definition at line 438 of file sp_simconditionset.h.


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

libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6