MFEM v4.7.0
Finite element discretization library
|
Convenience object to create unique indices. More...
#include <submesh_utils.hpp>
Public Member Functions | |
int | Get (int i, bool &new_index) |
Returns the unique index from an index set. | |
Public Attributes | |
int | counter = 0 |
std::unordered_map< int, int > | idx |
Convenience object to create unique indices.
Definition at line 28 of file submesh_utils.hpp.
int mfem::SubMeshUtils::UniqueIndexGenerator::Get | ( | int | i, |
bool & | new_index ) |
Returns the unique index from an index set.
i | index |
new_index | indicates if the index is new or was already present in the set. |
Definition at line 18 of file submesh_utils.cpp.
int mfem::SubMeshUtils::UniqueIndexGenerator::counter = 0 |
Definition at line 30 of file submesh_utils.hpp.
std::unordered_map<int, int> mfem::SubMeshUtils::UniqueIndexGenerator::idx |
Definition at line 31 of file submesh_utils.hpp.