Template Function fwdpp::ts::process_children

Function Documentation

template<typename F>
void fwdpp::ts::process_children(const marginal_tree &m, table_index_t n, bool left_to_right_traversal, const F &f)

Apply a function to children of node n.

Parameters
  • m: A fwdpp::ts::marginal_tree

  • n: Index a fwdpp::ts::node

  • left_to_right_traversal.: If true, traverse children left-to-right. Else, the opposite.

  • f: A function equivalent to void (*process_child)(table_index_t)