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 <standard_type.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=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 64 of file standard_type.h.

Constructor & Destructor Documentation

◆ StandardType()

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

Member Function Documentation

◆ commit()

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

◆ free()

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

◆ operator const data_type &()

libMesh::Parallel::DataType::operator const data_type & ( ) const
inherited

Definition at line 91 of file data_type.h.

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

92  { return _datatype; }

◆ operator data_type &()

libMesh::Parallel::DataType::operator data_type & ( )
inherited

Definition at line 94 of file data_type.h.

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

95  { return _datatype; }

Member Data Documentation

◆ _datatype

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

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