ARB
Classes | Functions
PT_buildtree.cxx File Reference
#include "probe.h"
#include <PT_server_prototypes.h>
#include "probe_tree.h"
#include "pt_prototypes.h"
#include "PT_partition.h"
#include <arb_defs.h>
#include <arb_file.h>
#include <arb_misc.h>
#include <arb_diff.h>
#include <arb_progress.h>
#include <unistd.h>
#include <ctype.h>
Include dependency graph for PT_buildtree.cxx:

Go to the source code of this file.

Classes

class  PartitionSpec
 

Functions

static POS_TREE1build_pos_tree (POS_TREE1 *const root, const ReadableDataLoc &loc)
 
void get_abs_align_pos (char *seq, int &pos)
 
static bool all_sons_saved (POS_TREE1 *node)
 
bool has_unsaved_sons (POS_TREE1 *node)
 
static long write_subtree (FILE *out, POS_TREE1 *node, long pos, long *node_pos, ARB_ERROR &error)
 
static long save_lower_subtree (FILE *out, POS_TREE1 *node, long pos, int height, ARB_ERROR &error)
 
static long save_upper_tree (FILE *out, POS_TREE1 *node, long pos, long &node_pos, ARB_ERROR &error)
 
void check_tree_was_saved (POS_TREE1 *node, const char *whatTree, bool completely, ARB_ERROR &error)
 
long PTD_save_lower_tree (FILE *out, POS_TREE1 *node, long pos, ARB_ERROR &error)
 
long PTD_save_upper_tree (FILE *out, POS_TREE1 *&node, long pos, long &node_pos, ARB_ERROR &error)
 
static Partition decide_passes_to_use (size_t overallBases, size_t max_kb_usable, int forced_passes)
 
ARB_ERROR enter_stage_1_build_tree (PT_main *, const char *tname, ULONG ARM_size_kb)
 
ARB_ERROR enter_stage_2_load_tree (PT_main *, const char *tname)
 

Function Documentation

static POS_TREE1* build_pos_tree ( POS_TREE1 *const  root,
const ReadableDataLoc loc 
)
static
void get_abs_align_pos ( char seq,
int pos 
)
inline

Definition at line 133 of file PT_buildtree.cxx.

static bool all_sons_saved ( POS_TREE1 node)
static

Definition at line 174 of file PT_buildtree.cxx.

References has_unsaved_sons(), POS_TREE1::is_node(), pt_assert, PT_BASES, PT_QU, and PT_read_son().

Referenced by has_unsaved_sons().

bool has_unsaved_sons ( POS_TREE1 node)
inline
static long write_subtree ( FILE *  out,
POS_TREE1 node,
long  pos,
long node_pos,
ARB_ERROR error 
)
static
static long save_lower_subtree ( FILE *  out,
POS_TREE1 node,
long  pos,
int  height,
ARB_ERROR error 
)
static
static long save_upper_tree ( FILE *  out,
POS_TREE1 node,
long  pos,
long node_pos,
ARB_ERROR error 
)
static

Definition at line 219 of file PT_buildtree.cxx.

References write_subtree().

Referenced by PTD_save_upper_tree().

void check_tree_was_saved ( POS_TREE1 node,
const char whatTree,
bool  completely,
ARB_ERROR error 
)
inline
long PTD_save_lower_tree ( FILE *  out,
POS_TREE1 node,
long  pos,
ARB_ERROR error 
)

Definition at line 237 of file PT_buildtree.cxx.

References check_tree_was_saved(), and save_lower_subtree().

Referenced by enter_stage_1_build_tree().

long PTD_save_upper_tree ( FILE *  out,
POS_TREE1 *&  node,
long  pos,
long node_pos,
ARB_ERROR error 
)
static Partition decide_passes_to_use ( size_t  overallBases,
size_t  max_kb_usable,
int  forced_passes 
)
static
ARB_ERROR enter_stage_1_build_tree ( PT_main *  ,
const char tname,
ULONG  ARM_size_kb 
)
ARB_ERROR enter_stage_2_load_tree ( PT_main *  ,
const char tname 
)