PLaSK library
|
Implementation of InterpolatedLazyDataImpl which calls src_mesh.interpolateNearestNeighbor(src_vec, dst_mesh). More...
#include <plask/mesh/interpolation.hpp>
Public Member Functions | |
NearestNeighborInterpolatedLazyDataImpl (shared_ptr< const SrcMeshType > src_mesh, const DataVector< const SrcT > &src_vec, shared_ptr< const MeshD< SrcMeshType::DIM > > dst_mesh, const InterpolationFlags &flags) | |
SrcT | at (std::size_t index) const override |
Get index-th value from vector. | |
Public Member Functions inherited from plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT > | |
InterpolatedLazyDataImpl (const shared_ptr< const SrcMeshType > &src_mesh, const DataVector< const SrcT > &src_vec, const shared_ptr< const MeshD< SrcMeshType::DIM > > &dst_mesh, const InterpolationFlags &flags) | |
std::size_t | size () const override |
Get the number of elements in this vector. | |
Public Member Functions inherited from plask::LazyDataImpl< DstT > | |
virtual | ~LazyDataImpl () |
virtual DataVector< const DstT > | getAll () const |
Get all values as non-lazy vector. | |
virtual DataVector< DstT > | claim () const |
Additional Inherited Members | |
Public Types inherited from plask::LazyDataImpl< DstT > | |
typedef DstT | CellType |
Public Attributes inherited from plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT > | |
shared_ptr< const SrcMeshType > | src_mesh |
shared_ptr< const MeshD< SrcMeshType::DIM > > | dst_mesh |
DataVector< const SrcT > | src_vec |
InterpolationFlags | flags |
Implementation of InterpolatedLazyDataImpl which calls src_mesh.interpolateNearestNeighbor(src_vec, dst_mesh).
So it can be used if SrcMeshType has such interpolateLinear method.
Definition at line 456 of file interpolation.hpp.
|
inline |
Definition at line 458 of file interpolation.hpp.
|
inlineoverridevirtual |
Get index-th value from vector.
index | should be a value from 0 to size()-1 |
Implements plask::LazyDataImpl< DstT >.
Definition at line 462 of file interpolation.hpp.