|
fiber
|
A reference to the left side of a DualArrayList. More...
#include <DualArrayList.hpp>
Public Types | |
| using | value_type = DualArrayList<T, N>::value_type |
| using | size_type = DualArrayList<T, N>::size_type |
| using | reference = DualArrayList<T, N>::reference |
| using | const_reference = DualArrayList<T, N>::const_reference |
| using | iterator = DualArrayList<T, N>::left_iterator |
| using | const_iterator = DualArrayList<T, N>::left_const_iterator |
| using | pointer = DualArrayList<T, N>::pointer |
| using | const_pointer = DualArrayList<T, N>::const_pointer |
Public Member Functions | |
| LeftDualArrayListConstRef (const DualArrayList< T, N > &list) | |
| constexpr size_type | size () const |
| returns the size/count of live elements in the container | |
| constexpr size_type | capacity () const |
| returns the capacity of the container. Since this is a statically allocated container this is also the maximal size. | |
| constexpr size_type | max_size () const |
| returns the maximal number of elements that can be stored in the container | |
| constexpr size_type | reserve () const |
| returns the reserve - number of elements that can be stored until the container is full | |
| constexpr bool | empty () const |
| returns true if there are not elements in the container, aka. the container is empty. | |
| constexpr bool | full () const |
| returns true if the container is full and no more elements can be stored in the container | |
| constexpr const_iterator | begin () const |
| returns a const-iterator to the start | |
| constexpr const_iterator | cbegin () const |
| returns a const-iterator to the start | |
| constexpr const_iterator | end () const |
| returns a const-iterator past the end | |
| constexpr const_iterator | cend () const |
| returns a const-iterator past the end | |
| constexpr const T & | front () const |
| returns a const-reference to the first element int the buffer | |
| constexpr const T & | back () const |
| returns a const reference to the last element in the buffer | |
| template<std::integral Int> | |
| constexpr const T & | at (const Int i) const |
| returns a reference to the element at the given position | |
| ArrayList< T, N > | at (const ArrayList< bool, N > &mask) const |
| Masked indexing. | |
| template<std::integral Int> | |
| ArrayList< T, N > | at (const ArrayList< Int, N > &indices) const |
| Inices list indexing. | |
| template<std::integral Int> | |
| constexpr const T & | operator[] (const Int i) const |
| returns a reference to the element at the given position | |
| ArrayList< T, N > | operator[] (const ArrayList< bool, N > &mask) const |
accesses all elements where mask is true | |
| template<std::integral Int> | |
| ArrayList< T, N > | operator[] (const ArrayList< Int, N > &indices) const |
accesses all elements at the given indices | |
| constexpr size_type | to_index (const const_iterator pos) const |
| turns the passed position given by an iterator into an integer | |
| template<std::integral Int> | |
| constexpr const_iterator | to_iterator (const Int pos) const |
| turns the passed unsigned integer into a cosnt_iterator pointing to the same position | |
| template<std::integral Int> | |
| constexpr const_iterator | to_const_iterator (const Int pos) const |
| turns the passed unsigned integer into a cosnt_iterator pointing to the same position | |
| ArrayList< bool, N > | operator! () const |
| Applies the negation (!) operator to all elements and returns it as a bool list. | |
A reference to the left side of a DualArrayList.
| using fiber::LeftDualArrayListConstRef< T, N >::const_iterator = DualArrayList<T, N>::left_const_iterator |
| using fiber::LeftDualArrayListConstRef< T, N >::const_pointer = DualArrayList<T, N>::const_pointer |
| using fiber::LeftDualArrayListConstRef< T, N >::const_reference = DualArrayList<T, N>::const_reference |
| using fiber::LeftDualArrayListConstRef< T, N >::iterator = DualArrayList<T, N>::left_iterator |
| using fiber::LeftDualArrayListConstRef< T, N >::pointer = DualArrayList<T, N>::pointer |
| using fiber::LeftDualArrayListConstRef< T, N >::reference = DualArrayList<T, N>::reference |
| using fiber::LeftDualArrayListConstRef< T, N >::size_type = DualArrayList<T, N>::size_type |
| using fiber::LeftDualArrayListConstRef< T, N >::value_type = DualArrayList<T, N>::value_type |
|
inline |
|
inline |
Masked indexing.
| mask | the mask that selects which elements to get. true will be included, false excluded |
true
|
inline |
Inices list indexing.
| Int | a generic integer |
| indices | a list of indices that should be extracted |
indices
|
inlineconstexpr |
returns a reference to the element at the given position
|
inlineconstexpr |
returns a const reference to the last element in the buffer
|
inlineconstexpr |
returns a const-iterator to the start
|
inlineconstexpr |
returns the capacity of the container. Since this is a statically allocated container this is also the maximal size.
|
inlineconstexpr |
returns a const-iterator to the start
|
inlineconstexpr |
returns a const-iterator past the end
|
inlineconstexpr |
returns true if there are not elements in the container, aka. the container is empty.
|
inlineconstexpr |
returns a const-iterator past the end
|
inlineconstexpr |
returns a const-reference to the first element int the buffer
|
inlineconstexpr |
returns true if the container is full and no more elements can be stored in the container
|
inlineconstexpr |
returns the maximal number of elements that can be stored in the container
|
inline |
Applies the negation (!) operator to all elements and returns it as a bool list.
|
inline |
accesses all elements where mask is true
|
inline |
accesses all elements at the given indices
|
inlineconstexpr |
returns a reference to the element at the given position
|
inlineconstexpr |
returns the reserve - number of elements that can be stored until the container is full
|
inlineconstexpr |
returns the size/count of live elements in the container
|
inlineconstexpr |
turns the passed unsigned integer into a cosnt_iterator pointing to the same position
|
inlineconstexpr |
turns the passed position given by an iterator into an integer
|
inlineconstexpr |
turns the passed unsigned integer into a cosnt_iterator pointing to the same position