![]() |
VR-Link API Documentation for DIS
|
DtPublisherContainer is an container which will execute a method on all contained objects in parallel threads. More...
Inheritance diagram for DtPublisherContainer< Texec >:
Collaboration diagram for DtPublisherContainer< Texec >:Public Member Functions | |
| DtPublisherContainer (bool parallel=true) | |
| virtual | ~DtPublisherContainer () |
| virtual void | forceUpdate () |
| For publisher to send PDUs on next tick for all objects. More... | |
| virtual void | tick () |
| Tick (update) all objects. More... | |
Public Member Functions inherited from DtParallelExecutionContainer< Texec > | |
| DtParallelExecutionContainer (bool parallel=true) | |
| Default to parallel execution. More... | |
| virtual | ~DtParallelExecutionContainer () |
| virtual void | add (Texec *item) |
| Add a reference to the list. More... | |
| virtual void | remove (Texec *item) |
| Remove a reference from the list. More... | |
| virtual void | clear () |
| Clear the list. More... | |
| virtual bool | empty () |
| Returns true if the container is empty. More... | |
| virtual unsigned int | count () |
| Returns the number of items in the container. More... | |
| virtual void | deleteAndClear () |
| Delete all referenced objects and then clear the list. More... | |
| virtual PecIteratorType | begin () |
| Iterators over the collection. More... | |
| virtual PecIteratorType | end () |
| virtual void | executeMethod (void(Texec::*theMethodPtr)()) |
| worker methods More... | |
| virtual void | setParallel (bool parallel) |
| The 'parallel' property determines if the methods are executed in parallel or serial. More... | |
| virtual bool | isParallel () const |
Additional Inherited Members | |
Public Types inherited from DtParallelExecutionContainer< Texec > | |
| typedef std::vector< Texec * > | PecContainerType |
| typedef PecContainerType::iterator | PecIteratorType |
Protected Member Functions inherited from DtParallelExecutionContainer< Texec > | |
| virtual void | executeMethodParallel (void(Texec::*theMethodPtr)()) |
| Execute method on all contained objects in parallel using multiple threads. More... | |
| virtual void | executeMethodSerial (void(Texec::*theMethodPtr)()) |
| For test and debug, a convenience to execute methods serially. More... | |
| virtual void | beginParallel () |
| executed before entering a parallel section More... | |
| virtual void | endParallel () |
| executed after leaving a parallel section More... | |
Protected Attributes inherited from DtParallelExecutionContainer< Texec > | |
| PecContainerType | myExecVec |
| Contains pointers to published entities. More... | |
DtPublisherContainer is an container which will execute a method on all contained objects in parallel threads.
The object is expected to be of a DtXXXPublisher type. The method must be thread safe. Note this class itself is not thread safe, but does not need to be to support parallel execution of its contents.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
For publisher to send PDUs on next tick for all objects.
|
inlinevirtual |
Tick (update) all objects.