ug4
ug::ReferenceElementProvider Class Reference

Provider for Reference Elements. More...

#include <reference_element.h>

Static Public Member Functions

template<int dim>
static const DimReferenceElement< dim > & get (ReferenceObjectID roid)
 returns a dimension dependent Reference Element More...
 
static const ReferenceElementget (ReferenceObjectID roid)
 returns a Reference Element More...
 

Private Member Functions

ReferenceElementProvideroperator= (const ReferenceElementProvider &)
 
 ReferenceElementProvider ()
 constructor More...
 
 ReferenceElementProvider (const ReferenceElementProvider &)
 

Static Private Member Functions

template<int dim>
static bool add_dim_elem (const DimReferenceElement< dim > &elem)
 adds a Reference Element More...
 
static bool add_elem (const ReferenceElement &elem)
 adds a Reference Element More...
 
template<int dim>
static const DimReferenceElement< dim > & get_dim_elem (ReferenceObjectID roid)
 returns a Reference Element More...
 
static const ReferenceElementget_elem (ReferenceObjectID roid)
 returns a Reference Element More...
 
template<int dim>
static const DimReferenceElement< dim > ** get_vector ()
 returns vector of DimReferenceElement More...
 
static ReferenceElementProviderinstance ()
 provide instance of singleton More...
 

Static Private Attributes

static const ReferenceElementm_vElem [NUM_REFERENCE_OBJECTS]
 vector storing all ReferenceElement More...
 

Detailed Description

Provider for Reference Elements.

Constructor & Destructor Documentation

◆ ReferenceElementProvider() [1/2]

ug::ReferenceElementProvider::ReferenceElementProvider ( )
private

constructor

References UG_THROW.

◆ ReferenceElementProvider() [2/2]

ug::ReferenceElementProvider::ReferenceElementProvider ( const ReferenceElementProvider )
inlineprivate

Member Function Documentation

◆ add_dim_elem()

template<int dim>
bool ug::ReferenceElementProvider::add_dim_elem ( const DimReferenceElement< dim > &  elem)
staticprivate

adds a Reference Element

References ug::NUM_REFERENCE_OBJECTS, ug::ReferenceElement::roid(), and UG_ASSERT.

◆ add_elem()

bool ug::ReferenceElementProvider::add_elem ( const ReferenceElement elem)
staticprivate

adds a Reference Element

References ug::NUM_REFERENCE_OBJECTS, ug::ReferenceElement::roid(), and UG_ASSERT.

◆ get() [1/2]

◆ get() [2/2]

static const ReferenceElement& ug::ReferenceElementProvider::get ( ReferenceObjectID  roid)
inlinestatic

returns a Reference Element

References get_elem(), and instance().

◆ get_dim_elem()

template<int dim>
static const DimReferenceElement<dim>& ug::ReferenceElementProvider::get_dim_elem ( ReferenceObjectID  roid)
inlinestaticprivate

returns a Reference Element

References ug::NUM_REFERENCE_OBJECTS, and UG_ASSERT.

Referenced by get().

◆ get_elem()

const ReferenceElement & ug::ReferenceElementProvider::get_elem ( ReferenceObjectID  roid)
staticprivate

returns a Reference Element

References ug::NUM_REFERENCE_OBJECTS, ug::ReferenceElement::roid(), and UG_ASSERT.

Referenced by get().

◆ get_vector()

template<int dim>
static const DimReferenceElement<dim>** ug::ReferenceElementProvider::get_vector ( )
inlinestaticprivate

returns vector of DimReferenceElement

References ug::NUM_REFERENCE_OBJECTS.

◆ instance()

static ReferenceElementProvider& ug::ReferenceElementProvider::instance ( )
inlinestaticprivate

provide instance of singleton

Referenced by get().

◆ operator=()

ReferenceElementProvider& ug::ReferenceElementProvider::operator= ( const ReferenceElementProvider )
private

Member Data Documentation

◆ m_vElem

const ReferenceElement * ug::ReferenceElementProvider::m_vElem
staticprivate

vector storing all ReferenceElement


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