AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::bump::HashNaming< IndexT, MAXIDS >::View Class Reference

A view for making names, suitable for use in device code. More...

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

Public Types

using KeyType = HashNaming::KeyType
 

Public Member Functions

AXOM_HOST_DEVICE KeyType makeName (const IndexType *p, int n) const
 Make a name from an array of ids. More...
 
AXOM_HOST_DEVICE void setMaxId (IndexType m)
 Set the max number of nodes, which can be useful for packing/narrowing. More...
 

Detailed Description

template<typename IndexT, int MAXIDS = 14>
class axom::bump::HashNaming< IndexT, MAXIDS >::View

A view for making names, suitable for use in device code.

Member Typedef Documentation

◆ KeyType

template<typename IndexT , int MAXIDS = 14>
using axom::bump::HashNaming< IndexT, MAXIDS >::View::KeyType = HashNaming::KeyType

Member Function Documentation

◆ makeName()

template<typename IndexT , int MAXIDS = 14>
AXOM_HOST_DEVICE KeyType axom::bump::HashNaming< IndexT, MAXIDS >::View::makeName ( const IndexType p,
int  n 
) const
inline

Make a name from an array of ids.

Parameters
pThe array of ids.
nThe number of ids in the array.
Returns
The name that describes the array of ids.
Note
Different make_name_* functions are used because we can skip most sorting for 1,2 element arrays. Also, there is a small benefit to some of the other shortcuts for smaller arrays.

◆ setMaxId()

template<typename IndexT , int MAXIDS = 14>
AXOM_HOST_DEVICE void axom::bump::HashNaming< IndexT, MAXIDS >::View::setMaxId ( IndexType  m)
inline

Set the max number of nodes, which can be useful for packing/narrowing.


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