MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::SubMeshUtils::UniqueIndexGenerator Struct Reference

Convenience object to create unique indices. More...

#include <submesh_utils.hpp>

Collaboration diagram for mfem::SubMeshUtils::UniqueIndexGenerator:
[legend]

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
 

Detailed Description

Convenience object to create unique indices.

Definition at line 28 of file submesh_utils.hpp.

Member Function Documentation

◆ Get()

int mfem::SubMeshUtils::UniqueIndexGenerator::Get ( int i,
bool & new_index )

Returns the unique index from an index set.

Parameters
iindex
new_indexindicates if the index is new or was already present in the set.

Definition at line 18 of file submesh_utils.cpp.

Member Data Documentation

◆ counter

int mfem::SubMeshUtils::UniqueIndexGenerator::counter = 0

Definition at line 30 of file submesh_utils.hpp.

◆ idx

std::unordered_map<int, int> mfem::SubMeshUtils::UniqueIndexGenerator::idx

Definition at line 31 of file submesh_utils.hpp.


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