Antkeeper
0.0.1
|
Per-element B-rep data. More...
#include <brep-attribute.hpp>
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_type * | data () const noexcept |
Returns a pointer to the underlying array serving as attribute value storage. More... | |
constexpr value_type * | data () 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... | |
![]() | |
constexpr hash::fnv1a32_t | name () const noexcept |
Returns the name of the attribute. More... | |
Additional Inherited Members | |
![]() | |
constexpr | brep_attribute_base (hash::fnv1a32_t name) noexcept |
Per-element B-rep data.
T | Data type. |
Definition at line 75 of file brep-attribute.hpp.
using geom::brep_attribute< T >::const_iterator = std::vector<value_type>::const_iterator |
Definition at line 84 of file brep-attribute.hpp.
using geom::brep_attribute< T >::const_pointer = const value_type* |
Definition at line 82 of file brep-attribute.hpp.
using geom::brep_attribute< T >::const_reference = const value_type& |
Definition at line 80 of file brep-attribute.hpp.
using geom::brep_attribute< T >::const_reverse_iterator = std::vector<value_type>::const_reverse_iterator |
Definition at line 86 of file brep-attribute.hpp.
using geom::brep_attribute< T >::iterator = std::vector<value_type>::iterator |
Definition at line 83 of file brep-attribute.hpp.
using geom::brep_attribute< T >::pointer = value_type* |
Definition at line 81 of file brep-attribute.hpp.
using geom::brep_attribute< T >::reference = value_type& |
Definition at line 79 of file brep-attribute.hpp.
using geom::brep_attribute< T >::reverse_iterator = std::vector<value_type>::reverse_iterator |
Definition at line 85 of file brep-attribute.hpp.
using geom::brep_attribute< T >::value_type = T |
Definition at line 78 of file brep-attribute.hpp.
|
inline |
Constructs an attribute.
name | Name of the attribute. |
element_count | Number of elements. |
Definition at line 94 of file brep-attribute.hpp.
|
inlineconstexpr |
Returns a reference to the attribute value of the last element.
Definition at line 138 of file brep-attribute.hpp.
|
inlineconstexpr |
Returns a reference to the attribute value of the last element.
Definition at line 134 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the attribute value of the first element.
Definition at line 162 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the attribute value of the first element.
Definition at line 166 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the attribute value of the first element.
Definition at line 170 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the attribute value of the element following the last element.
Definition at line 186 of file brep-attribute.hpp.
|
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.
|
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.
|
inlineconstexprnoexcept |
Returns a pointer to the underlying array serving as attribute value storage.
Definition at line 146 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns a pointer to the underlying array serving as attribute value storage.
Definition at line 150 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns true
if the container is empty, false
otherwise.
Definition at line 229 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the attribute value of the element following the last element.
Definition at line 178 of file brep-attribute.hpp.
|
inlineconstexprnoexcept |
Returns an iterator to the attribute value of the element following the last element.
Definition at line 182 of file brep-attribute.hpp.
|
inlineconstexpr |
Returns a reference to the attribute value of the first element.
Definition at line 126 of file brep-attribute.hpp.
|
inlineconstexpr |
Returns a reference to the attribute value of the first element.
Definition at line 122 of file brep-attribute.hpp.
|
inlineconstexpr |
Returns a reference to the attribute value of an element.
i | Index of an element. |
i
. Definition at line 114 of file brep-attribute.hpp.
|
inlineconstexpr |
Returns a reference to the attribute value of an element.
i | Index of an element. |
i
. Definition at line 110 of file brep-attribute.hpp.
|
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.
|
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.
|
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.
|
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.
|
inlineconstexprnoexcept |
Returns the number of attribute values in the container.
Definition at line 235 of file brep-attribute.hpp.