OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
CommCreator Class Reference

#include <CommCreator.h>

Public Types

enum  {
  PM, MPI, SHMEMPI, SERIAL,
  COMMLIBRARIES
}
 

Public Member Functions

 CommCreator ()
 
 ~CommCreator ()
 

Static Public Member Functions

static int getNumLibraries ()
 
static const char * getLibraryName (int)
 
static const char * getAllLibraryNames ()
 
static bool supported (int)
 
static bool supported (const char *nm)
 
static bool known (const char *nm)
 
static Communicatecreate (int, int &, char **&, int=(-1), bool=true, MPI_Comm mpicomm=MPI_COMM_WORLD)
 
static Communicatecreate (const char *nm, int &argc, char **&argv, int nodes=(-1), bool doinit=true, MPI_Comm mpicomm=MPI_COMM_WORLD)
 

Static Private Member Functions

static int libindex (const char *)
 

Detailed Description

Definition at line 32 of file CommCreator.h.

Member Enumeration Documentation

anonymous enum
Enumerator
PM 
MPI 
SHMEMPI 
SERIAL 
COMMLIBRARIES 

Definition at line 38 of file CommCreator.h.

Constructor & Destructor Documentation

CommCreator::CommCreator ( )
inline

Definition at line 42 of file CommCreator.h.

CommCreator::~CommCreator ( )
inline

Definition at line 43 of file CommCreator.h.

Member Function Documentation

Communicate * CommCreator::create ( int  cm,
int &  argc,
char **&  argv,
int  nodes = (-1),
bool  doinit = true,
MPI_Comm  mpicomm = MPI_COMM_WORLD 
)
static

Definition at line 126 of file CommCreator.cpp.

References MPI, PM, SERIAL, and SHMEMPI.

Referenced by create(), and IpplInfo::IpplInfo().

static Communicate* CommCreator::create ( const char *  nm,
int &  argc,
char **&  argv,
int  nodes = (-1),
bool  doinit = true,
MPI_Comm  mpicomm = MPI_COMM_WORLD 
)
inlinestatic

Definition at line 84 of file CommCreator.h.

References create(), and libindex().

Here is the call graph for this function:

const char * CommCreator::getAllLibraryNames ( )
static

Definition at line 69 of file CommCreator.cpp.

Referenced by IpplInfo::IpplInfo(), and IpplInfo::printHelp().

const char * CommCreator::getLibraryName ( int  n)
static

Definition at line 57 of file CommCreator.cpp.

References COMMLIBRARIES, and Hypervolume::n.

Referenced by libindex().

static int CommCreator::getNumLibraries ( )
inlinestatic

Definition at line 50 of file CommCreator.h.

References COMMLIBRARIES.

static bool CommCreator::known ( const char *  nm)
inlinestatic

Definition at line 69 of file CommCreator.h.

References libindex().

Referenced by IpplInfo::IpplInfo().

Here is the call graph for this function:

int CommCreator::libindex ( const char *  nm)
staticprivate

Definition at line 107 of file CommCreator.cpp.

References COMMLIBRARIES, and getLibraryName().

Referenced by create(), known(), and supported().

Here is the call graph for this function:

bool CommCreator::supported ( int  cm)
static

Definition at line 77 of file CommCreator.cpp.

References MPI, PM, SERIAL, and SHMEMPI.

Referenced by IpplInfo::IpplInfo(), and supported().

static bool CommCreator::supported ( const char *  nm)
inlinestatic

Definition at line 63 of file CommCreator.h.

References libindex(), and supported().

Here is the call graph for this function:


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