#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/spin/MortonIndex.hpp>
|
| AXOM_STATIC_ASSERT_MSG (std::is_integral< CoordType >::value, "Coordtype must be integral for Morton indexing") |
|
| AXOM_STATIC_ASSERT_MSG (std::is_integral< MortonIndexType >::value, "MortonIndexType must be integral for Morton indexing") |
|
|
static int | maxSetBit (CoordType x) |
| Finds the index of the maximum set bit (MSB) in an integral type. More...
|
|
◆ AXOM_STATIC_ASSERT_MSG() [1/2]
template<typename CoordType , typename MortonIndexType , typename Derived >
axom::spin::MortonBase< CoordType, MortonIndexType, Derived >::AXOM_STATIC_ASSERT_MSG |
( |
std::is_integral< CoordType >::value |
, |
|
|
"Coordtype must be integral for Morton indexing" |
|
|
) |
| |
◆ AXOM_STATIC_ASSERT_MSG() [2/2]
template<typename CoordType , typename MortonIndexType , typename Derived >
axom::spin::MortonBase< CoordType, MortonIndexType, Derived >::AXOM_STATIC_ASSERT_MSG |
( |
std::is_integral< MortonIndexType >::value |
, |
|
|
"MortonIndexType must be integral for Morton indexing" |
|
|
) |
| |
◆ expandBits()
template<typename CoordType , typename MortonIndexType , typename Derived >
Expands bits in bitwise representation of an integral type and zero-fills the holes.
- Parameters
-
[in] | x | The integer type that we are expanding |
- Returns
- A zero-filled expanded MortonIndex In dimension D, it adds (D-1) zeros between each bit, so, e.g. in 2D, 6 == 0b0110 becomes 0b*0*1*1*0 == 0b00010100 == 20
◆ contractBits()
template<typename CoordType , typename MortonIndexType , typename Derived >
Contracts bits in bitwise representation of x.
- Parameters
-
[in] | x | The Morton index that we are contracting |
- Returns
- A contracted MortonIndex
In dimension D, it retains every (D-1) \(^th\) bit, so, e.g. in 2D, 20 = 0b00010100 == 0b*0*1*1*0 becomes 0b0110 = 6
◆ maxSetBit()
template<typename CoordType , typename MortonIndexType , typename Derived >
Finds the index of the maximum set bit (MSB) in an integral type.
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/spin/MortonIndex.hpp