2 #include "typedefs.hpp" 5 #ifndef H_PRUNER_TREEITERATOR_BONES 6 #define H_PRUNER_TREEITERATOR_BONES 8 template <
typename Data_Type>
11 template <
typename Data_Type =
bool>
17 uint pos_in_pruning_sequence;
19 friend class Tree<Data_Type>;
31 v_uint::const_iterator
end_off()
const;
37 v_uint::const_iterator
end_par()
const;
52 uint
id()
const {
return current_node;};
60 uint operator*()
const {
return current_node;};
v_uint::const_iterator end_par() const
End of parents const_iterator on the current node.
Definition: treeiterator_meat.hpp:39
int down()
Sets the current_node to the previous value as specified in Tree::POSTORDER.
Definition: treeiterator_meat.hpp:62
v_uint::const_iterator begin_off() const
Begin of offpring const_iterator on the current node.
Definition: treeiterator_meat.hpp:18
bool is_root() const
Check whether the current node is root.
Definition: treeiterator_meat.hpp:104
int n_offspring() const
Return the number of offsprings the current node has.
Definition: treeiterator_meat.hpp:94
Tree class.
Definition: tree_bones.hpp:36
bool is_tip() const
Checks whether the current node is a tip (leaf) or not.
Definition: treeiterator_meat.hpp:109
int up()
Sets the current_node to the next value as specified in Tree::POSTORDER.
Definition: treeiterator_meat.hpp:49
Definition: treeiterator_bones.hpp:12
int n_parents() const
Return the number of parents the current node has.
Definition: treeiterator_meat.hpp:99
uint id() const
Returns the id (index) of the current node.
Definition: treeiterator_bones.hpp:52
v_uint::const_iterator end_off() const
End of offpring const_iterator on the current node.
Definition: treeiterator_meat.hpp:25
v_uint::const_iterator begin_par() const
Begin of parents const_iterator on the current node.
Definition: treeiterator_meat.hpp:32