libMesh::Parallel::StandardType< Hilbert::HilbertIndices > Class Template Reference

#include <parallel_hilbert.h>

Inheritance diagram for libMesh::Parallel::StandardType< Hilbert::HilbertIndices >:

Public Member Functions

 StandardType (const Hilbert::HilbertIndices *=NULL)
 
 operator const data_type & () const
 
 operator data_type & ()
 
void commit ()
 
void free ()
 

Protected Attributes

data_type _datatype
 

Detailed Description

template<>
class libMesh::Parallel::StandardType< Hilbert::HilbertIndices >

Definition at line 44 of file parallel_hilbert.h.

Constructor & Destructor Documentation

libMesh::Parallel::StandardType< Hilbert::HilbertIndices >::StandardType ( const Hilbert::HilbertIndices *  = NULL)
inlineexplicit

Definition at line 48 of file parallel_hilbert.h.

References libMesh::Parallel::DataType::_datatype, libMesh::libMeshPrivateData::_is_initialized, and libMesh::Parallel::DataType::DataType().

48  {
49  // _static_type never gets freed, but it only gets committed once
50  // so it's not a *huge* memory leak...
51  static DataType _static_type;
52  static bool _is_initialized = false;
53  if (!_is_initialized)
54  {
55  _static_type = DataType(Parallel::StandardType<Hilbert::inttype>(), 3);
56  _is_initialized = true;
57  }
58  _datatype = _static_type;
59  }

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