PLaSK library
Loading...
Searching...
No Matches
plask::ScaledFieldProviderImpl< DstPropertyT, SrcPropertyT, MULTI_FIELD_PROPERTY, SpaceT, ScaleT, VariadicTemplateTypesHolder< ExtraArgs... > > Struct Template Reference

#include <plask/provider/scaled_provider.hpp>

Inheritance diagram for plask::ScaledFieldProviderImpl< DstPropertyT, SrcPropertyT, MULTI_FIELD_PROPERTY, SpaceT, ScaleT, VariadicTemplateTypesHolder< ExtraArgs... > >:
[legend]
Collaboration diagram for plask::ScaledFieldProviderImpl< DstPropertyT, SrcPropertyT, MULTI_FIELD_PROPERTY, SpaceT, ScaleT, VariadicTemplateTypesHolder< ExtraArgs... > >:
[legend]

Public Types

typedef ProviderFor< DstPropertyT, SpaceT >::ProvidedType ProvidedType
 
- Public Types inherited from plask::ScaledProviderBase< ProviderFor< DstPropertyT, SpaceT >, ProviderFor< SrcPropertyT, SpaceT >, ScaleT >
typedef ProviderFor< SrcPropertyT, SpaceT > SourceType
 
typedef ProviderFor< DstPropertyT, SpaceT > DestinationType
 
typedef ScaleT ScaleType
 
- Public Types inherited from plask::ProviderFor< DstPropertyT, SpaceT >
typedef DstPropertyT PropertyTag
 
typedef SpaceT SpaceType
 

Public Member Functions

 ScaledFieldProviderImpl (double scale=1.)
 
ProvidedType operator() (size_t n, shared_ptr< const MeshD< SpaceT::DIM > > dst_mesh, ExtraArgs... extra_args, InterpolationMethod method=INTERPOLATION_DEFAULT) const override
 
size_t size () const override
 
- Public Member Functions inherited from plask::ScaledProviderBase< ProviderFor< DstPropertyT, SpaceT >, ProviderFor< SrcPropertyT, SpaceT >, ScaleT >
 ScaledProviderBase (ScaleT scale=1.)
 Create the provider.
 
void set (ProviderFor< SrcPropertyT, SpaceT > *src, bool prv=false)
 Set source provider.
 
void set (std::unique_ptr< ProviderFor< SrcPropertyT, SpaceT > > &&src)
 Set source provider.
 
void reset ()
 Reset source provider.
 
ProviderFor< SrcPropertyT, SpaceT > * getSource () const
 Obtain source provider.
 
 ~ScaledProviderBase ()
 
void ensureHasProvider () const
 Throw exception if the providers set of this is empty.
 
- Public Member Functions inherited from plask::ProviderFor< DstPropertyT, SpaceT >
 ProviderFor (Args &&... params)
 Delegate all constructors to parent class.
 

Additional Inherited Members

- Public Attributes inherited from plask::ScaledProviderBase< ProviderFor< DstPropertyT, SpaceT >, ProviderFor< SrcPropertyT, SpaceT >, ScaleT >
ScaleT scale
 Scale for the provider value.
 
- Protected Attributes inherited from plask::ScaledProviderBase< ProviderFor< DstPropertyT, SpaceT >, ProviderFor< SrcPropertyT, SpaceT >, ScaleT >
ProviderFor< SrcPropertyT, SpaceT > * source
 Source provider.
 

Detailed Description

template<typename DstPropertyT, typename SrcPropertyT, typename SpaceT, typename ScaleT, typename... ExtraArgs>
struct plask::ScaledFieldProviderImpl< DstPropertyT, SrcPropertyT, MULTI_FIELD_PROPERTY, SpaceT, ScaleT, VariadicTemplateTypesHolder< ExtraArgs... > >

Definition at line 136 of file scaled_provider.hpp.

Member Typedef Documentation

◆ ProvidedType

Constructor & Destructor Documentation

◆ ScaledFieldProviderImpl()

template<typename DstPropertyT , typename SrcPropertyT , typename SpaceT , typename ScaleT , typename... ExtraArgs>
plask::ScaledFieldProviderImpl< DstPropertyT, SrcPropertyT, MULTI_FIELD_PROPERTY, SpaceT, ScaleT, VariadicTemplateTypesHolder< ExtraArgs... > >::ScaledFieldProviderImpl ( double  scale = 1.)
inline

Definition at line 139 of file scaled_provider.hpp.

Member Function Documentation

◆ operator()()

template<typename DstPropertyT , typename SrcPropertyT , typename SpaceT , typename ScaleT , typename... ExtraArgs>
ProvidedType plask::ScaledFieldProviderImpl< DstPropertyT, SrcPropertyT, MULTI_FIELD_PROPERTY, SpaceT, ScaleT, VariadicTemplateTypesHolder< ExtraArgs... > >::operator() ( size_t  n,
shared_ptr< const MeshD< SpaceT::DIM > >  dst_mesh,
ExtraArgs...  extra_args,
InterpolationMethod  method = INTERPOLATION_DEFAULT 
) const
inlineoverride

Definition at line 143 of file scaled_provider.hpp.

◆ size()

Definition at line 148 of file scaled_provider.hpp.


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