v0.14.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MoFEM::TempMeshset Struct Reference

#include <include/Templates.hpp>

Collaboration diagram for MoFEM::TempMeshset:
[legend]

Public Member Functions

 TempMeshset (moab::Interface &moab)
 
virtual ~TempMeshset ()
 
 operator EntityHandle () const
 
auto get_ptr ()
 

Private Member Functions

void delete_meshset ()
 

Private Attributes

EntityHandle meshset
 
moab::Interface & moab
 

Detailed Description

Definition at line 1864 of file Templates.hpp.

Constructor & Destructor Documentation

◆ TempMeshset()

MoFEM::TempMeshset::TempMeshset ( moab::Interface &  moab)
inline

Definition at line 1865 of file Templates.hpp.

1865  : moab(moab) {
1866  rval = moab.create_meshset(MESHSET_SET, meshset);
1867  MOAB_THROW(rval);
1868  }

◆ ~TempMeshset()

virtual MoFEM::TempMeshset::~TempMeshset ( )
inlinevirtual

Definition at line 1869 of file Templates.hpp.

1869 { delete_meshset(); }

Member Function Documentation

◆ delete_meshset()

void MoFEM::TempMeshset::delete_meshset ( )
inlineprivate

Definition at line 1874 of file Templates.hpp.

1874  {
1875  rval = moab.delete_entities(&meshset, 1);
1876  MOAB_THROW(rval);
1877  }

◆ get_ptr()

auto MoFEM::TempMeshset::get_ptr ( )
inline

Definition at line 1871 of file Templates.hpp.

1871 { return &meshset; }

◆ operator EntityHandle()

MoFEM::TempMeshset::operator EntityHandle ( ) const
inline

Definition at line 1870 of file Templates.hpp.

1870 { return meshset; }

Member Data Documentation

◆ meshset

EntityHandle MoFEM::TempMeshset::meshset
private

Definition at line 1878 of file Templates.hpp.

◆ moab

moab::Interface& MoFEM::TempMeshset::moab
private

Definition at line 1879 of file Templates.hpp.


The documentation for this struct was generated from the following file:
MoFEM::TempMeshset::meshset
EntityHandle meshset
Definition: Templates.hpp:1878
MOAB_THROW
#define MOAB_THROW(err)
Check error code of MoAB function and throw MoFEM exception.
Definition: definitions.h:554
MoFEM::Exceptions::rval
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Exceptions.hpp:74
MoFEM::TempMeshset::moab
moab::Interface & moab
Definition: Templates.hpp:1879
MoFEM::TempMeshset::delete_meshset
void delete_meshset()
Definition: Templates.hpp:1874