libMesh
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
libMesh::Parallel::StandardType< T > Class Template Reference

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

#include <parallel.h>

Inheritance diagram for libMesh::Parallel::StandardType< T >:
[legend]

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=libmesh_nullptr)
 

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 380 of file parallel.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 334 of file parallel.h.

335  {
336 #ifdef LIBMESH_HAVE_MPI
337  MPI_Type_commit (&_datatype);
338 #endif
339  }
void libMesh::Parallel::DataType::free ( )
inherited
libMesh::Parallel::DataType::operator const data_type & ( ) const
inherited

Definition at line 322 of file parallel.h.

323  { return _datatype; }
libMesh::Parallel::DataType::operator data_type & ( )
inherited

Definition at line 325 of file parallel.h.

326  { return _datatype; }

Member Data Documentation

data_type libMesh::Parallel::DataType::_datatype
protectedinherited

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