![]() |
Allium
0.1.0
|
Accessor for the locally stored part of a vector. More...
#include <vector_storage.hpp>
Public Types | |
| using | Pointer = P |
| using | Vector = typename std::pointer_traits< P >::element_type |
| using | Number = typename Vector::Number |
| using | Real = typename Vector::Real |
| using | DataPointer = typename std::conditional< std::is_const< Vector >::value, const Number *, Number * >::type |
| using | Reference = std::conditional_t< std::is_const< Vector >::value, Number, Number & > |
| using | Base = std::conditional_t< std::is_const< Vector >::value, const VectorStorage< Number >, VectorStorage< Number > > |
Public Member Functions | |
| LocalSlice (const Pointer &ptr) | |
| LocalSlice (const LocalSlice &)=delete | |
| LocalSlice (LocalSlice &&other) | |
| void | operator= (const LocalSlice &rhs) |
| template<typename P2 > | |
| void | operator= (const LocalSlice< P2 > &rhs) |
| void | reset (const Pointer &ptr) |
| void | release () |
| LocalSlice & | operator= (const std::initializer_list< Number > &rhs) |
| Reference | operator[] (size_t index) const |
| size_t | size () const |
Protected Attributes | |
| DataPointer | m_data |
| size_t | m_size |
Accessor for the locally stored part of a vector.