PLaSK library
|
Wrap DataVector and allow to access to it. More...
#include <plask/lazydata.hpp>
Public Member Functions | |
LazyDataFromVectorImpl (DataVector< const T > vec) | |
T | at (std::size_t index) const override |
Get index-th value from vector. | |
std::size_t | size () const override |
Get the number of elements in this vector. | |
DataVector< const T > | getAll () const override |
Get all values as non-lazy vector. | |
DataVector< T > | claim () const override |
Public Member Functions inherited from plask::LazyDataImpl< T > | |
virtual | ~LazyDataImpl () |
Public Attributes | |
DataVector< const T > | vec |
Additional Inherited Members | |
Public Types inherited from plask::LazyDataImpl< T > | |
typedef T | CellType |
Wrap DataVector and allow to access to it.
getAll() does not copy the wrapped vector.
Definition at line 104 of file lazydata.hpp.
|
inline |
Definition at line 108 of file lazydata.hpp.
|
inlineoverridevirtual |
Get index-th value from vector.
index | should be a value from 0 to size()-1 |
Implements plask::LazyDataImpl< T >.
Definition at line 110 of file lazydata.hpp.
|
inlineoverridevirtual |
Reimplemented from plask::LazyDataImpl< T >.
Definition at line 116 of file lazydata.hpp.
|
inlineoverridevirtual |
Get all values as non-lazy vector.
Reimplemented from plask::LazyDataImpl< T >.
Definition at line 114 of file lazydata.hpp.
|
inlineoverridevirtual |
Get the number of elements in this vector.
Implements plask::LazyDataImpl< T >.
Definition at line 112 of file lazydata.hpp.
DataVector<const T> plask::LazyDataFromVectorImpl< T >::vec |
Definition at line 106 of file lazydata.hpp.