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


Constructor & Destructor Documentation

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

Definition at line 217 of file parallel.h.

00217                                      :
00218       _datatype(other._datatype)
00219     {}

libMesh::Parallel::DataType::DataType ( const data_type type  )  [inline]

Definition at line 221 of file parallel.h.

00221                                      :
00222       _datatype(type)
00223     {}

libMesh::Parallel::DataType::DataType ( const DataType other,
unsigned int  count 
) [inline]

Definition at line 226 of file parallel.h.

References _datatype, and commit().

00227     {
00228       MPI_Type_contiguous(count, other._datatype, &_datatype);
00229       this->commit();
00230     }

libMesh::Parallel::DataType::DataType ( const DataType ,
unsigned  int 
) [inline]

Definition at line 232 of file parallel.h.

00233     {
00234     }


Member Function Documentation

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

Definition at line 255 of file parallel.h.

References _datatype.

Referenced by DataType().

00256     {
00257 #ifdef LIBMESH_HAVE_MPI
00258       MPI_Type_commit (&_datatype);
00259 #endif
00260     }

void libMesh::Parallel::DataType::free (  )  [inline]
libMesh::Parallel::DataType::operator const data_type & (  )  const [inline]

Definition at line 243 of file parallel.h.

References _datatype.

00244     { return _datatype; }

libMesh::Parallel::DataType::operator data_type & (  )  [inline]

Definition at line 246 of file parallel.h.

References _datatype.

00247     { return _datatype; }

DataType& libMesh::Parallel::DataType::operator= ( const data_type type  )  [inline]

Definition at line 240 of file parallel.h.

References _datatype.

00241     { _datatype = type; return *this; }

DataType& libMesh::Parallel::DataType::operator= ( const DataType other  )  [inline]

Definition at line 237 of file parallel.h.

References _datatype.

00238     { _datatype = other._datatype; return *this; }


Member Data Documentation


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

Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:44 UTC

Hosted By:
SourceForge.net Logo