EvolvingObjects
eo::mpi::ParallelApplyStore< EOT > Struct Template Reference

Store containing all the datas and the functors for the parallel apply (map) job. More...

#include <eoParallelApply.h>

Inheritance diagram for eo::mpi::ParallelApplyStore< EOT >:
eo::mpi::JobStore< ParallelApplyData< EOT > >

List of all members.

Public Member Functions

 ParallelApplyStore (eoUF< EOT &, void > &_proc, int _masterRank, int _packetSize=1, SendTaskParallelApply< EOT > *stpa=0, HandleResponseParallelApply< EOT > *hrpa=0, ProcessTaskParallelApply< EOT > *ptpa=0, IsFinishedParallelApply< EOT > *ifpa=0)
 Main constructor for the parallel apply (map) job.
ParallelApplyData< EOT > * data ()
void data (std::vector< EOT > &_pop)
 Reinits the store with a new table to evaluate.

Protected Attributes

ParallelApplyData< EOT > _data

Detailed Description

template<class EOT>
struct eo::mpi::ParallelApplyStore< EOT >

Store containing all the datas and the functors for the parallel apply (map) job.

User can tune functors when constructing the object. For each functor which is not given, a default one is generated.

Examples:
t-mpi-multipleRoles.cpp, t-mpi-parallelApply.cpp, and t-mpi-wrapper.cpp.

Definition at line 278 of file eoParallelApply.h.


Constructor & Destructor Documentation

template<class EOT>
eo::mpi::ParallelApplyStore< EOT >::ParallelApplyStore ( eoUF< EOT &, void > &  _proc,
int  _masterRank,
int  _packetSize = 1,
SendTaskParallelApply< EOT > *  stpa = 0,
HandleResponseParallelApply< EOT > *  hrpa = 0,
ProcessTaskParallelApply< EOT > *  ptpa = 0,
IsFinishedParallelApply< EOT > *  ifpa = 0 
) [inline]

Main constructor for the parallel apply (map) job.

Parameters:
_procThe procedure to apply to each element of the table.
_masterRankThe rank of the master process.
_packetSizeThe number of elements of the table to be evaluated at a time, by the worker.
stpaPointer to Send Task parallel apply functor descendant. If null, a default one is used.
hrpaPointer to Handle Response parallel apply functor descendant. If null, a default one is used.
ptpaPointer to Process Task parallel apply functor descendant. If null, a default one is used.
ifpaPointer to Is Finished parallel apply functor descendant. If null, a default one is used.

Definition at line 296 of file eoParallelApply.h.

References eo::mpi::SharedDataFunction< JobData, Wrapped >::needDelete().


Member Function Documentation

template<class EOT>
void eo::mpi::ParallelApplyStore< EOT >::data ( std::vector< EOT > &  _pop) [inline]

Reinits the store with a new table to evaluate.

Parameters:
_popThe table of elements to be evaluated.

Definition at line 341 of file eoParallelApply.h.


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