template<class Model, class Weighted_atom, class Weight_functor>
class ESBTL::Weighted_atom_iterator< Model, Weighted_atom, Weight_functor >
Class providing an iterator over atoms of a model that returns a weighted point when dereferencing. This is particularly useful when using CGAL and its algorithms working on weighted points.
- Template Parameters:
-
Model | is the type of model used. |
Weighted_atom | is the weighted point type returned. |
Weight_functor | is a function object which operator() associate a radius to an atom (as Weight_of_atoms for example.) |
An alternative to this class is to use the class boost::transform_iterator, provided your function object does not need only information available at compile time.