EBGeometry  1.0
Static Public Member Functions | List of all members
SFC::Nested Struct Reference

Implementation of a nested index SFC. More...

#include <EBGeometry_SFC.hpp>

Static Public Member Functions

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

Detailed Description

Implementation of a nested index SFC.

The SFC is encoded by the code = i + j * N + k * N * N in 3D, where i,j,k are the block indices.

Member Function Documentation

◆ decode()

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

Decode the 64-bit SFC code into an Index.

Parameters
[in]a_codeSFC code.

◆ encode()

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

Encode the input point into the SFC code.

Parameters
[in]a_point

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