LAMA
lama::PGASCommunicatorManager Class Reference

Singleton class to manage PGAS Communicator. More...

#include <PGASCommunicatorManager.hpp>

Inheritance diagram for lama::PGASCommunicatorManager:

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()

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

CommunicatorPtr lama::PGASCommunicatorManager::getCommunicator ( int &  argc,
char **&  argv 
) [virtual]

Method that returns a communicator.

Parameters:
[in,out]argcnumber of arguments
[in,out]argvarray of command line arguments

Implements lama::CommunicatorManager.

References mCommInstance.


Field Documentation

used to force call of init()

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().


The documentation for this class was generated from the following files: