|
PLaSK library
|
Lazy data vector of consts. More...
#include <plask/lazydata.hpp>
Public Member Functions | |
| ConstValueLazyDataImpl (std::size_t size, const T &value) | |
| T | at (std::size_t) 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. | |
Public Member Functions inherited from plask::LazyDataImpl< T > | |
| virtual | ~LazyDataImpl () |
| virtual DataVector< T > | claim () const |
Public Attributes | |
| T | value_ |
| std::size_t | size_ |
Additional Inherited Members | |
Public Types inherited from plask::LazyDataImpl< T > | |
| typedef T | CellType |
Lazy data vector of consts.
Definition at line 83 of file lazydata.hpp.
|
inline |
Definition at line 88 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 90 of file lazydata.hpp.
|
inlineoverridevirtual |
Get all values as non-lazy vector.
Reimplemented from plask::LazyDataImpl< T >.
Definition at line 94 of file lazydata.hpp.
|
inlineoverridevirtual |
Get the number of elements in this vector.
Implements plask::LazyDataImpl< T >.
Definition at line 92 of file lazydata.hpp.
| std::size_t plask::ConstValueLazyDataImpl< T >::size_ |
Definition at line 86 of file lazydata.hpp.
| T plask::ConstValueLazyDataImpl< T >::value_ |
Definition at line 85 of file lazydata.hpp.