LAMA
|
Singleton class to manage PGAS Communicator. More...
#include <PGASCommunicatorManager.hpp>
Public Member Functions | |
virtual CommunicatorPtr | getCommunicator (int &argc, char **&argv) |
Method that returns a communicator. | |
virtual | ~PGASCommunicatorManager () |
Protected Attributes | |
std::string | mCommunicatorType |
type of communicator managed | |
Private Member Functions | |
LAMA_LOG_DECL_STATIC_LOGGER (logger) | |
PGASCommunicatorManager () | |
Static Private Member Functions | |
static bool | init () |
create an instance that is added to communicator factory | |
Private Attributes | |
boost::shared_ptr< const PGASCommunicator > | mCommInstance |
PGAS communicator manager keeps a shared pointer to avoid multiple calls of PGAS_Init and PGAS_Finalize. | |
Static Private Attributes | |
static bool | __init = PGASCommunicatorManager::init() |
used to force call of init() |
Singleton class to manage PGAS Communicator.
Regarding PGAS there is the restriction that after an PGAS_FINALIZE another call of PGAS_INIT is not allowed.
lama::PGASCommunicatorManager::~PGASCommunicatorManager | ( | ) | [virtual] |
References mCommInstance.
lama::PGASCommunicatorManager::PGASCommunicatorManager | ( | ) | [private] |
Referenced by init().
CommunicatorPtr lama::PGASCommunicatorManager::getCommunicator | ( | int & | argc, |
char **& | argv | ||
) | [virtual] |
Method that returns a communicator.
[in,out] | argc | number of arguments |
[in,out] | argv | array of command line arguments |
Implements lama::CommunicatorManager.
References mCommInstance.
bool lama::PGASCommunicatorManager::init | ( | ) | [static, private] |
create an instance that is added to communicator factory
References lama::CommunicatorFactory::addCommunicatorManager(), COMMUNICATOR_TYPE, lama::CommunicatorFactory::getFactory(), lama::PGASInterface::getInstance(), and PGASCommunicatorManager().
lama::PGASCommunicatorManager::LAMA_LOG_DECL_STATIC_LOGGER | ( | logger | ) | [private] |
Reimplemented from lama::CommunicatorManager.
bool lama::PGASCommunicatorManager::__init = PGASCommunicatorManager::init() [static, private] |
used to force call of init()
boost::shared_ptr<const PGASCommunicator> lama::PGASCommunicatorManager::mCommInstance [private] |
PGAS communicator manager keeps a shared pointer to avoid multiple calls of PGAS_Init and PGAS_Finalize.
Referenced by getCommunicator(), and ~PGASCommunicatorManager().
std::string lama::CommunicatorManager::mCommunicatorType [protected, inherited] |
type of communicator managed
Referenced by lama::CommunicatorManager::~CommunicatorManager().