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

#include <parallel_hilbert.h>

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

Public Member Functions

 StandardType (const Hilbert::HilbertIndices *=libmesh_nullptr)
 
 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 49 of file parallel_hilbert.h.

Constructor & Destructor Documentation

libMesh::Parallel::StandardType< Hilbert::HilbertIndices >::StandardType ( const Hilbert::HilbertIndices *  = libmesh_nullptr)
explicit

Definition at line 53 of file parallel_hilbert.h.

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

53  {
54  // _static_type never gets freed, but it only gets committed once
55  // so it's not a *huge* memory leak...
56  static DataType _static_type;
57  static bool _is_initialized = false;
58  if (!_is_initialized)
59  {
60  _static_type = DataType(Parallel::StandardType<Hilbert::inttype>(), 3);
61  _is_initialized = true;
62  }
63  _datatype = _static_type;
64  }
bool _is_initialized
Flag that tells if init() has been called.
Definition: libmesh.C:255

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: