node.h
Classes
- node -- (full description)
Interface
- Public Members
- node(hbpfp the_hbpfp = new_hydrobase, sbpfp the_sbpfp = new_starbase)
- virtual ~node()
- void set_label(int number) // to set the index to a number
- void set_label(char * a_string) // to set the name to a string
- void set_index(int number) // to set the index to a number
- void set_name(char * a_string) // to set the name to a string
- void set_mass(const real new_mass)
- void set_parent(node * b)
- void set_oldest_daughter(node * b)
- void set_elder_sister(node * b)
- void set_younger_sister(node * b)
- void set_log_story(story * s)
- void set_dyn_story(story * s)
- void log_comment(char *)
- void log_history(int, char **)
- void inc_mass(const real d_mass)
- void scale_mass(const real scale_factor)
- int get_index()
- char * get_name()
- real get_mass()
- node * get_parent()
- node * get_oldest_daughter()
- node * get_younger_sister()
- node * get_elder_sister()
- node * get_root()
- node * get_top_level_node()
- node * get_binary_sister()
- void set_hydrobase(hydrobase * hb)
- void set_starbase(starbase * sb)
- hydrobase * get_hydrobase()
- starbase * get_starbase()
- story * get_log_story()
- story * get_dyn_story()
- story * get_hydro_story()
- story * get_star_story()
- istream& scan_log_story(istream&, char *)
- istream& scan_hydro_story(istream&)
- istream& scan_star_story(istream&)
- virtual istream& scan_dyn_story(istream&)
- ostream& print_log_story(ostream&)
- ostream& print_hydro_story(ostream&)
- ostream& print_star_story(ostream&)
- virtual ostream& print_dyn_story(ostream&)
- bool is_isolated()
- bool is_root()
- bool is_leaf()
- bool is_top_level_node()
- bool is_top_level_leaf()
- bool is_low_level_node()
- bool is_low_level_leaf()
- bool is_parent()
- bool is_grandparent()
- node* next_node(node*)
- node* real_next_node(node*)
- char* format_label()
- void print_label(ostream & )
- void pretty_print_node(ostream&)
- void pretty_print_tree(ostream&)
- void pretty_print_tree(int, ostream&)
- void interpret_line(char*, char*)
- int n_leaves()
-----------------------------------------------------------------------------
node -- a base class for the nodes in a tree of dynamical particles
-----------------------------------------------------------------------------
Member Description
node(hbpfp the_hbpfp = new_hydrobase, sbpfp the_sbpfp = new_starbase)
void set_label(int number) // to set the index to a number
void set_label(char * a_string) // to set the name to a string
void set_index(int number) // to set the index to a number
Alternate names for the same functions:
void set_name(char * a_string) // to set the name to a string
void set_mass(const real new_mass)
void inc_mass(const real d_mass)
void scale_mass(const real scale_factor)