$extrastylesheet
libMesh::Parallel::DataType Class Reference

#include <parallel.h>

Inheritance diagram for libMesh::Parallel::DataType:

List of all members.

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


Constructor & Destructor Documentation

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

Definition at line 240 of file parallel.h.

                                   :
    _datatype(other._datatype)
  {}

Definition at line 244 of file parallel.h.

                                   :
    _datatype(type)
  {}
libMesh::Parallel::DataType::DataType ( const DataType other,
unsigned int  count 
) [inline]

Definition at line 249 of file parallel.h.

References _datatype, and commit().

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

Definition at line 255 of file parallel.h.

  {
  }

Member Function Documentation

Definition at line 278 of file parallel.h.

References _datatype.

Referenced by DataType().

  {
#ifdef LIBMESH_HAVE_MPI
    MPI_Type_commit (&_datatype);
#endif
  }
libMesh::Parallel::DataType::operator const data_type & ( ) const [inline]

Definition at line 266 of file parallel.h.

References _datatype.

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

Definition at line 269 of file parallel.h.

References _datatype.

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

Definition at line 260 of file parallel.h.

References _datatype.

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

Definition at line 263 of file parallel.h.

References _datatype.

  { _datatype = type; return *this; }

Member Data Documentation


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