Playa::MPIContainerComm< std::string > Class Template Reference

List of all members.

Static Public Member Functions

static void bcast (std::string &x, int src, const MPIComm &comm)
static void bcast (Array< std::string > &x, int src, const MPIComm &comm)
static void bcast (Array< Array< std::string > > &x, int src, const MPIComm &comm)
static void allGather (const std::string &outgoing, Array< std::string > &incoming, const MPIComm &comm)
static void gatherv (const Array< std::string > &outgoing, Array< Array< std::string > > &incoming, int rootRank, const MPIComm &comm)
static void pack (const Array< std::string > &x, Array< char > &packed)
static void unpack (const Array< char > &packed, Array< std::string > &x)

Static Private Member Functions

static void getBigArray (const Array< std::string > &x, Array< char > &bigArray, Array< int > &offsets)
static void getStrings (const Array< char > &bigArray, const Array< int > &offsets, Array< std::string > &x)


Detailed Description

template<>
class Playa::MPIContainerComm< std::string >

Specialiaztion of MPIContainerComm<T> to std::string

Definition at line 82 of file PlayaMPIContainerComm.hpp.


Member Function Documentation

void Playa::MPIContainerComm< std::string >::allGather ( const std::string &  outgoing,
Array< std::string > &  incoming,
const MPIComm comm 
) [inline, static]

AllGather: each process sends a single object to all other procs

Definition at line 469 of file PlayaMPIContainerComm.hpp.

References Playa::MPIComm::allGather(), Playa::MPIComm::allGatherv(), Playa::MPIDataType::charType(), Playa::MPIComm::getNProc(), and Playa::MPIDataType::intType().

void Playa::MPIContainerComm< std::string >::bcast ( Array< Array< std::string > > &  x,
int  src,
const MPIComm comm 
) [inline, static]

bcast an array of arrays

Definition at line 455 of file PlayaMPIContainerComm.hpp.

References Playa::MPIContainerComm< T >::bcast().

void Playa::MPIContainerComm< std::string >::bcast ( Array< std::string > &  x,
int  src,
const MPIComm comm 
) [inline, static]

void Playa::MPIContainerComm< std::string >::bcast ( std::string &  x,
int  src,
const MPIComm comm 
) [inline, static]

void Playa::MPIContainerComm< std::string >::gatherv ( const Array< std::string > &  outgoing,
Array< Array< std::string > > &  incoming,
int  rootRank,
const MPIComm comm 
) [inline, static]

void Playa::MPIContainerComm< std::string >::getBigArray ( const Array< std::string > &  x,
Array< char > &  bigArray,
Array< int > &  offsets 
) [inline, static, private]

get a single big array of characters from an array of strings

Definition at line 584 of file PlayaMPIContainerComm.hpp.

void Playa::MPIContainerComm< std::string >::getStrings ( const Array< char > &  bigArray,
const Array< int > &  offsets,
Array< std::string > &  x 
) [inline, static, private]

recover an array of strings from a single big array and and offset table

Definition at line 665 of file PlayaMPIContainerComm.hpp.

void Playa::MPIContainerComm< std::string >::pack ( const Array< std::string > &  x,
Array< char > &  packed 
) [inline, static]

get a single big array of characters from an array of strings, packing the structural description into the header of the packed array as follows:

 [numStrings, offset0, offset1, ..., offsetN, char data]

Definition at line 609 of file PlayaMPIContainerComm.hpp.

void Playa::MPIContainerComm< std::string >::unpack ( const Array< char > &  packed,
Array< std::string > &  x 
) [inline, static]

recover an array of strings from a single big array and and offset table

Definition at line 646 of file PlayaMPIContainerComm.hpp.

Site Contact