![]() |
VR-Forces 4.3 Class Documentation
|
DtSequentialExecutionContainer is implementation of DtExecutionContainer which executes methods on all contained objects sequentially in a single thread. More...

Public Types | |
| typedef std::vector< Texec * > | SecContainerType |
| typedef SecContainerType::iterator | SecIteratorType |
Public Member Functions | |
| 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 (Texec *item) |
| Add a reference to the container. | |
| virtual void | remove (Texec *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 (Texec *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(Texec::*theMethodPtr)()) |
| Execute method on all contained objects sequentially in a single thread. | |
Protected Attributes | |
| SecContainerType | myExecVec |
| The execution container. | |
DtSequentialExecutionContainer is implementation of DtExecutionContainer which executes methods on all contained objects sequentially in a single thread.
Order of execution is guaranteed to be order-as-added.
| typedef std::vector<Texec *> DtSequentialExecutionContainer< Texec >::SecContainerType |
| typedef SecContainerType::iterator DtSequentialExecutionContainer< Texec >::SecIteratorType |
|
inline |
Construct a new container, default to parallel execution and grain_size of 10.
|
inlinevirtual |
Virtual destructor does NOT destroy contents.
Call deleteAndClear explicitly to delete contents.
|
inlinevirtual |
Add a reference to the container.
| item | the item to add to the container. |
Implements DtExecutionContainer< Texec >.
|
inlinevirtual |
Remove a reference from the container.
| item | the item to remove from the container. |
Implements DtExecutionContainer< Texec >.
|
inlinevirtual |
Clear the container.
Implements DtExecutionContainer< Texec >.
|
inlinevirtual |
Delete all referenced objects and then clear the container.
Items are deleted sequentially, not in parallel, so item's destructor isn't required to be thread safe.
Implements DtExecutionContainer< Texec >.
|
inlinevirtual |
Check if container is empty.
|
inlinevirtual |
Check if container contains item.
| item | the item to check. |
|
inlinevirtual |
Note: linux toolchain doesn't support const_iterator.
:( Begin iterator over the container.
Referenced by DtSequentialExecutionContainer< DtPreprocessor >::contains().
|
inlinevirtual |
End iterator over the container.
Referenced by DtSequentialExecutionContainer< DtPreprocessor >::contains().
|
inlinevirtual |
Execute method on all contained objects sequentially in a single thread.
| theMethodPtr | the method to execute. |
Implements DtExecutionContainer< Texec >.
|
protected |
The execution container.
Referenced by DtSequentialExecutionContainer< DtPreprocessor >::add(), DtSequentialExecutionContainer< DtPreprocessor >::begin(), DtSequentialExecutionContainer< DtPreprocessor >::clear(), DtSequentialExecutionContainer< DtPreprocessor >::empty(), DtSequentialExecutionContainer< DtPreprocessor >::end(), and DtSequentialExecutionContainer< DtPreprocessor >::remove().