|
ARB
|
#include "TreeRead.h"#include <TreeNode.h>#include <arb_msg_fwd.h>#include <arb_strbuf.h>#include <arb_strarray.h>#include <arb_file.h>#include <arb_defs.h>#include <algorithm>
Go to the source code of this file.
Classes | |
| class | TreeReader |
Macros | |
| #define | tree_assert(cond) arb_assert(cond) |
| #define | MAX_READER_WARN 100 |
| #define | NAME_TOO_LONG ((s-buffer)>MAX_NAME_LEN) |
Functions | |
| void | append_leaf_redef_details (GBS_strstruct &summary, int droppedAtLeaf, int droppedRedefined) |
| static TreeNode * | createLinkedTreeNode (const TreeRoot &nodeMaker, TreeNode *left, GBT_LEN leftlen, TreeNode *right, GBT_LEN rightlen) |
| static void | warningToConsumingReader (const char *msg) |
| TreeNode * | TREE_load (const char *path, TreeRoot *troot, char **commentPtr, bool allow_length_scaling, char **warningPtr) |
| GB_ERROR | TREE_load_to_db (GBDATA *gb_main, const char *treefile, const char *tree_name, const LabelTranslator &translator) |
Variables | |
| static TreeReader * | consumingReader = NULp |
| #define tree_assert | ( | cond | ) | arb_assert(cond) |
Definition at line 21 of file TreeRead.cxx.
Referenced by TREE_load().
| #define MAX_READER_WARN 100 |
Definition at line 48 of file TreeRead.cxx.
| #define NAME_TOO_LONG ((s-buffer)>MAX_NAME_LEN) |
|
inline |
Definition at line 365 of file TreeRead.cxx.
References GBS_strstruct::cat(), and GBS_strstruct::putlong().
Referenced by TreeReader::add_drop_summary_warning_if_suppressed().
|
static |
Definition at line 595 of file TreeRead.cxx.
References TreeNode::father, TreeNode::leftlen, TreeNode::leftson, TreeRoot::makeNode(), TreeNode::rightlen, and TreeNode::rightson.
|
static |
Definition at line 730 of file TreeRead.cxx.
References TreeReader::add_warning().
Referenced by TREE_load().
| TreeNode* TREE_load | ( | const char * | path, |
| TreeRoot * | troot, | ||
| char ** | commentPtr, | ||
| bool | allow_length_scaling, | ||
| char ** | warningPtr | ||
| ) |
Definition at line 734 of file TreeRead.cxx.
References TreeReader::add_drop_summary_warning_if_suppressed(), TreeRoot::delete_by_node(), destroy(), error(), TreeReader::error, GB_export_errorf(), GBS_global_string(), GBS_log_action_to(), TreeReader::get_max_found_bootstrap(), TreeReader::get_max_found_branchlen(), TreeNode::get_remark(), TreeNode::get_remark_ptr(), TreeNode::get_root_node(), TreeReader::get_warnings(), TreeNode::has_valid_root_remarks(), TreeNode::is_inner_node_with_remark(), TreeNode::is_leaf(), TreeReader::load(), name_only(), NULp, TreeReader::takeComment(), tree, tree_assert, TREE_scale(), TreeNode::use_as_remark(), and warningToConsumingReader().
Referenced by ARB_main(), build_consensus_tree(), main(), and TREE_load_to_db().
| GB_ERROR TREE_load_to_db | ( | GBDATA * | gb_main, |
| const char * | treefile, | ||
| const char * | tree_name, | ||
| const LabelTranslator & | translator | ||
| ) |
Definition at line 847 of file TreeRead.cxx.
References GB_transaction::close(), destroy(), error(), GB_await_error(), GBT_message(), GBT_write_tree_with_remark(), NULp, ta, TREE_load(), TREE_translate_labels(), and warnings.
Referenced by calc_pvp(), and tree_load_cb().
|
static |
Definition at line 729 of file TreeRead.cxx.
1.8.8