![]() |
VR-Forces 4.10 Class Documentation
|
class DtSimTrigger: More...
Public Member Functions | |
| DtSimTrigger () | |
| default constructor More... | |
| DtSimTrigger (const DtStmtIndex &triggerStmt, DtPlan *plan) | |
| initializing constructor More... | |
| DtSimTrigger (const DtSimTrigger &orig, DtPlan *plan=NULL) | |
| copy constructor More... | |
| virtual | ~DtSimTrigger () |
| destructor More... | |
| DtSimTrigger & | operator= (const DtSimTrigger &orig) |
| Assignment operator (Note: this will NOT copy the plan pointer, and they had better not match!) More... | |
| virtual void | tick () |
| Test the condition, and activate the trigger if true. More... | |
| virtual bool | testCondition () |
| Check the current state of the When statement's test. More... | |
| virtual void | activate () |
| Unconditionally fire the trigger, and set the isDone flag. More... | |
| virtual const DtSimCondExpr * | condition () const |
| Used by testCondition() to look up the DtRegisterTriggerStatement's conditional expression and return a pointer to it. More... | |
| virtual DtTriggerBlock * | triggerBlock () const |
| Looks up the DtRegisterTriggerStatement's triggerBlock() and returns a pointer to it. More... | |
| virtual DtString | triggerOption () const |
| Looks up the DtRegisterTriggerStatement's option() string and returns it. More... | |
| virtual const DtRegisterTriggerStatement * | triggerStmt () const |
| Gets or sets a pointer to the DtRegisterTriggerStatement that created this trigger. More... | |
| virtual void | setTriggerStmt (const DtRegisterTriggerStatement *arg) |
| virtual void | translateInto (const DtSimBlock &newBlock) |
| Translate the When statement index to point into the new block. More... | |
| virtual DtPlan * | plan () const |
| virtual void | setPlan (DtPlan *arg) |
| When the Plan is set, this Trigger will be registered with the new Plan. More... | |
| virtual bool | enabled () const |
| virtual void | setEnabled (bool arg) |
| virtual bool | isDone () const |
| This function indicates that the trigger will not fire again and should be deleted by the Plan at the earliest opportunity. More... | |
| virtual void | setIsDone (bool arg) |
| virtual char * | netRep () |
| virtual int | netRepSize () const |
| returns the size of the full network representation padded to an 8-byte boundary. More... | |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Fills in the request from the network buffer. More... | |
| virtual bool | setToNet () |
| Fills in the network buffer (created by base class sim statement) with the set data request contents. More... | |
Protected Member Functions | |
| virtual char * | createNetworkBuffer () |
| virtual void | reregisterIfNeeded () |
Protected Attributes | |
| DtStmtIndex | myTriggerStmt |
| DtPlan * | myPlan |
| bool | myEnabled |
| bool | myIsDone |
| char * | myNetRep |
class DtSimTrigger:
Instances of DtSimTrigger represent pending triggers (triggers that have been registered by execution of a "When" statement).
| DtSimTrigger::DtSimTrigger | ( | ) |
default constructor
| DtSimTrigger::DtSimTrigger | ( | const DtStmtIndex & | triggerStmt, |
| DtPlan * | plan | ||
| ) |
initializing constructor
| DtSimTrigger::DtSimTrigger | ( | const DtSimTrigger & | orig, |
| DtPlan * | plan = NULL |
||
| ) |
copy constructor
|
virtual |
destructor
| DtSimTrigger& DtSimTrigger::operator= | ( | const DtSimTrigger & | orig | ) |
Assignment operator (Note: this will NOT copy the plan pointer, and they had better not match!)
|
virtual |
Test the condition, and activate the trigger if true.
|
virtual |
Check the current state of the When statement's test.
|
virtual |
Unconditionally fire the trigger, and set the isDone flag.
|
virtual |
Used by testCondition() to look up the DtRegisterTriggerStatement's conditional expression and return a pointer to it.
|
virtual |
Looks up the DtRegisterTriggerStatement's triggerBlock() and returns a pointer to it.
|
virtual |
Looks up the DtRegisterTriggerStatement's option() string and returns it.
|
virtual |
Gets or sets a pointer to the DtRegisterTriggerStatement that created this trigger.
|
virtual |
|
virtual |
Translate the When statement index to point into the new block.
|
virtual |
|
virtual |
When the Plan is set, this Trigger will be registered with the new Plan.
|
virtual |
|
virtual |
|
virtual |
This function indicates that the trigger will not fire again and should be deleted by the Plan at the earliest opportunity.
|
virtual |
|
virtual |
|
virtual |
returns the size of the full network representation padded to an 8-byte boundary.
Fills in the request from the network buffer.
|
virtual |
Fills in the network buffer (created by base class sim statement) with the set data request contents.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |