Antkeeper  0.0.1
Public Types | Public Member Functions | List of all members
geom::brep_attribute< T > Class Template Reference

Per-element B-rep data. More...

#include <brep-attribute.hpp>

Inheritance diagram for geom::brep_attribute< T >:
geom::brep_attribute_base

Public Types

using value_type = T
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = value_type *
 
using const_pointer = const value_type *
 
using iterator = std::vector< value_type >::iterator
 
using const_iterator = std::vector< value_type >::const_iterator
 
using reverse_iterator = std::vector< value_type >::reverse_iterator
 
using const_reverse_iterator = std::vector< value_type >::const_reverse_iterator
 

Public Member Functions

 brep_attribute (hash::fnv1a32_t name, std::size_t element_count)
 Constructs an attribute. More...
 
Attribute access
constexpr const_reference operator[] (std::size_t i) const
 Returns a reference to the attribute value of an element. More...
 
constexpr reference operator[] (std::size_t i)
 Returns a reference to the attribute value of an element. More...
 
constexpr const_reference front () const
 Returns a reference to the attribute value of the first element. More...
 
constexpr reference front ()
 Returns a reference to the attribute value of the first element. More...
 
constexpr const_reference back () const
 Returns a reference to the attribute value of the last element. More...
 
constexpr reference back ()
 Returns a reference to the attribute value of the last element. More...
 
constexpr const value_typedata () const noexcept
 Returns a pointer to the underlying array serving as attribute value storage. More...
 
constexpr value_typedata () noexcept
 Returns a pointer to the underlying array serving as attribute value storage. More...
 
Iterators
constexpr const_iterator begin () const noexcept
 Returns an iterator to the attribute value of the first element. More...
 
constexpr iterator begin () noexcept
 Returns an iterator to the attribute value of the first element. More...
 
constexpr const_iterator cbegin () const noexcept
 Returns an iterator to the attribute value of the first element. More...
 
constexpr const_iterator end () const noexcept
 Returns an iterator to the attribute value of the element following the last element. More...
 
constexpr iterator end () noexcept
 Returns an iterator to the attribute value of the element following the last element. More...
 
constexpr const_iterator cend () const noexcept
 Returns an iterator to the attribute value of the element following the last element. More...
 
constexpr const_reverse_iterator rbegin () const noexcept
 Returns a reverse iterator to the attribute value of the first element of the reversed container. More...
 
constexpr reverse_iterator rbegin () noexcept
 Returns a reverse iterator to the attribute value of the first element of the reversed container. More...
 
constexpr const_reverse_iterator crbegin () const noexcept
 Returns a reverse iterator to the attribute value of the first element of the reversed container. More...
 
constexpr const_reverse_iterator rend () const noexcept
 Returns a reverse iterator to the attribute value of the element following the last element of the reversed container. More...
 
constexpr reverse_iterator rend () noexcept
 Returns a reverse iterator to the attribute value of the element following the last element of the reversed container. More...
 
constexpr const_reverse_iterator crend () const noexcept
 Returns a reverse iterator to the attribute value of 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 attribute values in the container. More...
 
- Public Member Functions inherited from geom::brep_attribute_base
constexpr hash::fnv1a32_t name () const noexcept
 Returns the name of the attribute. More...
 

Additional Inherited Members

- Protected Member Functions inherited from geom::brep_attribute_base
constexpr brep_attribute_base (hash::fnv1a32_t name) noexcept
 

Detailed Description

template<class T>
class geom::brep_attribute< T >

Per-element B-rep data.

Template Parameters
TData type.

Definition at line 75 of file brep-attribute.hpp.

Member Typedef Documentation

◆ const_iterator

template<class T >
using geom::brep_attribute< T >::const_iterator = std::vector<value_type>::const_iterator

Definition at line 84 of file brep-attribute.hpp.

◆ const_pointer

template<class T >
using geom::brep_attribute< T >::const_pointer = const value_type*

Definition at line 82 of file brep-attribute.hpp.

◆ const_reference

template<class T >
using geom::brep_attribute< T >::const_reference = const value_type&

Definition at line 80 of file brep-attribute.hpp.

◆ const_reverse_iterator

template<class T >
using geom::brep_attribute< T >::const_reverse_iterator = std::vector<value_type>::const_reverse_iterator

Definition at line 86 of file brep-attribute.hpp.

◆ iterator

template<class T >
using geom::brep_attribute< T >::iterator = std::vector<value_type>::iterator

Definition at line 83 of file brep-attribute.hpp.

◆ pointer

template<class T >
using geom::brep_attribute< T >::pointer = value_type*

Definition at line 81 of file brep-attribute.hpp.

◆ reference

template<class T >
using geom::brep_attribute< T >::reference = value_type&

Definition at line 79 of file brep-attribute.hpp.

◆ reverse_iterator

template<class T >
using geom::brep_attribute< T >::reverse_iterator = std::vector<value_type>::reverse_iterator

Definition at line 85 of file brep-attribute.hpp.

◆ value_type

template<class T >
using geom::brep_attribute< T >::value_type = T

Definition at line 78 of file brep-attribute.hpp.

Constructor & Destructor Documentation

◆ brep_attribute()

template<class T >
geom::brep_attribute< T >::brep_attribute ( hash::fnv1a32_t  name,
std::size_t  element_count 
)
inline

Constructs an attribute.

Parameters
nameName of the attribute.
element_countNumber of elements.

Definition at line 94 of file brep-attribute.hpp.

Member Function Documentation

◆ back() [1/2]

template<class T >
constexpr reference geom::brep_attribute< T >::back ( )
inlineconstexpr

Returns a reference to the attribute value of the last element.

Definition at line 138 of file brep-attribute.hpp.

◆ back() [2/2]

template<class T >
constexpr const_reference geom::brep_attribute< T >::back ( ) const
inlineconstexpr

Returns a reference to the attribute value of the last element.

Definition at line 134 of file brep-attribute.hpp.

◆ begin() [1/2]

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

Returns an iterator to the attribute value of the first element.

Definition at line 162 of file brep-attribute.hpp.

◆ begin() [2/2]

template<class T >
constexpr iterator geom::brep_attribute< T >::begin ( )
inlineconstexprnoexcept

Returns an iterator to the attribute value of the first element.

Definition at line 166 of file brep-attribute.hpp.

◆ cbegin()

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

Returns an iterator to the attribute value of the first element.

Definition at line 170 of file brep-attribute.hpp.

◆ cend()

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

Returns an iterator to the attribute value of the element following the last element.

Definition at line 186 of file brep-attribute.hpp.

◆ crbegin()

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

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

Definition at line 202 of file brep-attribute.hpp.

◆ crend()

template<class T >
constexpr const_reverse_iterator geom::brep_attribute< T >::crend ( ) const
inlineconstexprnoexcept

Returns a reverse iterator to the attribute value of the element following the last element of the reversed container.

Definition at line 218 of file brep-attribute.hpp.

◆ data() [1/2]

template<class T >
constexpr const value_type* geom::brep_attribute< T >::data ( ) const
inlineconstexprnoexcept

Returns a pointer to the underlying array serving as attribute value storage.

Definition at line 146 of file brep-attribute.hpp.

◆ data() [2/2]

template<class T >
constexpr value_type* geom::brep_attribute< T >::data ( )
inlineconstexprnoexcept

Returns a pointer to the underlying array serving as attribute value storage.

Definition at line 150 of file brep-attribute.hpp.

◆ empty()

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

Returns true if the container is empty, false otherwise.

Definition at line 229 of file brep-attribute.hpp.

◆ end() [1/2]

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

Returns an iterator to the attribute value of the element following the last element.

Definition at line 178 of file brep-attribute.hpp.

◆ end() [2/2]

template<class T >
constexpr iterator geom::brep_attribute< T >::end ( )
inlineconstexprnoexcept

Returns an iterator to the attribute value of the element following the last element.

Definition at line 182 of file brep-attribute.hpp.

◆ front() [1/2]

template<class T >
constexpr reference geom::brep_attribute< T >::front ( )
inlineconstexpr

Returns a reference to the attribute value of the first element.

Definition at line 126 of file brep-attribute.hpp.

◆ front() [2/2]

template<class T >
constexpr const_reference geom::brep_attribute< T >::front ( ) const
inlineconstexpr

Returns a reference to the attribute value of the first element.

Definition at line 122 of file brep-attribute.hpp.

◆ operator[]() [1/2]

template<class T >
constexpr reference geom::brep_attribute< T >::operator[] ( std::size_t  i)
inlineconstexpr

Returns a reference to the attribute value of an element.

Parameters
iIndex of an element.
Returns
Reference to the attribute value of the element at index i.

Definition at line 114 of file brep-attribute.hpp.

◆ operator[]() [2/2]

template<class T >
constexpr const_reference geom::brep_attribute< T >::operator[] ( std::size_t  i) const
inlineconstexpr

Returns a reference to the attribute value of an element.

Parameters
iIndex of an element.
Returns
Reference to the attribute value of the element at index i.

Definition at line 110 of file brep-attribute.hpp.

◆ rbegin() [1/2]

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

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

Definition at line 194 of file brep-attribute.hpp.

◆ rbegin() [2/2]

template<class T >
constexpr reverse_iterator geom::brep_attribute< T >::rbegin ( )
inlineconstexprnoexcept

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

Definition at line 198 of file brep-attribute.hpp.

◆ rend() [1/2]

template<class T >
constexpr const_reverse_iterator geom::brep_attribute< T >::rend ( ) const
inlineconstexprnoexcept

Returns a reverse iterator to the attribute value of the element following the last element of the reversed container.

Definition at line 210 of file brep-attribute.hpp.

◆ rend() [2/2]

template<class T >
constexpr reverse_iterator geom::brep_attribute< T >::rend ( )
inlineconstexprnoexcept

Returns a reverse iterator to the attribute value of the element following the last element of the reversed container.

Definition at line 214 of file brep-attribute.hpp.

◆ size()

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

Returns the number of attribute values in the container.

Definition at line 235 of file brep-attribute.hpp.


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