![]() |
Low-Level Abstraction of Memory Access
|
#include <Vector.hpp>
Public Types | |
| using | ViewType = decltype(allocViewUninitialized< Mapping >()) |
| using | RecordDim = typename Mapping::RecordDim |
| using | iterator = decltype(std::declval< ViewType >().begin()) |
| using | value_type = typename iterator::value_type |
| using | size_type = typename Mapping::ArrayExtents::value_type |
Public Member Functions | |
| Vector ()=default | |
| template<typename RecordRef = One<RecordDim>> | |
| Vector (size_type count, const RecordRef &value={}) | |
| template<typename Iterator > | |
| Vector (Iterator first, Iterator last) | |
| Vector (const Vector &other)=default | |
| Vector (Vector &&other) noexcept | |
| auto | operator= (const Vector &other) -> Vector &=default |
| auto | operator= (Vector &&other) noexcept -> Vector & |
| ~Vector ()=default | |
| auto | at (size_type i) -> decltype(auto) |
| auto | at (size_type i) const -> decltype(auto) |
| auto | operator[] (size_type i) -> decltype(auto) |
| auto | operator[] (size_type i) const -> decltype(auto) |
| auto | front () -> decltype(auto) |
| auto | front () const -> decltype(auto) |
| auto | back () -> decltype(auto) |
| auto | back () const -> decltype(auto) |
| auto | begin () -> decltype(auto) |
| auto | begin () const -> decltype(auto) |
| auto | cbegin () -> decltype(auto) |
| auto | cbegin () const -> decltype(auto) |
| auto | end () -> decltype(auto) |
| auto | end () const -> decltype(auto) |
| auto | cend () -> decltype(auto) |
| auto | cend () const -> decltype(auto) |
| auto | empty () const -> bool |
| auto | size () const -> size_type |
| void | reserve (size_type cap) |
| auto | capacity () const -> size_type |
| void | shrink_to_fit () |
| void | clear () |
| template<typename T > | |
| auto | insert (iterator pos, T &&t) -> iterator |
| auto | erase (iterator pos) -> iterator |
| template<typename T > | |
| void | push_back (T &&t) |
| void | pop_back () |
| template<typename RecordRef = One<RecordDim>> | |
| void | resize (size_type count, const RecordRef &value={}) |
Friends | |
| auto | operator== (const Vector &a, const Vector &b) -> bool |
| auto | operator!= (const Vector &a, const Vector &b) -> bool |
| auto | operator< (const Vector &a, const Vector &b) -> bool |
| auto | operator<= (const Vector &a, const Vector &b) -> bool |
| auto | operator> (const Vector &a, const Vector &b) -> bool |
| auto | operator>= (const Vector &a, const Vector &b) -> bool |
| void | swap (Vector &a, Vector &b) noexcept |
An equivalent of std::vector<T> backed by a View. Elements are never value initialized though. No strong exception guarantee. WARNING: This class is experimental.
| Mapping | The mapping to be used for the underlying view. Needs to have 1 array dimension. |
Definition at line 22 of file Vector.hpp.
| using llama::Vector< Mapping >::iterator = decltype(std::declval<ViewType>().begin()) |
Definition at line 29 of file Vector.hpp.
| using llama::Vector< Mapping >::RecordDim = typename Mapping::RecordDim |
Definition at line 27 of file Vector.hpp.
| using llama::Vector< Mapping >::size_type = typename Mapping::ArrayExtents::value_type |
Definition at line 31 of file Vector.hpp.
| using llama::Vector< Mapping >::value_type = typename iterator::value_type |
Definition at line 30 of file Vector.hpp.
| using llama::Vector< Mapping >::ViewType = decltype(allocViewUninitialized<Mapping>()) |
Definition at line 26 of file Vector.hpp.
|
default |
|
inlineexplicit |
Definition at line 36 of file Vector.hpp.
|
inline |
Definition at line 44 of file Vector.hpp.
|
default |
|
inlinenoexcept |
Definition at line 56 of file Vector.hpp.
|
default |
|
inline |
Definition at line 84 of file Vector.hpp.
|
inline |
Definition at line 91 of file Vector.hpp.
|
inline |
Definition at line 118 of file Vector.hpp.
|
inline |
Definition at line 123 of file Vector.hpp.
|
inline |
Definition at line 128 of file Vector.hpp.
|
inline |
Definition at line 133 of file Vector.hpp.
|
inline |
Definition at line 184 of file Vector.hpp.
|
inline |
Definition at line 138 of file Vector.hpp.
|
inline |
Definition at line 143 of file Vector.hpp.
|
inline |
Definition at line 158 of file Vector.hpp.
|
inline |
Definition at line 163 of file Vector.hpp.
|
inline |
Definition at line 195 of file Vector.hpp.
|
inline |
Definition at line 168 of file Vector.hpp.
|
inline |
Definition at line 148 of file Vector.hpp.
|
inline |
Definition at line 153 of file Vector.hpp.
|
inline |
Definition at line 216 of file Vector.hpp.
|
inline |
Definition at line 108 of file Vector.hpp.
|
inline |
Definition at line 113 of file Vector.hpp.
|
inline |
Definition at line 201 of file Vector.hpp.
|
default |
|
inlinenoexcept |
Definition at line 63 of file Vector.hpp.
|
inline |
Definition at line 98 of file Vector.hpp.
|
inline |
Definition at line 103 of file Vector.hpp.
|
inline |
Definition at line 240 of file Vector.hpp.
|
inline |
Definition at line 229 of file Vector.hpp.
|
inline |
Definition at line 178 of file Vector.hpp.
|
inline |
Definition at line 246 of file Vector.hpp.
|
inline |
Definition at line 190 of file Vector.hpp.
|
inline |
Definition at line 173 of file Vector.hpp.
|
friend |
Definition at line 261 of file Vector.hpp.
|
friend |
Definition at line 266 of file Vector.hpp.
|
friend |
Definition at line 271 of file Vector.hpp.
|
friend |
Definition at line 254 of file Vector.hpp.
|
friend |
Definition at line 276 of file Vector.hpp.
|
friend |
Definition at line 281 of file Vector.hpp.
Definition at line 286 of file Vector.hpp.