ARB
Public Member Functions | List of all members
PartitionSize Class Reference

#include <CT_part.hxx>

Public Member Functions

 PartitionSize (int len)
 
int get_longs () const
 
int get_bits () const
 
size_t get_unique_id () const
 
PELEM get_cutmask () const
 
PARTcreate_root () const
 
PELEMalloc_mem () const
 

Detailed Description

Definition at line 43 of file CT_part.hxx.

Constructor & Destructor Documentation

PartitionSize::PartitionSize ( int  len)

Function to initialize the global variables above

Parameters
lennumber of bits the part should content

result: calculate cutmask, longs, plen

Definition at line 36 of file CT_part.cxx.

References arb_assert, and BITS_PER_PELEM.

Member Function Documentation

int PartitionSize::get_longs ( ) const
inline

Definition at line 53 of file CT_part.hxx.

Referenced by alloc_mem(), and PART::get_longs().

int PartitionSize::get_bits ( ) const
inline

Definition at line 54 of file CT_part.hxx.

Referenced by PART::get_maxsize().

size_t PartitionSize::get_unique_id ( ) const
inline

Definition at line 55 of file CT_part.hxx.

PELEM PartitionSize::get_cutmask ( ) const
inline

Definition at line 56 of file CT_part.hxx.

Referenced by PART::get_cutmask().

PART * PartitionSize::create_root ( ) const

build a partition that totally consists of 111111...1111 that is needed to build the root of a specific ntree

Definition at line 125 of file CT_part.cxx.

References arb_assert, PART::invert(), and PART::is_valid().

Referenced by ConsensusTree::ConsensusTree(), and ntree_init().

PELEM* PartitionSize::alloc_mem ( ) const
inline

Definition at line 59 of file CT_part.hxx.

References get_longs().


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