ARB
|
#include "TreeRead.h"
#include <TreeNode.h>
#include <arb_msg_fwd.h>
#include <arb_strbuf.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_DROPPED_GROUP_WARN 100 |
#define | NAME_TOO_LONG ((s-buffer)>MAX_NAME_LEN) |
Functions | |
static TreeNode * | createLinkedTreeNode (const TreeRoot &nodeMaker, TreeNode *left, GBT_LEN leftlen, TreeNode *right, GBT_LEN rightlen) |
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) |
#define tree_assert | ( | cond | ) | arb_assert(cond) |
Definition at line 20 of file TreeRead.cxx.
Referenced by TREE_load().
#define MAX_DROPPED_GROUP_WARN 100 |
#define NAME_TOO_LONG ((s-buffer)>MAX_NAME_LEN) |
|
static |
Definition at line 483 of file TreeRead.cxx.
References TreeNode::father, TreeNode::leftlen, TreeNode::leftson, TreeRoot::makeNode(), TreeNode::rightlen, and TreeNode::rightson.
TreeNode* TREE_load | ( | const char * | path, |
TreeRoot * | troot, | ||
char ** | commentPtr, | ||
bool | allow_length_scaling, | ||
char ** | warningPtr | ||
) |
Definition at line 620 of file TreeRead.cxx.
References 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(), TreeReader::get_warnings(), TreeNode::is_leaf(), TreeReader::load(), name_only(), NULp, TreeReader::takeComment(), tree, tree_assert, and TREE_scale().
Referenced by ARB_main(), build_consensus_tree(), main(), and TREE_load_to_db().
Definition at line 701 of file TreeRead.cxx.
References GB_transaction::close(), destroy(), error(), GB_await_error(), GBT_message(), GBT_write_tree_with_remark(), NULp, ta, TREE_load(), and warnings.
Referenced by calc_pvp(), and tree_load_cb().