CGAL 4.12.1 - Classification
|
#include <CGAL/Classification/Feature_set.h>
Set of features (see Feature_base
) used as input by classification algorithms.
This class handles both the instantiation, the addition and the deletion of features.
Public Member Functions | |
Feature_set () | |
template<typename Feature , typename ... T> | |
Feature_handle | add (T &&... t) |
Instantiates a new feature and adds it to the set. More... | |
bool | remove (Feature_handle feature) |
Removes a feature. More... | |
std::size_t | size () const |
Returns how many features are defined. | |
Feature_handle | operator[] (std::size_t i) const |
Returns the \(i^{th}\) feature. | |
void | clear () |
Removes all features. | |
Feature_handle CGAL::Classification::Feature_set::add | ( | T &&... | t | ) |
Instantiates a new feature and adds it to the set.
Feature | type of the feature, inherited from Feature_base . |
T | types of the parameters of the feature's constructor. |
t | parameters of the feature's constructor. |
bool CGAL::Classification::Feature_set::remove | ( | Feature_handle | feature | ) |
Removes a feature.
feature | the handle to feature type that must be removed. |
true
if the feature was correctly removed, false
if its handle was not found.