#include <PhyloTree.h>
Public Member Functions | |
| const T & | back () const |
| T & | back () |
| void | clear () |
| double | getHeight (node_id_t nodeI) const |
| Determines the height of the tree along the path from nodeI to its left-most descendant leaf node. | |
| double | getHeight () const |
| Determines the height of the tree along the path from the root to the left-most leaf node. | |
| PhyloTree< T > & | operator= (const PhyloTree< T > &pt) |
| const T & | operator[] (const unsigned i) const |
| T & | operator[] (const unsigned i) |
| PhyloTree (const PhyloTree< T > &pt) | |
| PhyloTree () | |
| void | push_back (T &t) |
| void | readTree (std::istream &tree_file) |
| Reads a tree in Newick format. | |
| void | resize (const unsigned s) |
| size_t | size () const |
| void | swap (PhyloTree< T > &other) |
| void | writeTree (std::ostream &os) const |
| Writes a tree in Newick format. | |
| ~PhyloTree () | |
Public Attributes | |
| std::vector< T > | nodes |
| nodes of the tree | |
| node_id_t | root |
| root of the tree | |
| double | weight |
| Overall tree weight. | |
|
|||||||||
|
Definition at line 75 of file PhyloTree.h. References PhyloTree< T >::root. |
|
||||||||||
|
Definition at line 82 of file PhyloTree.h. |
|
|||||||||
|
Definition at line 98 of file PhyloTree.h. |
|
|||||||||
|
Definition at line 60 of file PhyloTree.h. |
|
|||||||||
|
Definition at line 59 of file PhyloTree.h. |
|
|||||||||
|
Definition at line 102 of file PhyloTree.h. References PhyloTree< T >::nodes, and PhyloTree< T >::root. Referenced by PhyloTree< T >::readTree(). |
|
||||||||||
|
Determines the height of the tree along the path from nodeI to its left-most descendant leaf node.
Definition at line 321 of file PhyloTree.h. References PhyloTree< T >::getHeight(). |
|
|||||||||
|
Determines the height of the tree along the path from the root to the left-most leaf node.
Definition at line 315 of file PhyloTree.h. References PhyloTree< T >::root. Referenced by PhyloTree< T >::getHeight(). |
|
||||||||||
|
Definition at line 89 of file PhyloTree.h. References PhyloTree< T >::nodes, PhyloTree< T >::root, and PhyloTree< T >::weight. |
|
||||||||||
|
Definition at line 56 of file PhyloTree.h. |
|
||||||||||
|
Definition at line 55 of file PhyloTree.h. |
|
||||||||||
|
Definition at line 58 of file PhyloTree.h. |
|
||||||||||
|
Reads a tree in Newick format. WARNING: only reads rooted trees correctly < read_state of 0 indicates nothing has been parsed yet Definition at line 115 of file PhyloTree.h. References PhyloTree< T >::clear(), node_id_t, PhyloTree< T >::nodes, and uint. |
|
||||||||||
|
Definition at line 61 of file PhyloTree.h. |
|
|||||||||
|
Definition at line 57 of file PhyloTree.h. Referenced by PhyloTree< T >::writeTree(). |
|
||||||||||
|
Definition at line 64 of file PhyloTree.h. Referenced by std::swap(). |
|
||||||||||
|
Writes a tree in Newick format.
Definition at line 256 of file PhyloTree.h. References node_id_t, PhyloTree< T >::root, and PhyloTree< T >::size(). |
|
|||||
|
nodes of the tree
Definition at line 36 of file PhyloTree.h. Referenced by PhyloTree< T >::clear(), PhyloTree< T >::operator=(), PhyloTree< T >::readTree(), and PhyloTree< AlignmentTreeNode >::swap(). |
|
|||||
|
root of the tree
Definition at line 35 of file PhyloTree.h. Referenced by PhyloTree< T >::clear(), PhyloTree< T >::getHeight(), PhyloTree< T >::operator=(), PhyloTree< T >::PhyloTree(), PhyloTree< AlignmentTreeNode >::swap(), and PhyloTree< T >::writeTree(). |
|
|||||
|
Overall tree weight.
Definition at line 34 of file PhyloTree.h. Referenced by PhyloTree< T >::operator=(), and PhyloTree< AlignmentTreeNode >::swap(). |
1.3.6