| FEAT 3
    Finite Element Analysis Toolbox | 
Stores the index representatives of an index set. More...
#include <index_calculator.hpp>
| Classes | |
| class | IndexVector | 
| Index vector.  More... | |
| Public Member Functions | |
| IndexTree (Index num_vertices) | |
| Constructor.  More... | |
| virtual | ~IndexTree () | 
| Destructor.  More... | |
| Index | enumerate () | 
| Enumerates the index vector representatives.  More... | |
| template<typename IndexVectorType_ > | |
| std::pair< bool, Index > | find (const IndexVectorType_ &index_vector) const | 
| Searches for an index vector within the tree.  More... | |
| Index | get_index (Index i, Index j, int k) const | 
| returns the value of the k-th component of the j-th index-representative in the i-th set  More... | |
| int | get_num_indices () const | 
| returns number of indices of an index-representative  More... | |
| Index | get_set_size (Index i) const | 
| returns size of the i-th representative set  More... | |
| template<typename IndexVectorType_ > | |
| void | insert (const IndexVectorType_ &index_vector, Index id) | 
| Inserts an index vector's representative into the index tree.  More... | |
| template<typename IndexSet_ > | |
| void | parse (const IndexSet_ &index_set) | 
| Parses an index set into the tree.  More... | |
| Static Public Member Functions | |
| static String | name () | 
| Returns the class name.  More... | |
| Static Public Attributes | |
| static constexpr int | num_indices = Shape::FaceTraits<Shape_, 0>::count | 
| number of indices per index vector  More... | |
| Private Types | |
| typedef std::set< IndexVector > | RepSet | 
| Set of IndexVector representatives.  More... | |
| typedef std::vector< RepSet > | RepSetVector | 
| Vector of IV rep sets.  More... | |
| Private Attributes | |
| RepSetVector | _rep_set_vec | 
| representative set vector  More... | |
Stores the index representatives of an index set.
Definition at line 30 of file index_calculator.hpp.
| 
 | private | 
Set of IndexVector representatives.
Definition at line 85 of file index_calculator.hpp.
| 
 | private | 
Vector of IV rep sets.
Definition at line 87 of file index_calculator.hpp.
| 
 | inlineexplicit | 
Constructor.
| [in] | num_vertices | The total number of vertices in the mesh. | 
Definition at line 99 of file index_calculator.hpp.
| 
 | inlinevirtual | 
Destructor.
Definition at line 105 of file index_calculator.hpp.
| 
 | inline | 
Enumerates the index vector representatives.
This function loops over all index vector representatives in the index tree and assigns an unique id to each representative. The ids are distributed in consecutive order beginning from zero.
Definition at line 220 of file index_calculator.hpp.
References FEAT::Geometry::IndexTree< Shape_ >::_rep_set_vec.
Referenced by FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute_vertex_subshape().
| 
 | inline | 
Searches for an index vector within the tree.
This function searches the index tree for an index vector's representative and, if found, returns its id within the tree.
| [in] | index_vector | The index vector whose representative is to be found. | 
true then the second (Index) component contains the id of the index vector within the tree.false then the index vector's representative was not found within the index tree. Definition at line 147 of file index_calculator.hpp.
References FEAT::Geometry::IndexTree< Shape_ >::_rep_set_vec.
Referenced by FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute().
| 
 | inline | 
returns the value of the k-th component of the j-th index-representative in the i-th set
Definition at line 123 of file index_calculator.hpp.
References FEAT::Geometry::IndexTree< Shape_ >::_rep_set_vec.
Referenced by FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute_vertex_subshape().
| 
 | inline | 
returns number of indices of an index-representative
Definition at line 110 of file index_calculator.hpp.
| 
 | inline | 
returns size of the i-th representative set
Definition at line 116 of file index_calculator.hpp.
References FEAT::Geometry::IndexTree< Shape_ >::_rep_set_vec, and XASSERT.
Referenced by FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute_vertex_subshape().
| 
 | inline | 
Inserts an index vector's representative into the index tree.
| [in] | index_vector | The index vector whose representative is to be stored. | 
| [in] | id | An id that is to be associated with the index vector. | 
Definition at line 174 of file index_calculator.hpp.
References FEAT::Geometry::IndexTree< Shape_ >::_rep_set_vec, and ASSERTM.
Referenced by FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute_vertex_subshape(), and FEAT::Geometry::IndexTree< Shape_ >::parse().
| 
 | inlinestatic | 
Returns the class name.
Definition at line 244 of file index_calculator.hpp.
| 
 | inline | 
Parses an index set into the tree.
| [in] | index_set | A transient reference to the index set that is to be parsed. | 
Definition at line 195 of file index_calculator.hpp.
References FEAT::Geometry::IndexTree< Shape_ >::insert(), and FEAT::Geometry::IndexTree< Shape_ >::num_indices.
| 
 | private | 
representative set vector
Definition at line 90 of file index_calculator.hpp.
Referenced by FEAT::Geometry::IndexTree< Shape_ >::enumerate(), FEAT::Geometry::IndexTree< Shape_ >::find(), FEAT::Geometry::IndexTree< Shape_ >::get_index(), FEAT::Geometry::IndexTree< Shape_ >::get_set_size(), and FEAT::Geometry::IndexTree< Shape_ >::insert().
| 
 | staticconstexpr | 
number of indices per index vector
Definition at line 34 of file index_calculator.hpp.
Referenced by FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute(), FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute_vertex_subshape(), and FEAT::Geometry::IndexTree< Shape_ >::parse().