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