AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Traits class to manage types for different point representations in a SparseOctreeLevel. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/spin/SparseOctreeLevel.hpp>
Public Types | |
using | GridPt = primal::Point< CoordType, DIM > |
using | PointRepresentationType = GridPt |
using | PointHashType = PointHash< CoordType > |
using | MapType = std::unordered_map< GridPt, BroodDataType, PointHashType > |
using | BroodType = Brood< GridPt, GridPt > |
Public Member Functions | |
AXOM_STATIC_ASSERT_MSG (std::is_integral< CoordType >::value, "CoordType must be integral") | |
Static Public Member Functions | |
static const PointRepresentationType & | convertPoint (const GridPt &pt) |
static void | initializeMap (MapType &map) |
Traits class to manage types for different point representations in a SparseOctreeLevel.
This is a specialization meant for point representation that use an integer grid point. The underlying hashmap uses a Morton-based hash function.
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, primal::Point< CoordType, DIM > >::GridPt = primal::Point<CoordType, DIM> |
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, primal::Point< CoordType, DIM > >::PointRepresentationType = GridPt |
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, primal::Point< CoordType, DIM > >::PointHashType = PointHash<CoordType> |
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, primal::Point< CoordType, DIM > >::MapType = std::unordered_map<GridPt, BroodDataType, PointHashType> |
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, primal::Point< CoordType, DIM > >::BroodType = Brood<GridPt, GridPt> |
axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, primal::Point< CoordType, DIM > >::AXOM_STATIC_ASSERT_MSG | ( | std::is_integral< CoordType >::value | , |
"CoordType must be integral" | |||
) |
|
inlinestatic |
Simple function to convert a point to its representation type
|
inlinestatic |
Utility function to initialize a MapType
References AXOM_UNUSED_VAR, and axom::utilities::max().