ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for a class that maintains a list of paths from all leaf nodes to the rerooted node with the name "0". More...
#include <jade.rerooted_tree.hpp>
Public Types | |
typedef TValue | value_type |
The value type. More... | |
typedef basic_tree_path< value_type > | path_type |
The tree path type. More... | |
typedef basic_newick_node< value_type > | node_type |
The Newick node type. More... | |
typedef std::unique_ptr< node_type > | node_ptr_type |
The Newick node pointer type. More... | |
typedef std::vector< path_type > | vector_type |
The tree path vector type. More... | |
Public Member Functions | |
basic_rerooted_tree () | |
Initialize a new instance of the class. More... | |
basic_rerooted_tree (const node_type &node) | |
Initialize a new instance of the class. More... | |
size_t | get_rk () const |
path_type | get_overlap (const size_t node1, const size_t node2) const |
const path_type & | get_path (const size_t index) const |
node_type & | get_tree () |
const node_type & | get_tree () const |
void | reset (const node_type &node) |
Resets the tree maintained by this instance. More... | |
A template for a class that maintains a list of paths from all leaf nodes to the rerooted node with the name "0".
Definition at line 19 of file jade.rerooted_tree.hpp.
typedef std::unique_ptr<node_type> jade::basic_rerooted_tree< TValue >::node_ptr_type |
The Newick node pointer type.
Definition at line 32 of file jade.rerooted_tree.hpp.
typedef basic_newick_node<value_type> jade::basic_rerooted_tree< TValue >::node_type |
The Newick node type.
Definition at line 29 of file jade.rerooted_tree.hpp.
typedef basic_tree_path<value_type> jade::basic_rerooted_tree< TValue >::path_type |
The tree path type.
Definition at line 26 of file jade.rerooted_tree.hpp.
typedef TValue jade::basic_rerooted_tree< TValue >::value_type |
The value type.
Definition at line 23 of file jade.rerooted_tree.hpp.
typedef std::vector<path_type> jade::basic_rerooted_tree< TValue >::vector_type |
The tree path vector type.
Definition at line 35 of file jade.rerooted_tree.hpp.
|
inline |
Initialize a new instance of the class.
Definition at line 40 of file jade.rerooted_tree.hpp.
|
inlineexplicit |
Initialize a new instance of the class.
node | The node to validate and reroot. |
Definition at line 50 of file jade.rerooted_tree.hpp.
|
inline |
node1 | The first node. |
node2 | The second node. |
Definition at line 84 of file jade.rerooted_tree.hpp.
|
inline |
index | The index of the node. |
Definition at line 96 of file jade.rerooted_tree.hpp.
|
inline |
Definition at line 76 of file jade.rerooted_tree.hpp.
|
inline |
Definition at line 107 of file jade.rerooted_tree.hpp.
|
inline |
Definition at line 115 of file jade.rerooted_tree.hpp.
|
inline |
Resets the tree maintained by this instance.
node | The node to validate and reroot. |
Definition at line 123 of file jade.rerooted_tree.hpp.