FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Geometry::TopologyTemplate< Shape_, reference_dim_ > Struct Template Reference

Construction rule for a single entities topology. More...

#include <template_builder.hpp>

Public Member Functions

template<int dim_>
EntityReference get_reference (int idx) const
 
template<int dim_>
std::array< EntityReference, Shape::FaceTraits< Shape_, dim_ >::count > & get_references ()
 Reference-array accessor. More...
 
template<int dim_>
const std::array< EntityReference, Shape::FaceTraits< Shape_, dim_ >::count > & get_references () const
 Const reference-array accessor. More...
 

Public Attributes

std::array< EntityReference, num_entitiesreferences
 Array of references. More...
 

Static Public Attributes

static constexpr int num_entities = Shape::FaceTraits<Shape_, reference_dim_>::count
 Number of references of dimension reference_dim_. More...
 

Detailed Description

template<typename Shape_, int reference_dim_ = Shape_::dimension - 1>
struct FEAT::Geometry::TopologyTemplate< Shape_, reference_dim_ >

Construction rule for a single entities topology.

Template Parameters
Shape_Shape type of the entity this topology describes.
reference_dim_Dimension of entities that references refer to

This is a dimension-recursive data structure that stores references to all elements of the topology of an entity with shape Shape_.

Definition at line 526 of file template_builder.hpp.

Member Function Documentation

◆ get_reference()

template<typename Shape_ , int reference_dim_ = Shape_::dimension - 1>
template<int dim_>
EntityReference FEAT::Geometry::TopologyTemplate< Shape_, reference_dim_ >::get_reference ( int  idx) const
inline

Definition at line 557 of file template_builder.hpp.

◆ get_references() [1/2]

template<typename Shape_ , int reference_dim_ = Shape_::dimension - 1>
template<int dim_>
std::array< EntityReference, Shape::FaceTraits< Shape_, dim_ >::count > & FEAT::Geometry::TopologyTemplate< Shape_, reference_dim_ >::get_references ( )
inline

Reference-array accessor.

Template Parameters
dim_Dimension of entities to retrieve references for

Definition at line 540 of file template_builder.hpp.

◆ get_references() [2/2]

template<typename Shape_ , int reference_dim_ = Shape_::dimension - 1>
template<int dim_>
const std::array< EntityReference, Shape::FaceTraits< Shape_, dim_ >::count > & FEAT::Geometry::TopologyTemplate< Shape_, reference_dim_ >::get_references ( ) const
inline

Const reference-array accessor.

Template Parameters
dim_Dimension of entities to retrieve references for

Definition at line 551 of file template_builder.hpp.

Member Data Documentation

◆ num_entities

template<typename Shape_ , int reference_dim_ = Shape_::dimension - 1>
constexpr int FEAT::Geometry::TopologyTemplate< Shape_, reference_dim_ >::num_entities = Shape::FaceTraits<Shape_, reference_dim_>::count
staticconstexpr

Number of references of dimension reference_dim_.

Definition at line 529 of file template_builder.hpp.

◆ references

template<typename Shape_ , int reference_dim_ = Shape_::dimension - 1>
std::array<EntityReference, num_entities> FEAT::Geometry::TopologyTemplate< Shape_, reference_dim_ >::references

Array of references.

Definition at line 532 of file template_builder.hpp.

Referenced by FEAT::Geometry::TopologyTemplate< Shape_, 0 >::get_references().


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