Antkeeper
0.0.1
|
Container for B-rep elements. More...
#include <brep-element-container.hpp>
Classes | |
struct | const_iterator |
Public Types | |
using | element_type = T |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
Public Member Functions | |
Element access | |
constexpr element_type * | operator[] (std::size_t i) const |
Returns a pointer to the element at the specified index. More... | |
constexpr element_type * | front () const noexcept |
Returns the first element. More... | |
constexpr element_type * | back () const noexcept |
Returns the last element. More... | |
Iterators | |
constexpr const_iterator | begin () const noexcept |
Returns an iterator to the first element. More... | |
constexpr const_iterator | cbegin () const noexcept |
Returns an iterator to the first element. More... | |
constexpr const_iterator | end () const noexcept |
Returns an iterator to the element following the last element. More... | |
constexpr const_iterator | cend () const noexcept |
Returns an iterator to the element following the last element. More... | |
constexpr const_reverse_iterator | rbegin () const noexcept |
Returns a reverse iterator to the first element of the reversed container. More... | |
constexpr const_reverse_iterator | crbegin () const noexcept |
Returns a reverse iterator to the first element of the reversed container. More... | |
constexpr const_reverse_iterator | rend () const noexcept |
Returns a reverse iterator to the element following the last element of the reversed container. More... | |
constexpr const_reverse_iterator | crend () const noexcept |
Returns a reverse iterator to the element following the last element of the reversed container. More... | |
Capacity | |
constexpr bool | empty () const noexcept |
Returns true if the container is empty, false otherwise. More... | |
constexpr std::size_t | size () const noexcept |
Returns the number of elements in the container. More... | |
Attributes | |
const brep_attribute_map & | attributes () const noexcept |
Returns the element attribute map. More... | |
brep_attribute_map & | attributes () noexcept |
Returns the element attribute map. More... | |
Protected Member Functions | |
brep_element_container (brep_mesh *mesh) noexcept | |
Constructs a B-rep element container. More... | |
Modifiers | |
virtual void | erase (element_type *element) |
Erases an element from the container. More... | |
virtual element_type * | emplace_back () |
Appends a new element to the end of the container. More... | |
Protected Attributes | |
brep_mesh * | m_mesh |
Friends | |
class | brep_mesh |
Container for B-rep elements.
T | Element type. |
Definition at line 37 of file brep-element-container.hpp.
using geom::brep_element_container< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 148 of file brep-element-container.hpp.
using geom::brep_element_container< T >::element_type = T |
Definition at line 42 of file brep-element-container.hpp.
|
inlineexplicitprotectednoexcept |
Constructs a B-rep element container.
mesh | Pointer to the parent mesh. |
Definition at line 275 of file brep-element-container.hpp.
|
inlinenoexcept |
Returns the element attribute map.
Definition at line 255 of file brep-element-container.hpp.
|
inlinenoexcept |
Returns the element attribute map.
Definition at line 259 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns the last element.
Definition at line 172 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the first element.
Definition at line 183 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the first element.
Definition at line 189 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the element following the last element.
Definition at line 203 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns a reverse iterator to the first element of the reversed container.
Definition at line 215 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns a reverse iterator to the element following the last element of the reversed container.
Definition at line 227 of file brep-element-container.hpp.
|
inlineprotectedvirtual |
Appends a new element to the end of the container.
Reimplemented in geom::brep_vertex_container.
Definition at line 307 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns true
if the container is empty, false
otherwise.
Definition at line 238 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the element following the last element.
Definition at line 197 of file brep-element-container.hpp.
|
inlineprotectedvirtual |
Erases an element from the container.
element | Pointer to the element to erase. |
Reimplemented in geom::brep_vertex_container, geom::brep_face_container, and geom::brep_edge_container.
Definition at line 287 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns the first element.
Definition at line 166 of file brep-element-container.hpp.
|
inlineconstexpr |
Returns a pointer to the element at the specified index.
i | Index of an element. |
i
. Definition at line 160 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns a reverse iterator to the first element of the reversed container.
Definition at line 211 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns a reverse iterator to the element following the last element of the reversed container.
Definition at line 223 of file brep-element-container.hpp.
|
inlineconstexprnoexcept |
Returns the number of elements in the container.
Definition at line 244 of file brep-element-container.hpp.
|
friend |
Definition at line 40 of file brep-element-container.hpp.
|
protected |
Definition at line 320 of file brep-element-container.hpp.