EvolvingObjects
eoParallel Class Reference

eoParallel Class providing parameters for parallelization Use of a global variable eo::parallel to easily use the parallelization parameters anywhere More...

#include <eoParallel.h>

Inheritance diagram for eoParallel:
eoObject

List of all members.

Public Member Functions

virtual std::string className () const
 Return the class id.
bool isEnabled () const
bool isDynamic () const
std::string prefix () const
unsigned int nthreads () const
unsigned int packetSize () const
bool enableResults () const
bool doMeasure () const

Private Member Functions

void _createParameters (eoParser &)

Private Attributes

eoValueParam< bool > _isEnabled
eoValueParam< bool > _isDynamic
eoValueParam< std::string > _prefix
eoValueParam< unsigned int > _nthreads
eoValueParam< unsigned int > _packetSize
eoValueParam< bool > _enableResults
eoValueParam< bool > _doMeasure
double _t_start

Friends

void make_parallel (eoParser &)

Detailed Description

eoParallel Class providing parameters for parallelization Use of a global variable eo::parallel to easily use the parallelization parameters anywhere

Definition at line 42 of file eoParallel.h.


Member Function Documentation

std::string eoParallel::className ( ) const [virtual]

Return the class id.

This should be redefined in each class. Only "leaf" classes can be non-virtual.

Maarten: removed the default implementation as this proved to be too error-prone: I found several classes that had a typo in className (like classname), which would print eoObject instead of their own. Having it pure will force the implementor to provide a name.

Implements eoObject.

Definition at line 59 of file eoParallel.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends