PLaSK library
|
Call functor to get data. More...
#include <plask/lazydata.hpp>
Public Member Functions | |
LazyDataDelegateImpl (std::size_t size, std::function< T(std::size_t)> func) | |
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. | |
Public Member Functions inherited from plask::LazyDataImpl< T > | |
virtual | ~LazyDataImpl () |
virtual DataVector< const T > | getAll () const |
Get all values as non-lazy vector. | |
virtual DataVector< T > | claim () const |
Protected Attributes | |
std::size_t | siz |
std::function< T(std::size_t)> | func |
Additional Inherited Members | |
Public Types inherited from plask::LazyDataImpl< T > | |
typedef T | CellType |
Call functor to get data.
Definition at line 123 of file lazydata.hpp.
|
inline |
Definition at line 130 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 132 of file lazydata.hpp.
|
inlineoverridevirtual |
Get the number of elements in this vector.
Implements plask::LazyDataImpl< T >.
Definition at line 134 of file lazydata.hpp.
|
protected |
Definition at line 127 of file lazydata.hpp.
|
protected |
Definition at line 126 of file lazydata.hpp.