Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

story.C File Reference

#include "story.h"

Go to the source code of this file.

Defines

#define BYTE_LENGTH   8
#define SAFE_INT_LENGTH   (5 + (BYTE_LENGTH*sizeof(int))/3)
#define SAFE_REAL_LENGTH   (10 + (BYTE_LENGTH*sizeof(real))/3)
#define SAFE_STRING_LENGTH   1
#define SAFE_VECTOR_LENGTH   (3 * (SAFE_REAL_LENGTH + 2))
#define EXTRA_LENGTH   5
#define GET_ARR_BUFSIZ   8192

Functions

int is_chapter (story *s)
int is_chapter_begin_line (char *line)
int is_chapter_end_line (char *line)
int get_story_line (istream &str, char *line)
void add_daughter_story (story *s, story *d)
void add_chapter (story *s, story *chap)
void rm_daughter_story (story *s, story *d)
story* mk_story_line ()
story* mk_story_line (char *line)
story* mk_story_chapter ()
story* mk_story_chapter (char *title)
void add_story_line (story *s, char *line)
story* get_chapter (istream &str, char *line)
story* get_story (istream &str, char *line)
story* get_story (istream &str)
void put_headline (ostream &str, story &s)
void put_tailline (ostream &str, story &s)
void put_line_text (ostream &str, story &s)
void put_chapter (ostream &str, story &s)
void put_story_contents (ostream &str, story &s)
void put_story (ostream &str, story &s)
local void write_iq (story *a_story_line, char *name, int value)
local void write_ulq (story *a_story_line, char *name, unsigned long value)
local void write_rq (story *a_story_line, char *name, real value, int p=6)
local void write_sq (story *a_story_line, char *name, char *value)
local void write_vq (story *a_story_line, char *name, vector &value)
local void write_ra (story *a_story_line, char *name, real *value, int n)
local void write_ia (story *a_story_line, char *name, int *value, int n)
local void write_ia (story *a_story_line, char *name, unsigned long *value, int n)
local bool qmatch (story *a_story_line, char *name)
story* find_qmatch (story *a_story, char *name)
local char* get_qstring (story *a_story_line)
int getiq (story *a_story, char *name, bool verbose)
unsigned long getulq (story *a_story, char *name, bool verbose)
real getrq (story *a_story, char *name, bool verbose)
char* getsq (story *a_story, char *name, bool verbose)
vector getvq (story *a_story, char *name, bool verbose)
local void get_array (char *sin, real *x, int n)
local void get_array (char *sin, int *x, int n)
local void get_array (char *sin, unsigned long *x, int n)
void getra (story *a_story, char *name, real *x, int n, bool verbose)
void getia (story *a_story, char *name, int *x, int n, bool verbose)
void getia (story *a_story, char *name, unsigned long *x, int n, bool verbose)
void putiq (story *a_story, char *name, int value)
void putulq (story *a_story, char *name, unsigned long value)
void dump_story (story *s, int indent)
void putrq (story *a_story, char *name, real value, int precision)
void putra (story *a_story, char *name, real *value, int n)
void putia (story *a_story, char *name, int *value, int n)
void putia (story *a_story, char *name, unsigned long *value, int n)
void putsq (story *a_story, char *name, char *value)
void putvq (story *a_story, char *name, vector &value)
int rmq (story *a_story, char *name)
int is_quantity_name (story *a_story, char *name)


Define Documentation

#define BYTE_LENGTH   8
 

Definition at line 300 of file story.C.

#define EXTRA_LENGTH   5
 

Definition at line 305 of file story.C.

#define GET_ARR_BUFSIZ   8192
 

Definition at line 723 of file story.C.

#define SAFE_INT_LENGTH   (5 + (BYTE_LENGTH*sizeof(int))/3)
 

Definition at line 301 of file story.C.

#define SAFE_REAL_LENGTH   (10 + (BYTE_LENGTH*sizeof(real))/3)
 

Definition at line 302 of file story.C.

#define SAFE_STRING_LENGTH   1
 

Definition at line 303 of file story.C.

#define SAFE_VECTOR_LENGTH   (3 * (SAFE_REAL_LENGTH + 2))
 

Definition at line 304 of file story.C.


Function Documentation

void add_chapter ( story * s,
story * chap )
 

Definition at line 91 of file story.C.

Referenced by get_chapter().

void add_daughter_story ( story * s,
story * d )
 

Definition at line 67 of file story.C.

Referenced by add_chapter(), add_story_line(), putia(), putiq(), putra(), putrq(), putsq(), putulq(), and putvq().

void add_story_line ( story * s,
char * line )
 

Definition at line 153 of file story.C.

Referenced by get_chapter().

void dump_story ( story * s,
int indent )
 

Definition at line 944 of file story.C.

Referenced by putrq().

story* find_qmatch ( story * a_story,
char * name )
 

Definition at line 564 of file story.C.

Referenced by ONE3(), check_addstar(), check_kira_flag(), check_merge_esc_flags(), check_set_ignore_internal(), check_set_plummer(), check_set_power_law(), choose_param(), compute_mcom(), compute_projected_luminosity_radii(), count_neighbors_and_adjust_h2(), get_initial_jacobi_radius(), get_scaled_stripping_radius(), get_std_center(), get_sum_of_radii(), get_ubvri_star(), getia(), getiq(), getra(), getrq(), getsq(), getulq(), getvq(), grape_calculate_acc_and_jerk(), initialize_counters_from_log(), is_quantity_name(), main(), print_anisotropy_by_radial_zone(), print_encounter_elements(), print_hertzsprung_Russell_diagram(), print_lagrangian_radii(), print_mass_over_light(), print_numbers_and_masses_by_radial_zone(), print_parameters_for_massive_black_holes(), print_perioapo_clustron(), print_povray_stars(), print_star(), print_stellar_content(), print_timestep_stats(), print_ubvri_star(), put_ubvri(), putia(), putiq(), putra(), putrq(), putsq(), putulq(), putvq(), refine_cluster_mass(), refine_cluster_mass2(), rmq(), scale(), scan_root_nodes(), set_tidal_params(), sort_stellar_ubvri(), and sys_stats().

local void get_array ( char * sin,
unsigned long * x,
int n )
 

Definition at line 794 of file story.C.

Referenced by getia(), and getra().

local void get_array ( char * sin,
int * x,
int n )
 

Definition at line 768 of file story.C.

local void get_array ( char * sin,
real * x,
int n )
 

Definition at line 727 of file story.C.

story* get_chapter ( istream & str,
char * line )
 

Definition at line 161 of file story.C.

Referenced by get_chapter(), and get_story().

local char* get_qstring ( story * a_story_line )
 

Definition at line 589 of file story.C.

Referenced by getia(), getiq(), getra(), getrq(), getsq(), getulq(), getvq(), and putrq().

story* get_story ( istream & str )
 

Definition at line 196 of file story.C.

Referenced by operator>>().

story* get_story ( istream & str,
char * line )
 

Definition at line 194 of file story.C.

int get_story_line ( istream & str,
char * line )
 

Definition at line 51 of file story.C.

Referenced by get_chapter(), and get_story().

void getia ( story * a_story,
char * name,
unsigned long * x,
int n,
bool verbose )
 

Definition at line 876 of file story.C.

Referenced by initialize_counters_from_log().

void getia ( story * a_story,
char * name,
int * x,
int n,
bool verbose )
 

Definition at line 850 of file story.C.

int getiq ( story * a_story,
char * name,
bool verbose )
 

Definition at line 609 of file story.C.

Referenced by ONE3(), addstar(), check_kira_flag(), check_set_ignore_internal(), count_neighbors_and_adjust_h2(), double_fn(), get_external_acc(), get_sum_of_radii(), getq(), grape_calculate_acc_and_jerk(), initialize_counters_from_log(), main(), print_anisotropy_by_radial_zone(), print_close_encounter(), print_encounter_elements(), print_lagrangian_radii(), print_mass_over_light(), print_numbers_and_masses_by_radial_zone(), print_perioapo_clustron(), print_stellar_content(), scan_root_nodes(), set_tidal_params(), and single_fn().

void getra ( story * a_story,
char * name,
real * x,
int n,
bool verbose )
 

Definition at line 824 of file story.C.

Referenced by print_anisotropy_by_radial_zone(), print_lagrangian_radii(), print_mass_over_light(), print_numbers_and_masses_by_radial_zone(), and print_stellar_content().

real getrq ( story * a_story,
char * name,
bool verbose )
 

Definition at line 652 of file story.C.

Referenced by check_for_doubling(), check_merge_esc_flags(), check_set_plummer(), check_set_power_law(), choose_param(), compute_core_parameters(), compute_max_cod(), compute_mcom(), compute_mean_cod(), compute_projected_luminosity_radii(), count_neighbors_and_adjust_h2(), get_composition(), get_initial_jacobi_radius(), get_initial_mass(), get_initial_virial_radius(), get_scaled_stripping_radius(), get_std_center(), get_ubvri_star(), getq(), grape_calculate_densities(), main(), print_close_encounter(), print_hertzsprung_Russell_diagram(), print_lagrangian_radii(), print_mass_over_light(), print_node(), print_numbers_and_masses(), print_perioapo_clustron(), print_povray_header(), print_povray_stars(), print_star(), print_timestep_stats(), print_ubvri_star(), put_ubvri(), read_bundle(), refine_cluster_mass2(), scale(), set_tidal_params(), and sys_stats().

char* getsq ( story * a_story,
char * name,
bool verbose )
 

Definition at line 679 of file story.C.

Referenced by compute_core_parameters(), get_ubvri_star(), print_close_encounter(), print_hertzsprung_Russell_diagram(), print_lagrangian_radii(), print_star(), print_stellar_content(), and print_ubvri_star().

unsigned long getulq ( story * a_story,
char * name,
bool verbose )
 

Definition at line 630 of file story.C.

Referenced by getq().

vector getvq ( story * a_story,
char * name,
bool verbose )
 

Definition at line 700 of file story.C.

Referenced by check_set_plummer(), check_set_power_law(), compute_mcom(), compute_projected_luminosity_radii(), get_std_center(), getq(), print_anisotropy_by_radial_zone(), print_lagrangian_radii(), print_mass_over_light(), print_numbers_and_masses_by_radial_zone(), print_povray_stars(), print_stellar_content(), put_ubvri(), scan_root_nodes(), sort_stellar_ubvri(), and sys_stats().

int is_chapter ( story * s )
 

Definition at line 33 of file story.C.

Referenced by put_chapter(), and put_story_contents().

int is_chapter_begin_line ( char * line )
 

Definition at line 41 of file story.C.

Referenced by get_chapter(), and get_story().

int is_chapter_end_line ( char * line )
 

Definition at line 46 of file story.C.

Referenced by get_chapter().

int is_quantity_name ( story * a_story,
char * name )
 

Definition at line 1147 of file story.C.

story* mk_story_chapter ( char * title )
 

Definition at line 146 of file story.C.

story* mk_story_chapter ( )
 

Definition at line 144 of file story.C.

story* mk_story_line ( char * line )
 

Definition at line 137 of file story.C.

story* mk_story_line ( )
 

Definition at line 131 of file story.C.

void put_chapter ( ostream & str,
story & s )
 

Definition at line 239 of file story.C.

Referenced by put_chapter(), put_story(), and put_story_contents().

void put_headline ( ostream & str,
story & s )
 

Definition at line 212 of file story.C.

Referenced by put_chapter().

void put_line_text ( ostream & str,
story & s )
 

Definition at line 230 of file story.C.

Referenced by put_chapter(), and put_story_contents().

void put_story ( ostream & str,
story & s )
 

Definition at line 279 of file story.C.

Referenced by operator<<(), and putrq().

void put_story_contents ( ostream & str,
story & s )
 

Definition at line 261 of file story.C.

Referenced by put_node_body().

void put_tailline ( ostream & str,
story & s )
 

Definition at line 221 of file story.C.

Referenced by put_chapter().

void putia ( story * a_story,
char * name,
unsigned long * value,
int n )
 

Definition at line 1062 of file story.C.

Referenced by write_counters_to_log().

void putia ( story * a_story,
char * name,
int * value,
int n )
 

Definition at line 1041 of file story.C.

void putiq ( story * a_story,
char * name,
int value )
 

Definition at line 905 of file story.C.

Referenced by ONE3(), compute_density(), compute_general_mass_radii(), compute_mcom(), grape_calculate_acc_and_jerk(), kira_initialize(), main(), modify_params(), print_close_encounter(), print_core_parameters(), print_perioapo_clustron(), putq(), refine_cluster_mass(), refine_cluster_mass2(), set_runtime_params(), set_tidal_params(), tmp_string(), and write_counters_to_log().

void putra ( story * a_story,
char * name,
real * value,
int n )
 

Definition at line 1020 of file story.C.

Referenced by compute_general_mass_radii().

void putrq ( story * a_story,
char * name,
real value,
int precision )
 

Definition at line 971 of file story.C.

Referenced by YR(), add_power_law(), check_merge_esc_flags(), choose_param(), compute_com(), compute_density(), compute_general_mass_radii(), compute_max_cod(), compute_mcom(), compute_mean_cod(), get_densities(), get_densities_for_list(), get_initial_jacobi_radius(), get_initial_mass(), get_initial_virial_radius(), get_scaled_stripping_radius(), get_std_center(), grape_calculate_densities(), kira_initialize(), main(), mksphere(), modify_params(), print_close_encounter(), print_core_parameters(), print_perioapo_clustron(), print_recalculated_energies(), print_timestep_stats(), putq(), refine_cluster_mass(), refine_cluster_mass2(), and scale().

void putsq ( story * a_story,
char * name,
char * value )
 

Definition at line 1083 of file story.C.

Referenced by compute_general_mass_radii(), compute_max_cod(), compute_mean_cod(), and print_close_encounter().

void putulq ( story * a_story,
char * name,
unsigned long value )
 

Definition at line 926 of file story.C.

Referenced by putq().

void putvq ( story * a_story,
char * name,
vector & value )
 

Definition at line 1104 of file story.C.

Referenced by add_power_law(), compute_com(), compute_general_mass_radii(), compute_max_cod(), compute_mcom(), compute_mean_cod(), get_std_center(), putq(), refine_cluster_mass2(), and sys_stats().

local bool qmatch ( story * a_story_line,
char * name )
 

Definition at line 517 of file story.C.

Referenced by find_qmatch().

void rm_daughter_story ( story * s,
story * d )
 

Definition at line 98 of file story.C.

Referenced by rmq().

int rmq ( story * a_story,
char * name )
 

Definition at line 1125 of file story.C.

Referenced by check_merge_esc_flags(), grape_calculate_acc_and_jerk(), main(), refine_cluster_mass(), refine_cluster_mass2(), and scale().

local void write_ia ( story * a_story_line,
char * name,
unsigned long * value,
int n )
 

Definition at line 480 of file story.C.

Referenced by putia().

local void write_ia ( story * a_story_line,
char * name,
int * value,
int n )
 

Definition at line 450 of file story.C.

local void write_iq ( story * a_story_line,
char * name,
int value )
 

Definition at line 311 of file story.C.

Referenced by putiq().

local void write_ra ( story * a_story_line,
char * name,
real * value,
int n )
 

Definition at line 419 of file story.C.

Referenced by putra().

local void write_rq ( story * a_story_line,
char * name,
real value,
int p = 6 )
 

Definition at line 351 of file story.C.

Referenced by putrq().

local void write_sq ( story * a_story_line,
char * name,
char * value )
 

Definition at line 377 of file story.C.

Referenced by putsq().

local void write_ulq ( story * a_story_line,
char * name,
unsigned long value )
 

Definition at line 331 of file story.C.

Referenced by putulq().

local void write_vq ( story * a_story_line,
char * name,
vector & value )
 

Definition at line 398 of file story.C.

Referenced by putvq().


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