ARB
Classes | Macros | Typedefs | Enumerations | Functions
NT_taxonomy.cxx File Reference
#include "ad_trees.h"
#include "NT_local.h"
#include <aw_window.hxx>
#include <aw_root.hxx>
#include <aw_awar.hxx>
#include <aw_msg.hxx>
#include <awt_sel_boxes.hxx>
#include <TreeCallbacks.hxx>
#include <TreeAdmin.h>
#include <arb_progress.h>
#include <arb_global_defs.h>
#include <item_sel_list.h>
#include <set>
#include <map>
Include dependency graph for NT_taxonomy.cxx:

Go to the source code of this file.

Classes

class  SpeciesInTwoTrees
 

Macros

#define TREE_COMPARE_PREFIX   "ad_tree/compare/"
 
#define AWAR_TREE_COMPARE_ACTION   TREE_COMPARE_PREFIX "action"
 
#define AWAR_TREE_COMPARE_MIN_TAX_LEVELS   TREE_COMPARE_PREFIX "taxdist"
 
#define AWAR_TREE_COMPARE_WRITE_FIELD   TREE_COMPARE_PREFIX "field"
 

Typedefs

typedef std::set< const char
*, charpLess
NameSet
 
typedef std::map< const char
*, SpeciesInTwoTrees,
charpLess
TwoTreeMap
 

Enumerations

enum  Action { UNMARK = 0, MARK = 1, INVERT = 2 }
 
enum  Target {
  ALL, TAX, COMMON, MISSING_LEFT,
  MISSING_RIGHT
}
 

Functions

static TreeNodefindParentGroup (TreeNode *node)
 
static int countTaxLevel (TreeNode *node)
 
static int calcTaxDifference (TreeNode *g1, TreeNode *g2)
 
static void mapTree (TreeNode *node, TwoTreeMap &tmap, bool first)
 
static void mark_action (AW_window *aws, TREE_canvas *ntw, Target target)
 
void NT_create_compare_taxonomy_awars (AW_root *aw_root, AW_default props)
 
AW_windowNT_create_compare_taxonomy_window (AW_root *aw_root, TREE_canvas *ntw)
 

Macro Definition Documentation

#define TREE_COMPARE_PREFIX   "ad_tree/compare/"

Definition at line 30 of file NT_taxonomy.cxx.

#define AWAR_TREE_COMPARE_ACTION   TREE_COMPARE_PREFIX "action"
#define AWAR_TREE_COMPARE_MIN_TAX_LEVELS   TREE_COMPARE_PREFIX "taxdist"
#define AWAR_TREE_COMPARE_WRITE_FIELD   TREE_COMPARE_PREFIX "field"

Typedef Documentation

typedef std::set<const char *, charpLess> NameSet

Definition at line 171 of file NT_taxonomy.cxx.

typedef std::map<const char *, SpeciesInTwoTrees, charpLess> TwoTreeMap

Definition at line 172 of file NT_taxonomy.cxx.

Enumeration Type Documentation

enum Action
Enumerator
UNMARK 
MARK 
INVERT 

Definition at line 36 of file NT_taxonomy.cxx.

enum Target
Enumerator
ALL 
TAX 
COMMON 
MISSING_LEFT 
MISSING_RIGHT 

Definition at line 42 of file NT_taxonomy.cxx.

Function Documentation

static TreeNode* findParentGroup ( TreeNode node)
static
static int countTaxLevel ( TreeNode node)
static
static int calcTaxDifference ( TreeNode g1,
TreeNode g2 
)
static
static void mapTree ( TreeNode node,
TwoTreeMap tmap,
bool  first 
)
static

Definition at line 174 of file NT_taxonomy.cxx.

References TreeNode::is_leaf(), TreeNode::leftson, TreeNode::name, nt_assert, and TreeNode::rightson.

Referenced by mark_action().

static void mark_action ( AW_window aws,
TREE_canvas ntw,
Target  target 
)
static
void NT_create_compare_taxonomy_awars ( AW_root aw_root,
AW_default  props 
)
AW_window* NT_create_compare_taxonomy_window ( AW_root aw_root,
TREE_canvas ntw 
)