A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IteratorNodeLinks< LinkType, NodeType, EdgeType > Class Template Reference

#include <genesis/tree/iterator/node_links.hpp>

Detailed Description

template<typename LinkType, typename NodeType, typename EdgeType>
class genesis::tree::IteratorNodeLinks< LinkType, NodeType, EdgeType >

Definition at line 56 of file node_links.hpp.

Public Member Functions

 IteratorNodeLinks ()
 
 IteratorNodeLinks (NodeType &node)
 
 IteratorNodeLinks (LinkType &link)
 
 IteratorNodeLinks (IteratorNodeLinks const &)=default
 
 IteratorNodeLinks (IteratorNodeLinks &&)=default
 
 ~IteratorNodeLinks ()=default
 
EdgeType & edge () const
 
bool is_first_iteration () const
 
LinkType & link () const
 
NodeType & node () const
 
bool operator!= (const self_type &other) const
 
self_type operator* ()
 
self_type operator++ ()
 
self_type operator++ (int)
 
IteratorNodeLinksoperator= (IteratorNodeLinks const &)=default
 
IteratorNodeLinksoperator= (IteratorNodeLinks &&)=default
 
bool operator== (const self_type &other) const
 
LinkType & start_link () const
 

Public Types

using iterator_category = std::forward_iterator_tag
 
using self_type = IteratorNodeLinks< LinkType, NodeType, EdgeType >
 

Constructor & Destructor Documentation

IteratorNodeLinks ( )
inline

Definition at line 72 of file node_links.hpp.

IteratorNodeLinks ( NodeType &  node)
inlineexplicit

Definition at line 77 of file node_links.hpp.

IteratorNodeLinks ( LinkType &  link)
inlineexplicit

Definition at line 82 of file node_links.hpp.

~IteratorNodeLinks ( )
default
IteratorNodeLinks ( IteratorNodeLinks< LinkType, NodeType, EdgeType > const &  )
default
IteratorNodeLinks ( IteratorNodeLinks< LinkType, NodeType, EdgeType > &&  )
default

Member Function Documentation

EdgeType& edge ( ) const
inline

Definition at line 149 of file node_links.hpp.

bool is_first_iteration ( ) const
inline

Definition at line 134 of file node_links.hpp.

LinkType& link ( ) const
inline

Definition at line 139 of file node_links.hpp.

NodeType& node ( ) const
inline

Definition at line 144 of file node_links.hpp.

bool operator!= ( const self_type other) const
inline

Definition at line 125 of file node_links.hpp.

self_type operator* ( )
inline

Definition at line 99 of file node_links.hpp.

self_type operator++ ( )
inline

Definition at line 104 of file node_links.hpp.

self_type operator++ ( int  )
inline

Definition at line 113 of file node_links.hpp.

IteratorNodeLinks& operator= ( IteratorNodeLinks< LinkType, NodeType, EdgeType > const &  )
default
IteratorNodeLinks& operator= ( IteratorNodeLinks< LinkType, NodeType, EdgeType > &&  )
default
bool operator== ( const self_type other) const
inline

Definition at line 120 of file node_links.hpp.

LinkType& start_link ( ) const
inline

Definition at line 154 of file node_links.hpp.

Member Typedef Documentation

using iterator_category = std::forward_iterator_tag

Definition at line 65 of file node_links.hpp.

using self_type = IteratorNodeLinks<LinkType, NodeType, EdgeType>

Definition at line 66 of file node_links.hpp.


The documentation for this class was generated from the following file: