![]() |
VR-Forces 4.3.1 Class Documentation
|
Customize DtSequentialPreprocessorContainer for preprocessing in a single thread. More...

Public Member Functions | |
| virtual void | preprocess () |
| Call preprocess() on all objects in the container. | |
Public Member Functions inherited from DtSequentialExecutionContainer< DtPreprocessor > | |
| DtSequentialExecutionContainer () | |
| Construct a new container, default to parallel execution and grain_size of 10. | |
| virtual | ~DtSequentialExecutionContainer () |
| Virtual destructor does NOT destroy contents. | |
| virtual void | add (DtPreprocessor *item) |
| Add a reference to the container. | |
| virtual void | remove (DtPreprocessor *item) |
| Remove a reference from the container. | |
| virtual void | clear () |
| Clear the container. | |
| virtual void | deleteAndClear () |
| Delete all referenced objects and then clear the container. | |
| virtual bool | empty () const |
| Check if container is empty. | |
| virtual bool | contains (DtPreprocessor *item) |
| Check if container contains item. | |
| virtual SecIteratorType | begin () |
| Note: linux toolchain doesn't support const_iterator. | |
| virtual SecIteratorType | end () |
| End iterator over the container. | |
| virtual void | executeMethod (void(DtPreprocessor::*theMethodPtr)()) |
| Execute method on all contained objects sequentially in a single thread. | |
Additional Inherited Members | |
Public Types inherited from DtSequentialExecutionContainer< DtPreprocessor > | |
| typedef std::vector < DtPreprocessor * > | SecContainerType |
| typedef SecContainerType::iterator | SecIteratorType |
Protected Attributes inherited from DtSequentialExecutionContainer< DtPreprocessor > | |
| SecContainerType | myExecVec |
| The execution container. | |
Customize DtSequentialPreprocessorContainer for preprocessing in a single thread.
Used in DtVrfObject to preprocess its DtSimComponents.
|
inlinevirtual |
Call preprocess() on all objects in the container.
Preprocess is called in the same order as added to the container. This means the order that preprocess is called will be the same order that tick is called. This is important for intra-component dependencies, e.g. controllers which use sensor input.
References DtSequentialExecutionContainer< DtPreprocessor >::executeMethod(), and DtPreprocessor::preprocess().