Class child_iterator¶
Defined in File children.hpp
Class Documentation¶
-
class
fwdpp::ts::child_iterator¶ Faciliate traversal of a node’s children.
Public Functions
-
child_iterator(const marginal_tree &m, table_index_t n, bool left_to_right_traversal)¶ - Parameters
n: Index of a fwdpp::ts::nodeleft_to_right_traversal.: Iftrue, traverse children left-to-right. Else, the opposite.
-
table_index_t
operator()()¶ Advance to the next child.
Returns fwdpp::ts::NULL_INDEX when no more children remain.
-