SIMLIB/C++
3.07
|
abstract base class for all state-condition blocks State event in combined model is executed at the time when the condition changes its boolean value More...
#include <simlib.h>
Public Member Functions | |
aCondition () | |
~aCondition () | |
![]() | |
bool | TestAndSetFlag (bool new_value, unsigned n) |
internal method for flag manipulation is used for algebraic loop checking in continuous blocks More... | |
SimObject () | |
constructor More... | |
virtual | ~SimObject () |
virtual destructor More... | |
void * | operator new (size_t size) |
allocate object, set _flags More... | |
void | operator delete (void *ptr) |
deallocate object More... | |
void * | operator new[] (size_t size)=delete |
void | operator delete[] (void *ptr)=delete |
bool | isAllocated () const |
virtual std::string | Name () const |
get object name More... | |
bool | HasName () const |
void | SetName (const std::string &name) |
assign the name More... | |
virtual void | Output () const |
print object to default output More... | |
Static Public Member Functions | |
static void | InitAll () |
static void | SetAll () |
static void | TestAll () |
static void | AllActions () |
static bool | isAny () |
Private Member Functions | |
void | operator= (const aCondition &)=delete |
aCondition (const aCondition &)=delete | |
virtual void | Init ()=0 |
initialize More... | |
virtual void | SetNewStatus ()=0 |
update More... | |
virtual bool | Test ()=0 |
test of the condition More... | |
virtual void | Action ()=0 |
state event description More... | |
Private Attributes | |
aCondition * | Next |
Static Private Attributes | |
static aCondition * | First = 0 |
Additional Inherited Members | |
![]() | |
enum | _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 } |
![]() | |
unsigned | _flags |
bool flags for internal use (TODO bitfield?) More... | |
abstract base class for all state-condition blocks State event in combined model is executed at the time when the condition changes its boolean value
|
privatedelete |
simlib3::aCondition::~aCondition | ( | ) |
|
privatepure virtual |
state event description
|
static |
Change???? ### !!!!
Definition at line 130 of file cond.cc.
References Next.
Referenced by simlib3::SIMLIB_DoConditions().
|
privatepure virtual |
initialize
Implemented in simlib3::Condition.
|
static |
Definition at line 56 of file cond.cc.
Referenced by simlib3::SIMLIB_ContinueInit().
|
static |
Definition at line 70 of file cond.cc.
References First.
Referenced by simlib3::SIMLIB_ContinueInit().
|
privatedelete |
|
static |
Definition at line 65 of file cond.cc.
Referenced by simlib3::SIMLIB_ContinueInit(), and simlib3::SIMLIB_DoConditions().
|
privatepure virtual |
update
Implemented in simlib3::Condition.
|
privatepure virtual |
test of the condition
Implemented in simlib3::ConditionDown, simlib3::ConditionUp, and simlib3::Condition.
|
static |
Definition at line 123 of file cond.cc.
References Next.
Referenced by simlib3::IntegrationMethod::Iterate(), simlib3::IntegrationMethod::Prepare(), simlib3::SIMLIB_ContinueInit(), and simlib3::IntegrationMethod::StateCond().
|
staticprivate |
Definition at line 1485 of file simlib.h.
Referenced by aCondition(), InitAll(), isAny(), SetAll(), and ~aCondition().
|
private |
Definition at line 1486 of file simlib.h.
Referenced by AllActions(), InitAll(), SetAll(), TestAll(), and ~aCondition().