![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtExecutionContainer is only the definition of a container which executes methods on all contained objects. This is an abstract class template which defines the methods required of an execution container but provides no implementation. The container must permit addition and removal of items, and execution of a method on contained items. The template parameter specifies the type of objects in the container.

Public Member Functions | |
| virtual void | add (Texec *item)=0 |
| virtual void | remove (Texec *item)=0 |
| virtual void | clear ()=0 |
| virtual void | deleteAndClear ()=0 |
| virtual void | executeMethod (void(Texec::*theMethodPtr)())=0 |
|
pure virtual |
Add a reference to the container.
| item | the item to add to the container. |
Implemented in DtSequentialExecutionContainer< Texec >.
|
pure virtual |
Remove a reference from the container.
| item | the item to remove from the container. |
Implemented in DtSequentialExecutionContainer< Texec >.
|
pure virtual |
Clear the container.
Implemented in DtSequentialExecutionContainer< Texec >.
|
pure virtual |
Delete all referenced objects and then clear the container.
Implemented in DtSequentialExecutionContainer< Texec >.
|
pure virtual |
Execute method on all contained objects. Pass an argument of the form class:method, e.g. for a method like 'void MyClass::myVoidMethod();' call as 'myExecContainer.executeMethod(MyClass::myVoidMethod);'.
| theMethodPtr | the method to execute of all contained instances. |
Implemented in DtSequentialExecutionContainer< Texec >.