|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_TREE_LINK_H_
2 #define GENESIS_TREE_TREE_LINK_H_
130 while( &res->
next() !=
this ) {
133 assert( &res->
next() ==
this );
146 while( &res->
next() !=
this ) {
149 assert( &res->
next() ==
this );
295 #endif // include guard
TreeLink const & prev() const
Return the previous TreeLink within the TreeNode of this link.
TreeLink const & next() const
Return the next TreeLink within the TreeNode of this link.
TreeLink & reset_index(size_t val)
Reset the internal index of this TreeLink.
size_t index() const
Return the index of this Link.
TreeLink & next()
Return the next TreeLink within the TreeNode of this link.
TreeNode & node()
Return the TreeNode of this TreeLink.
TreeLink & reset_edge(TreeEdge *val)
Reset the internal pointer to the TreeEdge of this TreeLink.
TreeLink & operator=(TreeLink const &)=delete
TreeLink & reset_next(TreeLink *val)
Reset the internal pointer to the next TreeLink of this TreeLink.
Class for representing phylogenetic trees.
TreeLink(size_t index, TreeLink *next, TreeLink *outer, TreeNode *node, TreeEdge *edge)
TreeLink const & outer() const
Return the TreeLink of the adjacent TreeNode.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
TreeLink & reset_outer(TreeLink *val)
Reset the internal pointer to the outer TreeLink of this TreeLink.
TreeLink & prev()
Return the previous TreeLink within the TreeNode of this link.
TreeEdge const & edge() const
Return the TreeEdge of this TreeLink.
TreeLink & outer()
Return the TreeLink of the adjacent TreeNode.
TreeEdge & edge()
Return the TreeEdge of this TreeLink.
TreeNode const & node() const
Return the TreeNode of this TreeLink.
TreeLink & reset_node(TreeNode *val)
Reset the internal pointer to the TreeNode of this TreeLink.