CGAL 4.14.3 - Profiling tools, Hash Map, Union-find, Modifiers
|
#include <CGAL/Modifier_base.h>
Modifier_base
is an abstract base class providing the interface for any modifier.
A modifier is a function object derived from Modifier_base
that implements the pure virtual member function operator()
, which accepts a single reference parameter R&
on which the modifier is allowed to work. R
is the type of the internal representation that is to be modified.
Example
The following fragment defines a class A
with an internal representation i
of type int
. It provides a member function delegate()
, which gives a modifier access to the internal variable and checks validity thereafter. The example modifier sets the internal variable to 42. The example function applies the modifier to an instance of class A
.
Types | |
typedef R | Representation |
the internal representation type. | |
Operations | |
virtual void | operator() (R &rep) |
|
virtual |
rep
is a valid representation.