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 | PointRepresenationType = RepresentationType |
using | MapType = std::unordered_map< RepresentationType, BroodDataType > |
using | BroodType = Brood< GridPt, PointRepresenationType > |
Public Member Functions | |
AXOM_STATIC_ASSERT_MSG (std::is_integral< CoordType >::value, "CoordType must be integral") | |
AXOM_STATIC_ASSERT_MSG (std::is_integral< PointRepresenationType >::value, "RepresentationType must be integral") | |
AXOM_STATIC_ASSERT_MSG (std::is_unsigned< PointRepresenationType >::value, "RepresentationType must be unsigned") | |
Static Public Member Functions | |
static PointRepresenationType | convertPoint (const GridPt &pt) |
static void | initializeMap (MapType &map) |
Traits class to manage types for different point representations in a SparseOctreeLevel.
The general case is meant for Representations types that are unsigned integers and uses a Morton-based index as the hashmap key.
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::GridPt = primal::Point<CoordType, DIM> |
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::PointRepresenationType = RepresentationType |
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::MapType = std::unordered_map<RepresentationType, BroodDataType> |
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::BroodType = Brood<GridPt, PointRepresenationType> |
axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::AXOM_STATIC_ASSERT_MSG | ( | std::is_integral< CoordType >::value | , |
"CoordType must be integral" | |||
) |
axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::AXOM_STATIC_ASSERT_MSG | ( | std::is_integral< PointRepresenationType >::value | , |
"RepresentationType must be integral" | |||
) |
axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::AXOM_STATIC_ASSERT_MSG | ( | std::is_unsigned< PointRepresenationType >::value | , |
"RepresentationType must be unsigned" | |||
) |
|
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().