|
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 | |
| LeftDualArrayListRef (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 iterator | begin () |
| returns an iterator to the start | |
| 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 iterator | end () |
| returns an iterator past the end | |
| 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 T & | front () |
| returns a reference to the first element in the buffer | |
| constexpr const T & | front () const |
| returns a const-reference to the first element int the buffer | |
| constexpr T & | back () |
| returns a reference to the last element in the buffer | |
| constexpr const T & | back () const |
| returns a const reference to the last element in the buffer | |
| template<std::integral Int> | |
| constexpr T & | at (const Int i) |
| returns a reference to the element at the given position | |
| 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 T & | operator[] (const Int i) |
| returns a reference to the element at the given position | |
| 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 | |
| template<class... Args> | |
| T & | emplace_back (Args &&... args) |
| emplaces (aka. pushes) an element to the back of the list | |
| void | clear () |
| clears the list - destructs all members if necessary and sets the size to zero | |
| void | append (const size_type count, const T &value) |
appends value count many times | |
| void | assign (const size_type count, const T &value) |
| assigns a value to the list. after which value is the only element in the list | |
| template<std::forward_iterator Itr> | |
| void | append (Itr first, Itr last) |
| appends a range defined by foreward iterators using the closed-open principle [first, last) | |
| template<std::forward_iterator Itr> | |
| void | assign (Itr first, Itr last) |
| assigns a range defined by foreward iterators using the closed-open principle [first, last). After the assignment the list has the size of the assigned range | |
| void | append (std::initializer_list< T > ilist) |
| appens an initilizer_list | |
| void | assign (std::initializer_list< T > ilist) |
| assigns an initializer_list | |
| template<std::ranges::forward_range Range> | |
| void | append (const Range &range) |
| Appends the content of a range. | |
| template<std::ranges::forward_range Range> | |
| void | assign (const Range &range) |
| Assigns the content of a range. | |
| 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 iterator | to_iterator (const Int pos) |
| turns the passed unsigned integer into an iterator pointing to the same position | |
| 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 | |
| constexpr iterator | unconst (const const_iterator pos) |
| removes the constnes of an iterator if the user has access to the mutable (un-const) container | |
| iterator | insert (const const_iterator pos, const T &value) |
| Inserts a value. | |
| iterator | insert (const const_iterator pos, T &&value) |
| Inserts a value. | |
| template<std::forward_iterator Itr> | |
| iterator | insert (const const_iterator pos, Itr first, Itr last) |
| inserts a range at a given position | |
| template<std::ranges::forward_range Range> | |
| iterator | insert (const const_iterator pos, const Range &range) |
| inserts a range at the given position | |
| iterator | insert (const const_iterator pos, const std::initializer_list< T > &ilist) |
| template<std::integral Int> | |
| iterator | insert (const Int pos, const T &value) |
inserts the value at the position passed as an integer that wraps if it is a signed type | |
| template<std::integral Int> | |
| iterator | insert (const Int pos, T &&value) |
inserts the value at the position passed as an integer that wraps if it is a signed type | |
| template<std::integral Int, std::ranges::forward_range Range> | |
| iterator | insert (const Int pos, const Range &range) |
inserts the range at the position passed as an integer that wraps if it is a signed type | |
| template<std::integral Int> | |
| iterator | insert (const Int pos, const std::initializer_list< T > &ilist) |
| template<std::integral Int, std::forward_iterator Itr> | |
| iterator | insert (const Int pos, Itr first, Itr last) |
inserts the closed-open [first, last) range at the given position | |
| iterator | erase (const_iterator cpos) |
erases/removes the element at the position pointed to by cpos | |
| template<std::integral Int> | |
| iterator | erase (const Int pos) |
erases/removes the element at the position pointed to by cpos | |
| iterator | erase (const_iterator first, const_iterator last) |
| erases/removes the range given by the closed-open iterators [first, last) | |
| template<class Callable> | |
| std::size_t | erase_if (Callable &&f) |
| erases elements from the list if they satisfy the callable | |
| template<std::integral Int> | |
| iterator | erase (Int first, Int last) |
| erases/removes the range given by the closed-open indices [first, last) | |
| void | pop_back () |
| removes and destructs the last element | |
| ArrayList< bool, N > | operator! () const |
| Applies the negation (!) operator to all elements and returns it as a bool list. | |
| template<class Function> | |
| constexpr void | for_each (Function &&function) |
| Applies the function to each element of the list in-place. | |
A reference to the left side of a DualArrayList.
| using fiber::LeftDualArrayListRef< T, N >::const_iterator = DualArrayList<T, N>::left_const_iterator |
| using fiber::LeftDualArrayListRef< T, N >::const_pointer = DualArrayList<T, N>::const_pointer |
| using fiber::LeftDualArrayListRef< T, N >::const_reference = DualArrayList<T, N>::const_reference |
| using fiber::LeftDualArrayListRef< T, N >::iterator = DualArrayList<T, N>::left_iterator |
| using fiber::LeftDualArrayListRef< T, N >::pointer = DualArrayList<T, N>::pointer |
| using fiber::LeftDualArrayListRef< T, N >::reference = DualArrayList<T, N>::reference |
| using fiber::LeftDualArrayListRef< T, N >::size_type = DualArrayList<T, N>::size_type |
| using fiber::LeftDualArrayListRef< T, N >::value_type = DualArrayList<T, N>::value_type |
|
inline |
|
inline |
Appends the content of a range.
|
inline |
appends value count many times
| count | how often value should be emplaced_back() |
| value | the value to be created |
|
inline |
appends a range defined by foreward iterators using the closed-open principle [first, last)
|
inline |
appens an initilizer_list
|
inline |
Assigns the content of a range.
|
inline |
assigns a value to the list. after which value is the only element in the list
|
inline |
assigns a range defined by foreward iterators using the closed-open principle [first, last). After the assignment the list has the size of the assigned range
|
inline |
assigns an initializer_list
|
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 reference to the element at the given position
|
inlineconstexpr |
returns a reference to the last element in the buffer
|
inlineconstexpr |
returns a const reference to the last element in the buffer
|
inlineconstexpr |
returns an iterator to the start
|
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
|
inline |
clears the list - destructs all members if necessary and sets the size to zero
|
inline |
emplaces (aka. pushes) an element to the back of the list
Actually constructs an element in place
| ...Args | list of parameters that correspond to a constructor of the value type of the list |
| ...args | list of arguments to construct a value of the list |
|
inlineconstexpr |
returns true if there are not elements in the container, aka. the container is empty.
|
inlineconstexpr |
returns an iterator past the end
|
inlineconstexpr |
returns a const-iterator past the end
|
inline |
erases/removes the element at the position pointed to by cpos
does not perform out of bounds checks
|
inline |
erases/removes the element at the position pointed to by cpos
does not perform out of bounds checks
|
inline |
erases/removes the range given by the closed-open iterators [first, last)
does not perform out of bounds checks
|
inline |
erases/removes the range given by the closed-open indices [first, last)
does not perform out of bounds checks
|
inline |
erases elements from the list if they satisfy the callable
| Callable | Object that can be called like bool f(const T&) or bool f(T). |
| f | Condition that returns true if that element should be erased from the list. |
|
inlineconstexpr |
Applies the function to each element of the list in-place.
fiber::for_each(const ArrayList<T, N>&, std::function<T, const T&> function) instead | function | the function being applied to change/transform each element |
|
inlineconstexpr |
returns a reference to the first element in the buffer
|
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
|
inline |
inserts a range at the given position
| Range | a generic range that follows the concept std::ranges::forward_range |
| pos | the insertion point |
| range | the range that should be inserted |
|
inline |
|
inline |
Inserts a value.
| pos | the position at which the value should be inserted |
| value | the value that the element at that position should have after the insertion |
|
inline |
inserts a range at a given position
| Itr | a generic iterator that follows the concept std::forward_iterator |
| pos | the position at which should be inserted given by an iterator |
| first | the start of the range that should be inserted |
| last | the past the end iterator to which should be inserted |
|
inline |
Inserts a value.
| pos | the position at which the value should be inserted |
| value | the value that the element at that position should have after the insertion |
|
inline |
inserts the range at the position passed as an integer that wraps if it is a signed type
|
inline |
|
inline |
inserts the value at the position passed as an integer that wraps if it is a signed type
|
inline |
inserts the closed-open [first, last) range at the given position
|
inline |
inserts the value at the position passed as an integer that wraps if it is a signed type
|
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 a reference to the element at the given position
|
inline |
removes and destructs the last element
|
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 an iterator pointing to the same position
|
inlineconstexpr |
turns the passed unsigned integer into a cosnt_iterator pointing to the same position
|
inlineconstexpr |
removes the constnes of an iterator if the user has access to the mutable (un-const) container