BioDynaMo  v1.05.120-25dc9790
Public Member Functions | Private Attributes | List of all members
bdm::MortonOrder Class Reference

#include <morton_order.h>

Public Member Functions

void Update (const std::array< uint64_t, 3 > &num_boxes_axis)
 
uint64_t GetMortonCode (uint64_t box_index) const
 Runtime O(log(num_boxes)) More...
 
void CallMortonIteratorConsumer (uint64_t start_index, uint64_t end_index, Functor< void, Iterator< uint64_t > * > &f) const
 

Private Attributes

uint64_t num_boxes_
 
std::vector< std::pair< uint64_t, uint64_t > > offset_index_
 

Detailed Description

Definition at line 27 of file morton_order.h.

Member Function Documentation

◆ CallMortonIteratorConsumer()

void bdm::MortonOrder::CallMortonIteratorConsumer ( uint64_t  start_index,
uint64_t  end_index,
Functor< void, Iterator< uint64_t > * > &  f 
) const

Definition at line 200 of file morton_order.cc.

◆ GetMortonCode()

uint64_t bdm::MortonOrder::GetMortonCode ( uint64_t  box_index) const

Runtime O(log(num_boxes))

Definition at line 154 of file morton_order.cc.

◆ Update()

void bdm::MortonOrder::Update ( const std::array< uint64_t, 3 > &  num_boxes_axis)

Definition at line 55 of file morton_order.cc.

Member Data Documentation

◆ num_boxes_

uint64_t bdm::MortonOrder::num_boxes_
private

Definition at line 36 of file morton_order.h.

◆ offset_index_

std::vector<std::pair<uint64_t, uint64_t> > bdm::MortonOrder::offset_index_
private

Definition at line 37 of file morton_order.h.


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