PLaSK library
Loading...
Searching...
No Matches
plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT > Struct Template Reference

Base class for lazy data (vector) that perform interpolation. More...

#include <plask/mesh/interpolation.hpp>

Inheritance diagram for plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT >:
[legend]
Collaboration diagram for plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT >:
[legend]

Public Member Functions

 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 DstT at (std::size_t index) const=0
 Get index-th value from vector.
 
virtual DataVector< const DstT > getAll () const
 Get all values as non-lazy vector.
 
virtual DataVector< DstT > claim () const
 

Public Attributes

shared_ptr< const SrcMeshTypesrc_mesh
 
shared_ptr< const MeshD< SrcMeshType::DIM > > dst_mesh
 
DataVector< const SrcTsrc_vec
 
InterpolationFlags flags
 

Additional Inherited Members

- Public Types inherited from plask::LazyDataImpl< DstT >
typedef DstT CellType
 

Detailed Description

template<typename DstT, typename SrcMeshType, typename SrcT = DstT>
struct plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT >

Base class for lazy data (vector) that perform interpolation.

It has reference to source (src_mesh) and destination (dst_mesh) meshes and to source data vector (src_vec).

Definition at line 417 of file interpolation.hpp.

Constructor & Destructor Documentation

◆ InterpolatedLazyDataImpl()

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 
)
inline

Definition at line 424 of file interpolation.hpp.

Member Function Documentation

◆ size()

std::size_t plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT >::size ( ) const
inlineoverridevirtual

Get the number of elements in this vector.

Returns
the number of elements in this vector

Implements plask::LazyDataImpl< DstT >.

Definition at line 428 of file interpolation.hpp.

Member Data Documentation

◆ dst_mesh

shared_ptr<const MeshD<SrcMeshType::DIM> > plask::InterpolatedLazyDataImpl< DstT, SrcMeshType, SrcT >::dst_mesh

Definition at line 420 of file interpolation.hpp.

◆ flags

◆ src_mesh

Definition at line 419 of file interpolation.hpp.

◆ src_vec


The documentation for this struct was generated from the following file: