#include <CGAL/Classification/Label_set.h>
Set of Label used as input by classification algorithms.
◆ Label_set() [1/2]
| CGAL::Classification::Label_set::Label_set |
( |
| ) |
|
◆ Label_set() [2/2]
| CGAL::Classification::Label_set::Label_set |
( |
const std::initializer_list< const char * > & |
labels | ) |
|
Initializes the set with the provided labels names.
◆ add()
| Label_handle CGAL::Classification::Label_set::add |
( |
const char * |
name | ) |
|
Adds a label.
- Note
- Names are not used for identification: two labels in the same set can have the same name (but not the same handle).
- Parameters
-
- Returns
- a handle to the newly added label.
◆ clear()
| void CGAL::Classification::Label_set::clear |
( |
| ) |
|
◆ operator[]()
| Label_handle CGAL::Classification::Label_set::operator[] |
( |
std::size_t |
i | ) |
const |
Returns the \(i^{th}\) label.
◆ remove()
| bool CGAL::Classification::Label_set::remove |
( |
Label_handle |
label | ) |
|
Removes a label.
- Parameters
-
| label | the handle to the label that must be removed. |
- Returns
true if the label was correctly removed, false if its handle was not found.
◆ size()
| std::size_t CGAL::Classification::Label_set::size |
( |
| ) |
const |
Returns how many labels are defined.