Antkeeper  0.0.1
Public Member Functions | Friends | List of all members
geom::brep_vertex_container Class Reference

B-rep vertex container. More...

#include <brep-vertex.hpp>

Inheritance diagram for geom::brep_vertex_container:
geom::brep_element_container< brep_vertex >

Public Member Functions

brep_vertexemplace_back () override
 Appends a new vertex to the end of the container. More...
 
void erase (brep_vertex *vertex) override
 Erases a vertex and all dependent edges, loops, and faces. More...
 
void clear () noexcept
 Erases all vertices and their dependent edges, loops, and faces. More...
 
- Public Member Functions inherited from geom::brep_element_container< brep_vertex >
constexpr element_typeoperator[] (std::size_t i) const
 Returns a pointer to the element at the specified index. More...
 
constexpr element_typefront () const noexcept
 Returns the first element. More...
 
constexpr element_typeback () const noexcept
 Returns the last element. More...
 
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...
 
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...
 
const brep_attribute_mapattributes () const noexcept
 Returns the element attribute map. More...
 
brep_attribute_mapattributes () noexcept
 Returns the element attribute map. More...
 

Friends

class brep_mesh
 

Additional Inherited Members

- Public Types inherited from geom::brep_element_container< brep_vertex >
using element_type = brep_vertex
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
- Protected Member Functions inherited from geom::brep_element_container< brep_vertex >
 brep_element_container (brep_mesh *mesh) noexcept
 Constructs a B-rep element container. More...
 
- Protected Attributes inherited from geom::brep_element_container< brep_vertex >
brep_meshm_mesh
 

Detailed Description

B-rep vertex container.

Definition at line 273 of file brep-vertex.hpp.

Member Function Documentation

◆ clear()

void geom::brep_vertex_container::clear ( )
noexcept

Erases all vertices and their dependent edges, loops, and faces.

Definition at line 94 of file brep-vertex.cpp.

◆ emplace_back()

brep_vertex * geom::brep_vertex_container::emplace_back ( )
overridevirtual

Appends a new vertex to the end of the container.

Returns
Pointer to the new vertex.

Reimplemented from geom::brep_element_container< brep_vertex >.

Definition at line 74 of file brep-vertex.cpp.

◆ erase()

void geom::brep_vertex_container::erase ( brep_vertex vertex)
overridevirtual

Erases a vertex and all dependent edges, loops, and faces.

Parameters
vertexPointer to the vertex to erase.
Warning
Invalidates iterators and indices of vertices, edges, loops, and faces.

Reimplemented from geom::brep_element_container< brep_vertex >.

Definition at line 82 of file brep-vertex.cpp.

Friends And Related Function Documentation

◆ brep_mesh

friend class brep_mesh
friend

Definition at line 298 of file brep-vertex.hpp.


The documentation for this class was generated from the following files: