Maps names to B-rep attributes.
More...
#include <brep-attribute-map.hpp>
Maps names to B-rep attributes.
Definition at line 37 of file brep-attribute-map.hpp.
◆ const_iterator
◆ iterator
◆ at() [1/2]
Returns a reference to the attribute with the given name.
If no such attribute exists, an exception of type std::out_of_range is thrown.
- Template Parameters
-
- Returns
- Reference to the attribute with the given name.
@except std::out_of_range B-rep attribute not found.
Definition at line 324 of file brep-attribute-map.hpp.
◆ at() [2/2]
Returns a reference to the attribute with the given name.
If no such attribute exists, an exception of type std::out_of_range is thrown.
- Template Parameters
-
- Returns
- Reference to the attribute with the given name.
@except std::out_of_range B-rep attribute not found.
Definition at line 313 of file brep-attribute-map.hpp.
◆ begin() [1/2]
◆ begin() [2/2]
iterator geom::brep_attribute_map::begin |
( |
| ) |
|
|
inlinenoexcept |
◆ cbegin()
◆ cend()
◆ clear()
void geom::brep_attribute_map::clear |
( |
| ) |
|
|
inlinenoexcept |
◆ contains()
Checks if there is an attribute with a given name in the container.
- Parameters
-
- Returns
true
if an attribute with the given name was found, false
otherwise.
Definition at line 365 of file brep-attribute-map.hpp.
◆ emplace()
Constructs a new attribute.
If an attribute with the given name exists, it will be replaced.
- Template Parameters
-
- Parameters
-
name | Name of the new attribute. |
- Returns
- Iterator to the new attribute.
Definition at line 230 of file brep-attribute-map.hpp.
◆ empty()
bool geom::brep_attribute_map::empty |
( |
| ) |
const |
|
inlinenoexcept |
◆ end() [1/2]
◆ end() [2/2]
iterator geom::brep_attribute_map::end |
( |
| ) |
|
|
inlinenoexcept |
◆ erase() [1/2]
Removes an attribute from the container.
- Parameters
-
name | Name of the attribute to remove. |
- Returns
- Number of attributes removed (0 or 1).
Definition at line 268 of file brep-attribute-map.hpp.
◆ erase() [2/2]
Removes an attribute from the container.
- Parameters
-
pos | Iterator to the attribute to remove. |
- Returns
- Iterator following the erased attribute.
Definition at line 254 of file brep-attribute-map.hpp.
◆ find() [1/2]
Finds an attribute with the given name.
- Parameters
-
name | Name of an attribute. |
- Returns
- Iterator to the attribute with the given name. If no such attribute is found, an end iterator is returned.
Definition at line 350 of file brep-attribute-map.hpp.
◆ find() [2/2]
Finds an attribute with the given name.
- Parameters
-
name | Name of an attribute. |
- Returns
- Iterator to the attribute with the given name. If no such attribute is found, an end iterator is returned.
Definition at line 344 of file brep-attribute-map.hpp.
◆ size()
std::size_t geom::brep_attribute_map::size |
( |
| ) |
const |
|
inlinenoexcept |
◆ try_emplace()
Constructs a new attribute if an attribute with the given name does not exist.
- Template Parameters
-
- Parameters
-
name | Name of the new attribute. |
- Returns
- Pair consisting of an iterator to the new or pre-existing attribute, and a Boolean value that's
true
if the new attribute was constructed, or false
if an attribute with the given name pre-existed.
Definition at line 283 of file brep-attribute-map.hpp.
◆ brep_element_container
◆ brep_mesh
The documentation for this class was generated from the following file: