libMesh::Parallel::DataType Class Reference

#include <parallel.h>

Inheritance diagram for libMesh::Parallel::DataType:

Public Member Functions

 DataType ()
 
 DataType (const DataType &other)
 
 DataType (const data_type &type)
 
 DataType (const DataType &other, unsigned int count)
 
 DataType (const DataType &, unsigned int)
 
DataTypeoperator= (const DataType &other)
 
DataTypeoperator= (const data_type &type)
 
 operator const data_type & () const
 
 operator data_type & ()
 
void commit ()
 
void free ()
 

Protected Attributes

data_type _datatype
 

Detailed Description

Encapsulates the MPI_Datatype.

Definition at line 234 of file parallel.h.

Constructor & Destructor Documentation

libMesh::Parallel::DataType::DataType ( )
inline
libMesh::Parallel::DataType::DataType ( const DataType other)
inline

Definition at line 239 of file parallel.h.

239  :
240  _datatype(other._datatype)
241  {}
libMesh::Parallel::DataType::DataType ( const data_type type)
inline

Definition at line 243 of file parallel.h.

243  :
244  _datatype(type)
245  {}
libMesh::Parallel::DataType::DataType ( const DataType other,
unsigned int  count 
)
inline

Definition at line 248 of file parallel.h.

References _datatype, and commit().

249  {
250  MPI_Type_contiguous(count, other._datatype, &_datatype);
251  this->commit();
252  }
libMesh::Parallel::DataType::DataType ( const DataType ,
unsigned  int 
)
inline

Definition at line 254 of file parallel.h.

255  {
256  }

Member Function Documentation

void libMesh::Parallel::DataType::commit ( )
inline

Definition at line 277 of file parallel.h.

References _datatype.

Referenced by DataType().

278  {
279 #ifdef LIBMESH_HAVE_MPI
280  MPI_Type_commit (&_datatype);
281 #endif
282  }
libMesh::Parallel::DataType::operator const data_type & ( ) const
inline

Definition at line 265 of file parallel.h.

References _datatype.

266  { return _datatype; }
libMesh::Parallel::DataType::operator data_type & ( )
inline

Definition at line 268 of file parallel.h.

References _datatype.

269  { return _datatype; }
DataType& libMesh::Parallel::DataType::operator= ( const DataType other)
inline

Definition at line 259 of file parallel.h.

References _datatype.

260  { _datatype = other._datatype; return *this; }
DataType& libMesh::Parallel::DataType::operator= ( const data_type type)
inline

Definition at line 262 of file parallel.h.

References _datatype.

263  { _datatype = type; return *this; }

Member Data Documentation


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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:58:02 UTC

Hosted By:
SourceForge.net Logo