v0.8.15
Public Member Functions | List of all members
MoFEM::BaseFunctionCtx Struct Reference

Base class used to exchange data between element data structures and class calculating base functions. More...

#include <src/approximation/BaseFunction.hpp>

Inheritance diagram for MoFEM::BaseFunctionCtx:
[legend]
Collaboration diagram for MoFEM::BaseFunctionCtx:
[legend]

Public Member Functions

MoFEMErrorCode query_interface (const MOFEMuuid &uuid, MoFEM::UnknownInterface **iface) const
 
 BaseFunctionCtx ()
 
 ~BaseFunctionCtx ()
 
- Public Member Functions inherited from MoFEM::UnknownInterface
template<class IFACE >
MoFEMErrorCode registerInterface (const MOFEMuuid &uuid, bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE , bool VERIFY = false>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, IFACE *&iface) const
 Get interface by uuid and return reference to pointer of interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface refernce to pointer of interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface. More...
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface. More...
 
virtual ~UnknownInterface ()
 
virtual MoFEMErrorCode getLibVersion (Version &version) const
 Get library version. More...
 
virtual const MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version) const
 Get database major version. More...
 
virtual MoFEMErrorCode getInterfaceVersion (Version &version) const
 Get database major version. More...
 
template<>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, UnknownInterface *&iface) const
 

Additional Inherited Members

- Protected Member Functions inherited from MoFEM::UnknownInterface
boost::typeindex::type_index getClassIdx (const MOFEMuuid &uid) const
 Get type name for interface Id. More...
 
MOFEMuuid getUId (const boost::typeindex::type_index &class_idx) const
 Get interface Id for class name. More...
 

Detailed Description

Base class used to exchange data between element data structures and class calculating base functions.

Definition at line 32 of file BaseFunction.hpp.

Constructor & Destructor Documentation

◆ BaseFunctionCtx()

MoFEM::BaseFunctionCtx::BaseFunctionCtx ( )

Definition at line 37 of file BaseFunction.hpp.

37 {}

◆ ~BaseFunctionCtx()

MoFEM::BaseFunctionCtx::~BaseFunctionCtx ( )

Definition at line 38 of file BaseFunction.hpp.

38 {}

Member Function Documentation

◆ query_interface()

MoFEMErrorCode MoFEM::BaseFunctionCtx::query_interface ( const MOFEMuuid uuid,
MoFEM::UnknownInterface **  iface 
) const
virtual

Implements MoFEM::UnknownInterface.

Reimplemented in MoFEM::IntegratedJacobiPolynomialCtx, MoFEM::KernelLobattoPolynomialCtx, MoFEM::EntPolynomialBaseCtx, MoFEM::FatPrismPolynomialBaseCtx, MoFEM::FlatPrismPolynomialBaseCtx, MoFEM::JacobiPolynomialCtx, MoFEM::LobattoPolynomialCtx, and MoFEM::LegendrePolynomialCtx.

Definition at line 30 of file BaseFunction.cpp.

32  {
34  *iface = NULL;
35  if(uuid == IDD_UNKNOWN_BASE_FUNCTION) {
36  *iface = const_cast<BaseFunctionCtx*>(this);
38  } else {
39  SETERRQ(PETSC_COMM_WORLD,MOFEM_DATA_INCONSISTENCY,"wrong interference");
40  }
42 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:483
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490
Base class used to exchange data between element data structures and class calculating base functions...
static const MOFEMuuid IDD_UNKNOWN_BASE_FUNCTION

The documentation for this struct was generated from the following files: