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];
A MpiStructBuilder objects is used to create an MPI Struct datatype.
void addMember(void *memberAddress, MPI::Datatype type, int count=1)
Add a new member variable to the type map.
void setBase(void *objectAddress)
Set address of an class instance.
MpiStructBuilder()
Default constructor.
void commit(MPI::Datatype &newType)
Build and commit a user-defined MPI Struct datatype.
File containing preprocessor macros for error handling.
Utility classes for scientific computation.