ug4
ug::SubLocalDoFSet< TDim > Class Template Reference
+ Inheritance diagram for ug::SubLocalDoFSet< TDim >:

Public Member Functions

virtual bool exact_position_available () const
 returns if the local dof position are exact More...
 
virtual const LocalDoFlocal_dof (size_t dof) const
 returns the DoFs storage More...
 
virtual size_t num_dof (ReferenceObjectID roid) const
 returns the number of DoFs on a sub-geometric object type More...
 
virtual size_t num_sh () const
 
virtual bool position (size_t i, MathVector< TDim > &pos) const
 local position of DoF i More...
 
virtual ReferenceObjectID roid () const
 returns the Reference object id of the corresponding grid object More...
 
template<int setDim>
 SubLocalDoFSet (const ReferenceObjectID roid, const DimLocalDoFSet< setDim > &set)
 
- Public Member Functions inherited from ug::DimLocalDoFSet< TDim >
 DimLocalDoFSet ()
 constructor More...
 
bool operator!= (const DimLocalDoFSet< TDim > &v) const
 inequality check More...
 
bool operator== (const DimLocalDoFSet< TDim > &v) const
 equality check More...
 
- Public Member Functions inherited from ug::LocalDoFSet
int dim () const
 returns the reference dimension More...
 
size_t num_dof (int d, size_t id) const
 returns the number of DoFs on a sub-geometric object of dim and id More...
 
bool operator!= (const LocalDoFSet &v) const
 inequality check More...
 
bool operator== (const LocalDoFSet &v) const
 equality check More...
 
virtual ~LocalDoFSet ()
 virtual destructor More...
 
size_t num_dof () const
 

Protected Member Functions

void set (const std::vector< size_t > &vNumDoF, const std::vector< LocalDoF > &vLocalDoF, const std::vector< MathVector< TDim > > &vLocalPos)
 

Protected Attributes

const bool m_bExactPos
 
bool m_bInit
 
const ReferenceObjectID m_roid
 Reference ID this DoF Set is for. More...
 
std::vector< LocalDoFm_vLocalDoF
 Local DoFs of this set. More...
 
std::vector< MathVector< TDim > > m_vLocalPos
 Local Positions of DoFs. More...
 
std::vector< size_t > m_vNumDoF
 

Static Private Attributes

static const int dim = TDim
 

Detailed Description

template<int TDim>
class ug::SubLocalDoFSet< TDim >

Intersection of local dofs

Constructor & Destructor Documentation

◆ SubLocalDoFSet()

Member Function Documentation

◆ exact_position_available()

template<int TDim>
virtual bool ug::SubLocalDoFSet< TDim >::exact_position_available ( ) const
inlinevirtual

returns if the local dof position are exact

Implements ug::DimLocalDoFSet< TDim >.

References ug::SubLocalDoFSet< TDim >::m_bExactPos.

Referenced by ug::SubLocalDoFSet< TDim >::position().

◆ local_dof()

template<int TDim>
virtual const LocalDoF& ug::SubLocalDoFSet< TDim >::local_dof ( size_t  dof) const
inlinevirtual

returns the DoFs storage

Implements ug::LocalDoFSet.

References ug::SubLocalDoFSet< TDim >::m_vLocalDoF.

◆ num_dof()

template<int TDim>
virtual size_t ug::SubLocalDoFSet< TDim >::num_dof ( ReferenceObjectID  roid) const
inlinevirtual

returns the number of DoFs on a sub-geometric object type

Implements ug::LocalDoFSet.

References ug::SubLocalDoFSet< TDim >::m_vNumDoF, and ug::SubLocalDoFSet< TDim >::roid().

◆ num_sh()

template<int TDim>
virtual size_t ug::SubLocalDoFSet< TDim >::num_sh ( ) const
inlinevirtual

returns the total number of dofs on the finite element

Reimplemented from ug::LocalDoFSet.

References ug::SubLocalDoFSet< TDim >::m_vLocalDoF.

◆ position()

template<int TDim>
virtual bool ug::SubLocalDoFSet< TDim >::position ( size_t  i,
MathVector< TDim > &  pos 
) const
inlinevirtual

local position of DoF i

This function returns the local position of a DoF if possible.

Parameters
[in]inumber of DoF
[out]posPosition of DoF
Return values
trueif position exists
falseif no meaningful position available

Implements ug::DimLocalDoFSet< TDim >.

References ug::SubLocalDoFSet< TDim >::exact_position_available(), and ug::SubLocalDoFSet< TDim >::m_vLocalPos.

◆ roid()

template<int TDim>
virtual ReferenceObjectID ug::SubLocalDoFSet< TDim >::roid ( ) const
inlinevirtual

returns the Reference object id of the corresponding grid object

Implements ug::LocalDoFSet.

References ug::SubLocalDoFSet< TDim >::m_roid.

Referenced by ug::SubLocalDoFSet< TDim >::num_dof(), and ug::SubLocalDoFSet< TDim >::SubLocalDoFSet().

◆ set()

template<int TDim>
void ug::SubLocalDoFSet< TDim >::set ( const std::vector< size_t > &  vNumDoF,
const std::vector< LocalDoF > &  vLocalDoF,
const std::vector< MathVector< TDim > > &  vLocalPos 
)
inlineprotected

Member Data Documentation

◆ dim

template<int TDim>
const int ug::SubLocalDoFSet< TDim >::dim = TDim
staticprivate

◆ m_bExactPos

template<int TDim>
const bool ug::SubLocalDoFSet< TDim >::m_bExactPos
protected

◆ m_bInit

template<int TDim>
bool ug::SubLocalDoFSet< TDim >::m_bInit
protected

◆ m_roid

template<int TDim>
const ReferenceObjectID ug::SubLocalDoFSet< TDim >::m_roid
protected

Reference ID this DoF Set is for.

Referenced by ug::SubLocalDoFSet< TDim >::roid(), and ug::SubLocalDoFSet< TDim >::SubLocalDoFSet().

◆ m_vLocalDoF

template<int TDim>
std::vector<LocalDoF> ug::SubLocalDoFSet< TDim >::m_vLocalDoF
protected

◆ m_vLocalPos

template<int TDim>
std::vector<MathVector<TDim> > ug::SubLocalDoFSet< TDim >::m_vLocalPos
protected

Local Positions of DoFs.

Referenced by ug::SubLocalDoFSet< TDim >::position(), and ug::SubLocalDoFSet< TDim >::set().

◆ m_vNumDoF

template<int TDim>
std::vector<size_t> ug::SubLocalDoFSet< TDim >::m_vNumDoF
protected

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