Proto  3.2
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Proto::Morton Class Reference

Morton Indexer. More...

#include <Proto_Morton.H>

Static Public Member Functions

static uint64_t index (const Point &a_pt)
 Compute Morton Index. More...
 
static void sort (vector< Point > &a_pts)
 Morton Sort. More...
 

Private Member Functions

 Morton ()
 

Static Private Member Functions

static Mortoninstance ()
 
static bool compareSecond (pair< Point, uint64_t > a_a, pair< Point, uint64_t > a_b)
 

Private Attributes

Array< vector< uint64_t >, DIM > m_morton1D
 

Detailed Description

Morton Indexer.

Utility class for computing the Morton Index of a DIM-tuple corresponding to the bits of each element of the tuple.

Constructor & Destructor Documentation

◆ Morton()

Proto::Morton::Morton ( )
inlineprivate

Member Function Documentation

◆ index()

uint64_t Proto::Morton::index ( const Point a_pt)
inlinestatic

Compute Morton Index.

Compute the Morton index of a Point.

Parameters
a_ptA Point
a_mortonA Morton indexer

◆ sort()

void Proto::Morton::sort ( vector< Point > &  a_pts)
inlinestatic

Morton Sort.

Sort a vector of Point in place by Morton index.

Parameters
a_ptsA vector of Points to be sorted

◆ instance()

Morton & Proto::Morton::instance ( )
inlinestaticprivate

◆ compareSecond()

static bool Proto::Morton::compareSecond ( pair< Point, uint64_t >  a_a,
pair< Point, uint64_t >  a_b 
)
inlinestaticprivate

Member Data Documentation

◆ m_morton1D

Array<vector<uint64_t>,DIM> Proto::Morton::m_morton1D
private

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