![]() |
VR-Forces 4.3.1 Class Documentation
|
Customize DtParallelExecutionContainer for preprocessing. More...

Public Member Functions | |
| virtual void | preprocess () |
| Call preprocess() on all objects in the container in parallel in groups of grainSize. | |
Public Member Functions inherited from DtParallelExecutionContainer< DtPreprocessor > | |
| DtParallelExecutionContainer (bool parallel=true) | |
| Construct a new container, default to parallel execution and grain_size of 10. | |
| virtual | ~DtParallelExecutionContainer () |
| 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 PecIteratorType | begin () |
| Note: linux toolchain doesn't support const_iterator. | |
| virtual PecIteratorType | end () |
| End iterator over the container. | |
| virtual void | executeMethod (void(DtPreprocessor::*theMethodPtr)()) |
| Execute method on all contained objects. | |
| virtual void | setParallel (bool parallel) |
| Set execution to either parallel or serial. | |
| virtual bool | isParallel () const |
| Get execution mode. | |
| virtual void | setGrainSize (int theGrainSize) |
| Set the number of serial executions within one parallel execution. | |
| virtual int | getGrainSize () const |
| Get the number of serial executions within one parallel execution. | |
Additional Inherited Members | |
Public Types inherited from DtParallelExecutionContainer< DtPreprocessor > | |
| typedef std::vector < DtPreprocessor * > | PecContainerType |
| Container is a vector because that is simple to divide into ranges. | |
| typedef PecContainerType::iterator | PecIteratorType |
Protected Member Functions inherited from DtParallelExecutionContainer< DtPreprocessor > | |
| virtual void | executeMethodParallel (void(DtPreprocessor::*theMethodPtr)()) |
| Execute method on all contained objects in parallel using multiple threads. | |
| virtual void | executeMethodSerial (void(DtPreprocessor::*theMethodPtr)()) |
| Execute method on all contained objects sequentially in a single thread. | |
Protected Attributes inherited from DtParallelExecutionContainer< DtPreprocessor > | |
| PecContainerType | myExecVec |
| The execution container. | |
Customize DtParallelExecutionContainer for preprocessing.
Used in DtVrfObjMgr to preprocess its DtVrfObjects in parallel threads.
|
inlinevirtual |
Call preprocess() on all objects in the container in parallel in groups of grainSize.
References DtParallelExecutionContainer< DtPreprocessor >::executeMethod(), and DtPreprocessor::preprocess().