Antkeeper  0.0.1
Classes | Public Types | Protected Member Functions | Protected Attributes | Friends | List of all members
geom::brep_element_container< T > Class Template Reference

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_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...
 
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_mapattributes () const noexcept
 Returns the element attribute map. More...
 
brep_attribute_mapattributes () 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_typeemplace_back ()
 Appends a new element to the end of the container. More...
 

Protected Attributes

brep_meshm_mesh
 

Friends

class brep_mesh
 

Detailed Description

template<class T>
class geom::brep_element_container< T >

Container for B-rep elements.

Template Parameters
TElement type.

Definition at line 37 of file brep-element-container.hpp.

Member Typedef Documentation

◆ const_reverse_iterator

template<class T >
using geom::brep_element_container< T >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 148 of file brep-element-container.hpp.

◆ element_type

template<class T >
using geom::brep_element_container< T >::element_type = T

Definition at line 42 of file brep-element-container.hpp.

Constructor & Destructor Documentation

◆ brep_element_container()

template<class T >
geom::brep_element_container< T >::brep_element_container ( brep_mesh mesh)
inlineexplicitprotectednoexcept

Constructs a B-rep element container.

Parameters
meshPointer to the parent mesh.

Definition at line 275 of file brep-element-container.hpp.

Member Function Documentation

◆ attributes() [1/2]

template<class T >
const brep_attribute_map& geom::brep_element_container< T >::attributes ( ) const
inlinenoexcept

Returns the element attribute map.

Definition at line 255 of file brep-element-container.hpp.

◆ attributes() [2/2]

template<class T >
brep_attribute_map& geom::brep_element_container< T >::attributes ( )
inlinenoexcept

Returns the element attribute map.

Definition at line 259 of file brep-element-container.hpp.

◆ back()

template<class T >
constexpr element_type* geom::brep_element_container< T >::back ( ) const
inlineconstexprnoexcept

Returns the last element.

Definition at line 172 of file brep-element-container.hpp.

◆ begin()

template<class T >
constexpr const_iterator geom::brep_element_container< T >::begin ( ) const
inlineconstexprnoexcept

Returns an iterator to the first element.

Definition at line 183 of file brep-element-container.hpp.

◆ cbegin()

template<class T >
constexpr const_iterator geom::brep_element_container< T >::cbegin ( ) const
inlineconstexprnoexcept

Returns an iterator to the first element.

Definition at line 189 of file brep-element-container.hpp.

◆ cend()

template<class T >
constexpr const_iterator geom::brep_element_container< T >::cend ( ) const
inlineconstexprnoexcept

Returns an iterator to the element following the last element.

Definition at line 203 of file brep-element-container.hpp.

◆ crbegin()

template<class T >
constexpr const_reverse_iterator geom::brep_element_container< T >::crbegin ( ) const
inlineconstexprnoexcept

Returns a reverse iterator to the first element of the reversed container.

Definition at line 215 of file brep-element-container.hpp.

◆ crend()

template<class T >
constexpr const_reverse_iterator geom::brep_element_container< T >::crend ( ) const
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.

◆ emplace_back()

template<class T >
virtual element_type* geom::brep_element_container< T >::emplace_back ( )
inlineprotectedvirtual

Appends a new element to the end of the container.

Returns
Pointer to the new element.

Reimplemented in geom::brep_vertex_container.

Definition at line 307 of file brep-element-container.hpp.

◆ empty()

template<class T >
constexpr bool geom::brep_element_container< T >::empty ( ) const
inlineconstexprnoexcept

Returns true if the container is empty, false otherwise.

Definition at line 238 of file brep-element-container.hpp.

◆ end()

template<class T >
constexpr const_iterator geom::brep_element_container< T >::end ( ) const
inlineconstexprnoexcept

Returns an iterator to the element following the last element.

Definition at line 197 of file brep-element-container.hpp.

◆ erase()

template<class T >
virtual void geom::brep_element_container< T >::erase ( element_type element)
inlineprotectedvirtual

Erases an element from the container.

Parameters
elementPointer 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.

◆ front()

template<class T >
constexpr element_type* geom::brep_element_container< T >::front ( ) const
inlineconstexprnoexcept

Returns the first element.

Definition at line 166 of file brep-element-container.hpp.

◆ operator[]()

template<class T >
constexpr element_type* geom::brep_element_container< T >::operator[] ( std::size_t  i) const
inlineconstexpr

Returns a pointer to the element at the specified index.

Parameters
iIndex of an element.
Returns
Pointer to the element at index i.

Definition at line 160 of file brep-element-container.hpp.

◆ rbegin()

template<class T >
constexpr const_reverse_iterator geom::brep_element_container< T >::rbegin ( ) const
inlineconstexprnoexcept

Returns a reverse iterator to the first element of the reversed container.

Definition at line 211 of file brep-element-container.hpp.

◆ rend()

template<class T >
constexpr const_reverse_iterator geom::brep_element_container< T >::rend ( ) const
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.

◆ size()

template<class T >
constexpr std::size_t geom::brep_element_container< T >::size ( ) const
inlineconstexprnoexcept

Returns the number of elements in the container.

Definition at line 244 of file brep-element-container.hpp.

Friends And Related Function Documentation

◆ brep_mesh

template<class T >
brep_mesh
friend

Definition at line 40 of file brep-element-container.hpp.

Member Data Documentation

◆ m_mesh

template<class T >
brep_mesh* geom::brep_element_container< T >::m_mesh
protected

Definition at line 320 of file brep-element-container.hpp.


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