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

#include <plask/mesh/triangular2d.hpp>

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

Public Member Functions

 NearestNeighborTriangularMesh2DLazyDataImpl (const shared_ptr< const TriangularMesh2D > &src_mesh, const DataVector< const SrcT > &src_vec, const shared_ptr< const MeshD< 2 > > &dst_mesh, const InterpolationFlags &flags)
 
DstT at (std::size_t index) const override
 Get index-th value from vector.
 
- Public Member Functions inherited from plask::InterpolatedLazyDataImpl< DstT, TriangularMesh2D, const SrcT >
 InterpolatedLazyDataImpl (const shared_ptr< const TriangularMesh2D > &src_mesh, const DataVector< const 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
 

Public Attributes

RtreeOfTriangularMesh2DNodes nodesIndex
 
- Public Attributes inherited from plask::InterpolatedLazyDataImpl< DstT, TriangularMesh2D, const SrcT >
shared_ptr< const TriangularMesh2Dsrc_mesh
 
shared_ptr< const MeshD< SrcMeshType::DIM > > dst_mesh
 
DataVector< const const SrcT > src_vec
 
InterpolationFlags flags
 

Additional Inherited Members

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

Detailed Description

template<typename DstT, typename SrcT>
struct plask::NearestNeighborTriangularMesh2DLazyDataImpl< DstT, SrcT >

Definition at line 774 of file triangular2d.hpp.

Constructor & Destructor Documentation

◆ NearestNeighborTriangularMesh2DLazyDataImpl()

template<typename DstT , typename SrcT >
plask::NearestNeighborTriangularMesh2DLazyDataImpl< DstT, SrcT >::NearestNeighborTriangularMesh2DLazyDataImpl ( const shared_ptr< const TriangularMesh2D > &  src_mesh,
const DataVector< const SrcT > &  src_vec,
const shared_ptr< const MeshD< 2 > > &  dst_mesh,
const InterpolationFlags flags 
)

Definition at line 542 of file triangular2d.cpp.

Member Function Documentation

◆ at()

template<typename DstT , typename SrcT >
DstT plask::NearestNeighborTriangularMesh2DLazyDataImpl< DstT, SrcT >::at ( std::size_t  index) const
overridevirtual

Get index-th value from vector.

Parameters
indexshould be a value from 0 to size()-1
Returns
index-th value from vector

Implements plask::LazyDataImpl< DstT >.

Definition at line 555 of file triangular2d.cpp.

Member Data Documentation

◆ nodesIndex


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