LAMA
|
Base class for a communicator manager. More...
#include <CommunicatorManager.hpp>
Public Member Functions | |
virtual | ~CommunicatorManager () |
virtual CommunicatorPtr | getCommunicator (int &argc, char **&argv)=0 |
Method that returns a communicator. | |
Protected Member Functions | |
CommunicatorManager (const char *type) | |
Constructor of a CommunicatorManager, type must be specified. | |
LAMA_LOG_DECL_STATIC_LOGGER (logger) | |
Protected Attributes | |
std::string | mCommunicatorType |
type of communicator managed |
Base class for a communicator manager.
For each communicator type a communicator manager must be available. The communicator manager registers in the CommunicatorFactory and delivers a shared pointer for a communicator.
lama::CommunicatorManager::~CommunicatorManager | ( | ) | [virtual] |
References mCommunicatorType.
lama::CommunicatorManager::CommunicatorManager | ( | const char * | type | ) | [protected] |
Constructor of a CommunicatorManager, type must be specified.
virtual CommunicatorPtr lama::CommunicatorManager::getCommunicator | ( | int & | argc, |
char **& | argv | ||
) | [pure virtual] |
Method that returns a communicator.
[in,out] | argc | number of arguments |
[in,out] | argv | array of command line arguments |
Implemented in lama::MPICommunicatorManager, lama::PGASCommunicatorManager, and lama::NoCommunicatorManager.
Referenced by lama::MatrixConfigGrammar::MatrixConfigGrammar().
lama::CommunicatorManager::LAMA_LOG_DECL_STATIC_LOGGER | ( | logger | ) | [protected] |
Reimplemented in lama::MPICommunicatorManager, and lama::PGASCommunicatorManager.
std::string lama::CommunicatorManager::mCommunicatorType [protected] |
type of communicator managed
Referenced by ~CommunicatorManager().