Helios++
Helios software for LiDAR simulations
|
Wrapper for trees belonging to a StaticGrove so for-each loop can be used. More...
#include <GroveTreeWrapper.h>
Public Member Functions | |
GroveTreeWrapper (StaticGrove< Tree > &grove, size_t const index) | |
Build a wrapper for the tree at given index. More... | |
GroveTreeWrapper | operator++ () |
Incremental operator to handle forward iterations in for-each loops. | |
bool | operator!= (GroveTreeWrapper const &b) const |
Comparison operator to handle last iteration detection in for-each loops. | |
const std::shared_ptr< Tree > | operator* () const |
Operator to obtain the tree corresponding to current for-each loop iteration. | |
Protected Attributes | |
StaticGrove< Tree > & | grove |
The grove where the tree belongs to. | |
size_t | index |
Index of the tree inside the grove. | |
Wrapper for trees belonging to a StaticGrove so for-each loop can be used.
Tree | The type of tree to be wrapped |
GroveTreeWrapper< Tree >::GroveTreeWrapper | ( | StaticGrove< Tree > & | grove, |
size_t const | index | ||
) |
Build a wrapper for the tree at given index.
grove | Grove containing the tree |
index | Index of the tree inside the grove context |