ARB
Functions | Variables
CT_ntree.cxx File Reference
#include "CT_ntree.hxx"
#include <arbdbt.h>
Include dependency graph for CT_ntree.cxx:

Go to the source code of this file.

Functions

const NT_NODEntree_get ()
 
static NT_NODEnew_ntnode (PART *&p)
 
static void del_tree (NT_NODE *tree)
 
void ntree_init (const PartitionSize *registry)
 
void ntree_cleanup ()
 
int ntree_count_sons (const NT_NODE *tree)
 
static void move_son (NT_NODE *f_node, NT_NODE *s_node, NSONS *nson)
 
static int ins_ntree (NT_NODE *tree, PART *&newpart)
 
void insert_ntree (PART *&part)
 

Variables

static NT_NODEntree = NULp
 

Function Documentation

const NT_NODE* ntree_get ( )

Definition at line 19 of file CT_ntree.cxx.

References ntree.

Referenced by ConsensusTree::get_consensus_tree().

static NT_NODE* new_ntnode ( PART *&  p)
static

Definition at line 25 of file CT_ntree.cxx.

References NULp, NT_NODE::part, and NT_NODE::son_list.

Referenced by ins_ntree(), and ntree_init().

static void del_tree ( NT_NODE tree)
static

Definition at line 36 of file CT_ntree.cxx.

References NSONS::next, NULp, NT_NODE::part, and NT_NODE::son_list.

Referenced by ntree_cleanup().

void ntree_init ( const PartitionSize registry)

Definition at line 55 of file CT_ntree.cxx.

References arb_assert, PartitionSize::create_root(), and new_ntnode().

Referenced by ConsensusTree::get_consensus_tree().

void ntree_cleanup ( )

Definition at line 62 of file CT_ntree.cxx.

References del_tree(), and NULp.

Referenced by ConsensusTree::get_consensus_tree().

int ntree_count_sons ( const NT_NODE tree)

Definition at line 75 of file CT_ntree.cxx.

References node::next, and NT_NODE::son_list.

Referenced by ConsensusTree::get_consensus_tree().

static void move_son ( NT_NODE f_node,
NT_NODE s_node,
NSONS nson 
)
static

Definition at line 85 of file CT_ntree.cxx.

References NSONS::next, NULp, NSONS::prev, and NT_NODE::son_list.

Referenced by ins_ntree().

static int ins_ntree ( NT_NODE tree,
PART *&  newpart 
)
static
void insert_ntree ( PART *&  part)

Variable Documentation

NT_NODE* ntree = NULp
static

Definition at line 16 of file CT_ntree.cxx.

Referenced by ntree_get().