Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

node_tt.C File Reference

#include "node.h"

Go to the source code of this file.

Defines

#define DEBUG   0

Functions

real total_mass (node *b)
node* mk_flat_tree (int n, npfp new_node_type, hbpfp a_hbpfp, sbpfp a_sbpfp, bool use_stories)
char* string_index_of_node (node *n)
local char* construct_binary_label (node *ni, node *nj)
void label_binary_node (node *n)
local char* construct_merger_label (node *ni, node *nj)
local char* string_header (char *string)
local int string_count (char *string)
local char* alt_construct_merger_label (node *ni, node *nj)
void label_merger_node (node *n)
int depth_of_node (node *ni)
int is_descendent_of (node *child, node *parent, int mode)
node* common_ancestor (node *ni, node *nj)
node* node_with_index (int i, node *top)
node* node_with_name (char *s, node *top)
void detach_node_from_general_tree (node &n)
void remove_node_with_one_daughter (node &n)
void detach_node_from_binary_tree (node &n)
void extend_tree (node &old_n, node &new_n)
void add_node (node &n, node &parent)
void insert_node_into_binary_tree (node &n, node &old_n, node &new_n)
void err_exit (char *line, node *n)


Define Documentation

#define DEBUG   0
 

Definition at line 662 of file node_tt.C.


Function Documentation

void add_node ( node & n,
node & parent )
 

Definition at line 570 of file node_tt.C.

Referenced by attach_new_node(), insert_node_and_correct_upto_ancestor(), insert_node_into_binary_tree(), make_tuple_cm(), merge(), and split_top_level_node().

local char* alt_construct_merger_label ( node * ni,
node * nj )
 

Definition at line 292 of file node_tt.C.

Referenced by label_merger_node().

node* common_ancestor ( node * ni,
node * nj )
 

Definition at line 360 of file node_tt.C.

Referenced by KICK_VELOCITY(), combine_low_level_nodes(), and move_node().

local char* construct_binary_label ( node * ni,
node * nj )
 

Definition at line 192 of file node_tt.C.

Referenced by label_binary_node().

local char* construct_merger_label ( node * ni,
node * nj )
 

Definition at line 228 of file node_tt.C.

Referenced by alt_construct_merger_label(), and merge().

int depth_of_node ( node * ni )
 

Definition at line 335 of file node_tt.C.

Referenced by common_ancestor().

void detach_node_from_binary_tree ( node & n )
 

Definition at line 500 of file node_tt.C.

Referenced by remove_node_and_correct_upto_ancestor().

void detach_node_from_general_tree ( node & n )
 

Definition at line 412 of file node_tt.C.

Referenced by clean_up_subtree(), create_binary_from_toplevel_nodes(), detach_node_from_binary_tree(), merge(), remove_escapers(), remove_node_and_correct_upto_ancestor(), and split_top_level_node().

void err_exit ( char * line,
node * n )
 

Definition at line 741 of file node_tt.C.

void extend_tree ( node & old_n,
node & new_n )
 

Definition at line 521 of file node_tt.C.

Referenced by insert_node_into_binary_tree().

void insert_node_into_binary_tree ( node & n,
node & old_n,
node & new_n )
 

Definition at line 620 of file node_tt.C.

Referenced by create_binary_from_toplevel_nodes(), and insert_node_and_correct_upto_ancestor().

int is_descendent_of ( node * child,
node * parent,
int mode )
 

Definition at line 346 of file node_tt.C.

Referenced by synchronize_branch().

void label_binary_node ( node * n )
 

Definition at line 200 of file node_tt.C.

Referenced by combine_low_level_nodes(), create_binary_from_toplevel_nodes(), and insert_node_and_correct_upto_ancestor().

void label_merger_node ( node * n )
 

Definition at line 315 of file node_tt.C.

Referenced by KICK_VELOCITY().

node* mk_flat_tree ( int n,
npfp new_node_type,
hbpfp a_hbpfp,
sbpfp a_sbpfp,
bool use_stories )
 

Definition at line 154 of file node_tt.C.

node* node_with_index ( int i,
node * top )
 

Definition at line 376 of file node_tt.C.

Referenced by move_node_by_index().

node* node_with_name ( char * s,
node * top )
 

Definition at line 392 of file node_tt.C.

Referenced by pp().

void remove_node_with_one_daughter ( node & n )
 

Definition at line 453 of file node_tt.C.

Referenced by detach_node_from_binary_tree().

local int string_count ( char * string )
 

Definition at line 255 of file node_tt.C.

Referenced by alt_construct_merger_label().

local char* string_header ( char * string )
 

Definition at line 237 of file node_tt.C.

Referenced by alt_construct_merger_label().

char* string_index_of_node ( node * n )
 

Definition at line 178 of file node_tt.C.

Referenced by alt_construct_merger_label(), construct_binary_label(), and construct_merger_label().

real total_mass ( node * b )
 

Definition at line 146 of file node_tt.C.

Referenced by check_and_remove_escapers(), check_kira_runtime(), evolve_stars(), get_initial_mass(), kira_initialize(), log_output(), and refine_cluster_mass().


Generated at Sun Feb 24 09:57:28 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001