#include <DistributionStrategy.h>
Public Member Functions | |
RankListStrategy (void) | |
void | setRankList (const list< int > &the_rank_list) |
void | addEngineList (const int e) |
virtual | ~RankListStrategy () |
virtual SimEngine::ID | operator() (SimNetwork *net) |
virtual SimEngine::ID | operator() (DistributedNetwork *dn) |
Protected Attributes | |
list< int > | rank_list |
int | e |
Definition at line 177 of file DistributionStrategy.h.
DistributionStrategy::RankListStrategy::RankListStrategy | ( | void | ) | [inline] |
virtual DistributionStrategy::RankListStrategy::~RankListStrategy | ( | ) | [inline, virtual] |
Definition at line 195 of file DistributionStrategy.h.
void DistributionStrategy::RankListStrategy::setRankList | ( | const list< int > & | the_rank_list | ) | [inline] |
void DistributionStrategy::RankListStrategy::addEngineList | ( | const int | e | ) | [inline] |
SimEngine::ID DistributionStrategy::RankListStrategy::operator() | ( | SimNetwork * | net | ) | [virtual] |
Implements DistributionStrategy::DistributionFunction.
Definition at line 105 of file DistributionStrategy.cpp.
References e, SimNetwork::getMainConstructRNGEngine(), SimNetwork::maxLocalEngineID(), SimNetwork::mpi_rank(), and rank_list.
SimEngine::ID DistributionStrategy::RankListStrategy::operator() | ( | DistributedNetwork * | dn | ) | [virtual] |
Implements DistributionStrategy::DistributionFunction.
Definition at line 122 of file DistributionStrategy.cpp.
References e, DistributedNetwork::getLocation(), SimNetwork::getMainConstructRNGEngine(), DistributedNetwork::maxGlobalEngineID(), DistributedNetwork::maxLocalEngineID(), and rank_list.
list<int> DistributionStrategy::RankListStrategy::rank_list [protected] |
Definition at line 203 of file DistributionStrategy.h.
Referenced by addEngineList(), operator()(), and setRankList().
int DistributionStrategy::RankListStrategy::e [protected] |
Definition at line 204 of file DistributionStrategy.h.
Referenced by operator()(), and RankListStrategy().