#include <DistributionStrategy.h>
Public Member Functions | |
EngineListStrategy (void) | |
void | setEngineList (const list< int > &the_engine_list) |
void | addEngineList (const int e) |
virtual | ~EngineListStrategy () |
virtual SimEngine::ID | operator() (SimNetwork *net) |
virtual SimEngine::ID | operator() (DistributedNetwork *dn) |
Protected Attributes | |
list< int > | engine_list |
Definition at line 147 of file DistributionStrategy.h.
DistributionStrategy::EngineListStrategy::EngineListStrategy | ( | void | ) | [inline] |
Definition at line 150 of file DistributionStrategy.h.
virtual DistributionStrategy::EngineListStrategy::~EngineListStrategy | ( | ) | [inline, virtual] |
Definition at line 164 of file DistributionStrategy.h.
void DistributionStrategy::EngineListStrategy::setEngineList | ( | const list< int > & | the_engine_list | ) | [inline] |
void DistributionStrategy::EngineListStrategy::addEngineList | ( | const int | e | ) | [inline] |
SimEngine::ID DistributionStrategy::EngineListStrategy::operator() | ( | SimNetwork * | net | ) | [virtual] |
Implements DistributionStrategy::DistributionFunction.
Definition at line 74 of file DistributionStrategy.cpp.
References engine_list, SimNetwork::getMainConstructRNGEngine(), SimNetwork::maxLocalEngineID(), and SimNetwork::mpi_rank().
SimEngine::ID DistributionStrategy::EngineListStrategy::operator() | ( | DistributedNetwork * | dn | ) | [virtual] |
Implements DistributionStrategy::DistributionFunction.
Definition at line 89 of file DistributionStrategy.cpp.
References engine_list, DistributedNetwork::getLocation(), SimNetwork::getMainConstructRNGEngine(), and DistributedNetwork::maxGlobalEngineID().
list<int> DistributionStrategy::EngineListStrategy::engine_list [protected] |
Definition at line 172 of file DistributionStrategy.h.
Referenced by addEngineList(), operator()(), and setEngineList().