VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtJobSplitter Class Reference

this class is used to split work up between threads. More...

Public Member Functions

 DtJobSplitter (DtDe &de)
 CTOR. More...
 
virtual ~DtJobSplitter ()
 DTOR. More...
 
virtual void addJob (DtJobSplitterJob *job)
 Adds the given job t the master list of jobs. More...
 
virtual size_t jobCount ()
 Returns the current number of jobs. More...
 
virtual void runJobs (int threshold)
 Runs all jobs that are in the master list. More...
 

Protected Attributes

DtDemyDe
 
std::vector< DtJobSplitterJob * > myJobs
 

Private Member Functions

 DtJobSplitter ()
 Default Constructor not implemented. More...
 
 DtJobSplitter (const DtJobSplitter &other)
 Copy Constructor not implemented - Copy not allowed. More...
 
DtJobSplitteroperator= (const DtJobSplitter &other)
 Assignment Operator not implemented - Assignment not allowed. More...
 

Detailed Description

this class is used to split work up between threads.

Jobs are added to the splitter using the addJob() method. when the work is ready to be performed, runJobs() is called to process the job list. The job list is cleared when all jobs have finished.

Constructor & Destructor Documentation

makVrv::DtJobSplitter::DtJobSplitter ( DtDe de)

CTOR.

virtual makVrv::DtJobSplitter::~DtJobSplitter ( )
virtual

DTOR.

makVrv::DtJobSplitter::DtJobSplitter ( )
private

Default Constructor not implemented.

makVrv::DtJobSplitter::DtJobSplitter ( const DtJobSplitter other)
private

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

DtJobSplitter& makVrv::DtJobSplitter::operator= ( const DtJobSplitter other)
private

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtJobSplitter::addJob ( DtJobSplitterJob job)
virtual

Adds the given job t the master list of jobs.

Parameters
jobThe job to add.
virtual size_t makVrv::DtJobSplitter::jobCount ( )
virtual

Returns the current number of jobs.

virtual void makVrv::DtJobSplitter::runJobs ( int  threshold)
virtual

Runs all jobs that are in the master list.

Clears list. This method does not return until the jobs are complete. param threshold The number at which jobs will be divided among threads. In other words, the number of jobs to give each thread.

Member Data Documentation

DtDe& makVrv::DtJobSplitter::myDe
protected
std::vector<DtJobSplitterJob*> makVrv::DtJobSplitter::myJobs
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)