2 #ifndef UTIL_STRUCT_BUILDER_H 3 #define UTIL_STRUCT_BUILDER_H 65 void setBase(
void* objectAddress);
81 void addMember(
void* memberAddress, MPI::Datatype type,
int count = 1);
91 void commit(MPI::Datatype& newType);
95 static const int MaxNBlock = 20;
98 MPI::Datatype types_[MaxNBlock];
99 MPI::Aint addresses_[MaxNBlock];
100 int counts_[MaxNBlock];
void addMember(void *memberAddress, MPI::Datatype type, int count=1)
Add a new member variable to the type map.
File containing preprocessor macros for error handling.
void setBase(void *objectAddress)
Set address of an class instance.
void commit(MPI::Datatype &newType)
Build and commit a user-defined MPI Struct datatype.
MpiStructBuilder()
Default constructor.
Utility classes for scientific computation.
A MpiStructBuilder objects is used to create an MPI Struct datatype.