Thrill  0.1
PerfectTreeCalculations< TreeBits > Struct Template Reference

Detailed Description

template<size_t TreeBits>
struct tlx::sort_strings_detail::PerfectTreeCalculations< TreeBits >

Class to transform in-order to level-order indexes in a perfect binary tree.

Definition at line 51 of file sample_sort_tools.hpp.

#include <sample_sort_tools.hpp>

Static Public Member Functions

static unsigned int level_to_preorder (unsigned int id)
 
static unsigned int pre_to_levelorder (unsigned int id)
 
static void self_verify ()
 

Static Public Attributes

static const bool debug = false
 
static const size_t num_nodes = (1 << treebits) - 1
 
static const size_t treebits = TreeBits
 

Member Function Documentation

◆ level_to_preorder()

static unsigned int level_to_preorder ( unsigned int  id)
inlinestatic

◆ pre_to_levelorder()

◆ self_verify()

Member Data Documentation

◆ debug

const bool debug = false
static

Definition at line 52 of file sample_sort_tools.hpp.

◆ num_nodes

◆ treebits

const size_t treebits = TreeBits
static

Definition at line 54 of file sample_sort_tools.hpp.


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