ARB
|
#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>
Go to the source code of this file.
Classes | |
class | PartitionSpec |
|
static |
Definition at line 32 of file PT_buildtree.cxx.
References POS_TREE1::is_chain(), POS_TREE1::is_leaf(), POS_TREE1::is_node(), PT_add_to_chain(), pt_assert, PT_change_leaf_to_node(), PT_create_leaf(), PT_leaf_to_chain(), PT_MIN_TREE_HEIGHT, PT_POS_TREE_HEIGHT, PT_QU, and PT_read_son().
Referenced by enter_stage_1_build_tree().
Definition at line 133 of file PT_buildtree.cxx.
|
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().
|
inline |
Definition at line 170 of file PT_buildtree.cxx.
References all_sons_saved(), POS_TREE1::get_type(), PT1_NODE, PT1_SAVED, and type.
Referenced by all_sons_saved(), check_tree_was_saved(), and PTD_save_upper_tree().
|
static |
Definition at line 186 of file PT_buildtree.cxx.
References POS_TREE1::clear_fathers(), pt_assert_stage, PTD_write_leafs_to_disk(), and STAGE1.
Referenced by save_lower_subtree(), and save_upper_tree().
|
static |
Definition at line 192 of file PT_buildtree.cxx.
References POS_TREE1::get_type(), PT1_CHAIN, PT1_LEAF, PT1_NODE, PT1_SAVED, PT1_UNDEF, pt_assert, PT_BASES, PT_MIN_TREE_HEIGHT, PT_QU, PT_read_son(), and write_subtree().
Referenced by PTD_save_lower_tree().
|
static |
Definition at line 219 of file PT_buildtree.cxx.
References write_subtree().
Referenced by PTD_save_upper_tree().
|
inline |
Definition at line 224 of file PT_buildtree.cxx.
References GBS_global_string(), has_unsaved_sons(), POS_TREE1::is_saved(), and PT_dump_POS_TREE_recursive().
Referenced by PTD_save_lower_tree(), and PTD_save_upper_tree().
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 | ||
) |
Definition at line 243 of file PT_buildtree.cxx.
References check_tree_was_saved(), has_unsaved_sons(), pt_assert, PTD_delete_saved_node(), and save_upper_tree().
Referenced by enter_stage_1_build_tree().
|
static |
Definition at line 335 of file PT_buildtree.cxx.
References fflush(), fflush_all(), PrefixProbabilities::get_prefix_count(), PartitionSpec::isBetterThan(), max_kb_for_passes(), PartitionSpec::partition(), PartitionSpec::print_info(), PT_MAX_PARTITION_DEPTH, PT_QU, PT_T, PrefixIterator::steps(), and PartitionSpec::willUseMoreThan().
Referenced by enter_stage_1_build_tree().
Definition at line 395 of file PT_buildtree.cxx.
References ARB_strdup(), build_pos_tree(), probe_struct_global::char_count, Partition::contains(), probe_statistic_struct::cut_offs, probe_struct_global::data, probe_struct_global::data_count, decide_passes_to_use(), arb_progress::done(), Partition::done(), probe_struct_global::enter_stage(), error(), Partition::estimate_max_probes_for_any_pass(), fflush_all(), fputc(), fputs(), GB_abort_transaction(), GB_await_error(), GB_begin_transaction(), GB_commit_transaction(), GB_get_usable_memory(), GB_getenv(), probe_struct_global::gb_main, GB_move_file(), GB_set_mode_of_file(), GB_size_of_file(), GB_unlink(), GB_warning(), GB_warningf(), GBK_system(), GBK_terminate(), GBS_add_ptserver_logentry(), GBS_global_string(), GBS_global_string_copy(), GBS_readable_size(), probe_input_data::get_abspos(), probe_input_data::get_dataPtr(), probe_input_data::get_size(), Partition::next(), NULp, Partition::number_of_passes(), probe_input_data::preload_rel2abs(), psg, pt_assert, PT_change_leaf_to_node(), PT_create_leaf(), PT_init_cache_sizes(), PT_N, PT_SERVER_MAGIC, PT_SERVER_VERSION, PTD_debug_nodes(), PTD_put_byte(), PTD_put_int(), PTD_put_longlong(), PTD_put_short(), PTD_save_lower_tree(), PTD_save_upper_tree(), PTSERVER_BIN_MB, seq, DataLoc::set_position(), STAGE1, and probe_struct_global::stat.
Referenced by run_command().
Definition at line 590 of file PT_buildtree.cxx.
References probe_struct_global::enter_stage(), error(), GB_IO_error(), GB_size_of_file(), GBS_readable_size(), psg, PT_init_cache_sizes(), PTD_read_leafs_from_disk(), STAGE2, and probe_struct_global::TREE_ROOT2().
Referenced by run_command(), and start_pt_server().