PLaSK library
|
LazyData implementation removing NaN from another data. More...
#include <plask/lazydata.hpp>
Public Member Functions | |
SafeDataImpl (const LazyData< T > &src, const T safe_value=Zero< T >()) | |
Create lazy data filter. | |
std::size_t | size () const override |
Get the number of elements in this vector. | |
T | at (std::size_t i) const override |
Get index-th value from 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 |
Public Attributes | |
const LazyData< T > | src |
const T | safe_value |
Additional Inherited Members | |
Public Types inherited from plask::LazyDataImpl< T > | |
typedef T | CellType |
LazyData implementation removing NaN from another data.
TODO: sanitize also inf
Definition at line 414 of file lazydata.hpp.
|
inline |
Create lazy data filter.
src | source lazy data or vector |
sane_value | sane value that is returned instead of NaN |
Definition at line 424 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 428 of file lazydata.hpp.
|
inlineoverridevirtual |
Get the number of elements in this vector.
Implements plask::LazyDataImpl< T >.
Definition at line 426 of file lazydata.hpp.
const T plask::SafeDataImpl< T >::safe_value |
Definition at line 417 of file lazydata.hpp.
const LazyData<T> plask::SafeDataImpl< T >::src |
Definition at line 416 of file lazydata.hpp.