1 #ifndef _GROVE_TREE_WRAPPER_H_
2 #define _GROVE_TREE_WRAPPER_H_
16 template <
typename Tree>
62 #include <GroveTreeWrapper.tpp>
Wrapper for trees belonging to a StaticGrove so for-each loop can be used.
Definition: GroveTreeWrapper.h:17
StaticGrove< Tree > & grove
The grove where the tree belongs to.
Definition: GroveTreeWrapper.h:24
GroveTreeWrapper operator++()
Incremental operator to handle forward iterations in for-each loops.
const std::shared_ptr< Tree > operator*() const
Operator to obtain the tree corresponding to current for-each loop iteration.
size_t index
Index of the tree inside the grove.
Definition: GroveTreeWrapper.h:28
GroveTreeWrapper(StaticGrove< Tree > &grove, size_t const index)
Build a wrapper for the tree at given index.
bool operator!=(GroveTreeWrapper const &b) const
Comparison operator to handle last iteration detection in for-each loops.
A StaticGrove is an abstract class which declares methods to handle a set of trees.
Definition: StaticGrove.h:68