|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
This class implements a naming policy that uses a map to keep track of naming groups of ids. It is NOT parallel or device-enabled. It can be used for serial cases or serial debugging. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/bump/MapBasedNaming.hpp>
Classes | |
| class | View |
| A view for making names. More... | |
Public Types | |
| using | KeyType = std::uint64_t |
| using | IndexType = IndexT |
Public Member Functions | |
| KeyType | makeName (const IndexType *p, int n) const |
| Make a name from the array of ids. More... | |
| void | setMaxId (IndexType n) |
| Set the max number of nodes, which can help with id packing/narrowing. More... | |
| View | view () |
| Return a view that can be used on device. More... | |
Static Public Member Functions | |
| static std::string | toString (KeyType key) |
| Turn name into a string. More... | |
Public Attributes | |
| View | m_view {} |
| MapType | m_map |
This class implements a naming policy that uses a map to keep track of naming groups of ids. It is NOT parallel or device-enabled. It can be used for serial cases or serial debugging.
| IndexT | The index type that gets hashed. |
| MAXIDS | The max number of ids that get hashed. |
| using axom::bump::MapBasedNaming< IndexT, MAXIDS >::KeyType = std::uint64_t |
| using axom::bump::MapBasedNaming< IndexT, MAXIDS >::IndexType = IndexT |
|
inline |
Make a name from the array of ids.
References axom::bump::MapBasedNaming< IndexT, MAXIDS >::m_view, and axom::bump::MapBasedNaming< IndexT, MAXIDS >::View::makeName().
|
inline |
Set the max number of nodes, which can help with id packing/narrowing.
| n | The number of nodes. |
References axom::bump::MapBasedNaming< IndexT, MAXIDS >::m_view, and axom::bump::MapBasedNaming< IndexT, MAXIDS >::View::setMaxId().
|
inline |
Return a view that can be used on device.
References axom::bump::MapBasedNaming< IndexT, MAXIDS >::m_map, axom::bump::MapBasedNaming< IndexT, MAXIDS >::View::m_map_ptr, and axom::bump::MapBasedNaming< IndexT, MAXIDS >::m_view.
|
inlinestatic |
Turn name into a string.
| key | The name. |
| View axom::bump::MapBasedNaming< IndexT, MAXIDS >::m_view {} |
| MapType axom::bump::MapBasedNaming< IndexT, MAXIDS >::m_map |