EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EBGeometry::SFCDetail::MortonKey Struct Reference

A point's sort key: its cell's Morton code, then its index, so that no two keys are equal and every sort (std::sort on the host, GPU::bitonicSort() on a device) gives the one order. More...

#include <EBGeometry_SFC.hpp>

Public Member Functions

bool operator< (const MortonKey &a_other) const noexcept
 Whether this key sorts before a_other: by code, then by index.
 

Public Attributes

uint64_t m_code
 The Morton code of the point's cell.
 
uint32_t m_index
 The point's index.
 

Detailed Description

A point's sort key: its cell's Morton code, then its index, so that no two keys are equal and every sort (std::sort on the host, GPU::bitonicSort() on a device) gives the one order.

Member Function Documentation

◆ operator<()

bool EBGeometry::SFCDetail::MortonKey::operator< ( const MortonKey &  a_other) const
inlinenoexcept

Whether this key sorts before a_other: by code, then by index.

Parameters
[in]a_otherThe other key.
Returns
True if this key comes first.

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