ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for a class that maintains a table of nodes indicating a distance to the root of the tree. More...
#include <jade.tree_path.hpp>
Public Types | |
typedef TValue | value_type |
The value type. More... | |
typedef basic_newick_node< value_type > | node_type |
The Newick node type. More... | |
Public Member Functions | |
basic_tree_path (const node_type &node) | |
Initializes a new instance of the class by computing the set of nodes in the path to the root. The specified node is included in the result, but the root node is not. For example, computing a tree path for node 'D' for the tree, "((B:2,(C:4,D:5)n1:3)n2:1)A;" results in the container (D, n1, n2). More... | |
value_type | get_length () const |
basic_tree_path | operator& (const basic_tree_path &rhs) const |
Computes the overlapped tree path of this instance and another instance. This method returns only the nodes that exist in both containers. More... | |
A template for a class that maintains a table of nodes indicating a distance to the root of the tree.
Definition at line 19 of file jade.tree_path.hpp.
typedef basic_newick_node<value_type> jade::basic_tree_path< TValue >::node_type |
The Newick node type.
Definition at line 26 of file jade.tree_path.hpp.
typedef TValue jade::basic_tree_path< TValue >::value_type |
The value type.
Definition at line 23 of file jade.tree_path.hpp.
|
inlineexplicit |
Initializes a new instance of the class by computing the set of nodes in the path to the root. The specified node is included in the result, but the root node is not. For example, computing a tree path for node 'D' for the tree, "((B:2,(C:4,D:5)n1:3)n2:1)A;" results in the container (D, n1, n2).
node | The node to measure. |
Definition at line 43 of file jade.tree_path.hpp.
|
inline |
Definition at line 59 of file jade.tree_path.hpp.
|
inline |
Computes the overlapped tree path of this instance and another instance. This method returns only the nodes that exist in both containers.
rhs | The other tree path. |
Definition at line 74 of file jade.tree_path.hpp.