libMesh::Parallel::StandardType< T > Class Template Reference

#include <parallel.h>

Inheritance diagram for libMesh::Parallel::StandardType< T >:

Public Member Functions

 operator const data_type & () const
 
 operator data_type & ()
 
void commit ()
 
void free ()
 

Protected Attributes

data_type _datatype
 

Private Member Functions

 StandardType (const T *example=NULL)
 

Detailed Description

template<typename T>
class libMesh::Parallel::StandardType< T >

Templated class to provide the appropriate MPI datatype for use with built-in C types or simple C++ constructions.

More complicated data types may need to provide a pointer-to-T so that we can use MPI_Address without constructing a new T.

Definition at line 306 of file parallel.h.

Constructor & Destructor Documentation

template<typename T>
libMesh::Parallel::StandardType< T >::StandardType ( const T *  example = NULL)
private

Member Function Documentation

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

Definition at line 277 of file parallel.h.

References libMesh::Parallel::DataType::_datatype.

Referenced by libMesh::Parallel::DataType::DataType().

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

Definition at line 265 of file parallel.h.

References libMesh::Parallel::DataType::_datatype.

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

Definition at line 268 of file parallel.h.

References libMesh::Parallel::DataType::_datatype.

269  { return _datatype; }

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