CGAL 4.12 - Classification
|
#include <CGAL/Classification/Label_set.h>
Set of Label
used as input by classification algorithms.
Public Member Functions | |
Label_set () | |
Label_handle | add (const char *name) |
Adds a label. More... | |
bool | remove (Label_handle label) |
Removes a label. More... | |
std::size_t | size () const |
Returns how many labels are defined. | |
Label_handle | operator[] (std::size_t i) const |
Returns the \(i^{th}\) label. | |
void | clear () |
Removes all labels. | |
Label_handle CGAL::Classification::Label_set::add | ( | const char * | name | ) |
Adds a label.
name | name of the label. |
bool CGAL::Classification::Label_set::remove | ( | Label_handle | label | ) |
Removes a label.
label | the handle to the label that must be removed. |
true
if the label was correctly removed, false
if its handle was not found.