Class root_iterator

Class Documentation

class fwdpp::ts::root_iterator

Allows iteration over tree roots

Note

Tied to lifetime of a marginal_tree.

Public Functions

root_iterator(const marginal_tree &m)
table_index_t operator()()

Return

The next root notde NULL_INDEX signals end of iteration

template<typename F>
bool operator()(const F &f)

Apply a function to all roots

Return

true if there are more roots to iterate over, false otherwise.