FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Geometry::IndexTuple< num_indices_ > Struct Template Reference

Index Tuple class template. More...

#include <index_set.hpp>

Public Member Functions

Indexoperator[] (int i)
 access operator More...
 
const Indexoperator[] (int i) const
 access operator More...
 
void permute_map (const Adjacency::Permutation &inv_perm)
 

Public Attributes

Index indices [num_indices]
 indices array More...
 

Static Public Attributes

static constexpr int num_indices = num_indices_
 number of indices per tuple More...
 

Detailed Description

template<int num_indices_>
struct FEAT::Geometry::IndexTuple< num_indices_ >

Index Tuple class template.

This class is a simple wrapper around a fixed-size array, similar to the std::array class template. Its primary purpose is to avoid compiler warnings and error when used as a value-type in an std::vector.

Author
Peter Zajac

Definition at line 34 of file index_set.hpp.

Member Function Documentation

◆ operator[]() [1/2]

template<int num_indices_>
Index & FEAT::Geometry::IndexTuple< num_indices_ >::operator[] ( int  i)
inline

◆ operator[]() [2/2]

template<int num_indices_>
const Index & FEAT::Geometry::IndexTuple< num_indices_ >::operator[] ( int  i) const
inline

◆ permute_map()

template<int num_indices_>
void FEAT::Geometry::IndexTuple< num_indices_ >::permute_map ( const Adjacency::Permutation inv_perm)
inline

Definition at line 60 of file index_set.hpp.

Member Data Documentation

◆ indices

template<int num_indices_>
Index FEAT::Geometry::IndexTuple< num_indices_ >::indices[num_indices]

indices array

Definition at line 42 of file index_set.hpp.

Referenced by FEAT::Geometry::IndexTuple< num_indices_ >::operator[]().

◆ num_indices

template<int num_indices_>
constexpr int FEAT::Geometry::IndexTuple< num_indices_ >::num_indices = num_indices_
staticconstexpr

number of indices per tuple

Definition at line 39 of file index_set.hpp.

Referenced by FEAT::Geometry::SubdivisionLevels::get_levels(), and FEAT::Geometry::IndexTuple< num_indices_ >::operator[]().


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