AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType > Struct Template Reference

Traits class to manage types for different point representations in a SparseOctreeLevel. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/spin/SparseOctreeLevel.hpp>

Public Types

using GridPt = primal::Point< CoordType, DIM >
 
using PointRepresentationType = RepresentationType
 
using MapType = axom::FlatMap< RepresentationType, BroodDataType >
 
using BroodType = Brood< GridPt, PointRepresentationType >
 

Static Public Member Functions

static PointRepresentationType convertPoint (const GridPt &pt)
 Simple function to convert a point to its representation type. More...
 
static void initializeMap (MapType &map)
 

Detailed Description

template<typename CoordType, int DIM, typename BroodDataType, typename RepresentationType>
struct axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >

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.

Member Typedef Documentation

◆ GridPt

template<typename CoordType , int DIM, typename BroodDataType , typename RepresentationType >
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::GridPt = primal::Point<CoordType, DIM>

◆ PointRepresentationType

template<typename CoordType , int DIM, typename BroodDataType , typename RepresentationType >
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::PointRepresentationType = RepresentationType

◆ MapType

template<typename CoordType , int DIM, typename BroodDataType , typename RepresentationType >
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::MapType = axom::FlatMap<RepresentationType, BroodDataType>

◆ BroodType

template<typename CoordType , int DIM, typename BroodDataType , typename RepresentationType >
using axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::BroodType = Brood<GridPt, PointRepresentationType>

Member Function Documentation

◆ convertPoint()

template<typename CoordType , int DIM, typename BroodDataType , typename RepresentationType >
static PointRepresentationType axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::convertPoint ( const GridPt pt)
inlinestatic

Simple function to convert a point to its representation type.

◆ initializeMap()

template<typename CoordType , int DIM, typename BroodDataType , typename RepresentationType >
static void axom::spin::BroodRepresentationTraits< CoordType, DIM, BroodDataType, RepresentationType >::initializeMap ( MapType map)
inlinestatic

Utility function to initialize a MapType

Note
sparsehash's maps require setting some default keys

References AXOM_UNUSED_VAR.


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