EBGeometry  1.0
Static Public Member Functions | Static Protected Attributes | List of all members
SFC::Morton Struct Reference

Implementation of the Morton SFC. More...

#include <EBGeometry_SFC.hpp>

Static Public Member Functions

static uint64_t encode (const Index &a_point) noexcept
 Encode an input point into a Morton index with a 64-bit representation. More...
 
static Index decode (const uint64_t &a_code) noexcept
 Decode the 64-bit Morton code into an Index. More...
 

Static Protected Attributes

static constexpr uint_fast64_t Mask_64 [6]
 Mask for magic-bits encoding of 3D Morton code. More...
 

Detailed Description

Implementation of the Morton SFC.

Member Function Documentation

◆ decode()

static Index SFC::Morton::decode ( const uint64_t &  a_code)
inlinestaticnoexcept

Decode the 64-bit Morton code into an Index.

Parameters
[in]a_codeMorton code

◆ encode()

static uint64_t SFC::Morton::encode ( const Index a_point)
inlinestaticnoexcept

Encode an input point into a Morton index with a 64-bit representation.

Parameters
[in]a_point

Member Data Documentation

◆ Mask_64

constexpr uint_fast64_t SFC::Morton::Mask_64[6]
staticconstexprprotected
Initial value:
{
0x1fffff, 0x1f00000000ffff, 0x1f0000ff0000ff, 0x100f00f00f00f00f, 0x10c30c30c30c30c3, 0x1249249249249249}

Mask for magic-bits encoding of 3D Morton code.


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