VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
DtParallelPreprocessorContainer Class Reference

Customize DtParallelExecutionContainer for preprocessing. More...

Inheritance diagram for DtParallelPreprocessorContainer:
Inheritance graph
[legend]

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.

Detailed Description

Customize DtParallelExecutionContainer for preprocessing.

Used in DtVrfObjMgr to preprocess its DtVrfObjects in parallel threads.

Member Function Documentation

virtual void DtParallelPreprocessorContainer::preprocess ( )
inlinevirtual

Call preprocess() on all objects in the container in parallel in groups of grainSize.

References DtParallelExecutionContainer< DtPreprocessor >::executeMethod(), and DtPreprocessor::preprocess().


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)