|
PLaSK library
|
#include <plask/filters/filter.hpp>
Classes | |
| struct | FilterLazyDataImpl |
Public Types | |
| typedef PropertyAt< PropertyT, OutputSpaceType >::ValueType | ValueType |
| typedef DataSource< PropertyT, OutputSpaceType > | DataSourceT |
| typedef std::unique_ptr< DataSourceT > | DataSourceTPtr |
| typedef std::function< plask::optional< ValueType >(std::size_t)> | DataSourceF |
Public Member Functions | |
| FilterBaseImpl (shared_ptr< OutputSpaceType > geometry) | |
Construct solver with given output geometry. | |
| std::string | getClassName () const override |
| Get name of solver. | |
| shared_ptr< OutputSpaceType > | getGeometry () const |
| Get this filter output geometry. | |
| LazyData< ValueType > | get (const shared_ptr< const MeshD< OutputSpaceType::DIM > > &dst_mesh, ExtraArgs... extra_args, InterpolationMethod method) const |
| Get value provided by output of this solver. | |
| void | setOuter (DataSourceTPtr &&outerSource) |
Set outer source to outerSource. | |
| void | setDefault (const ValueType &value) |
Set outer provider to provide constant value. | |
| void | appendInner (DataSourceTPtr &&innerSource) |
| Append inner data source. | |
| virtual ReceiverFor< PropertyT, Geometry3D > & | input (GeometryObjectD< 3 > &obj, const PathHints *path=nullptr)=0 |
| Set outer or append inner input. | |
| ReceiverFor< PropertyT, Geometry3D > & | input (shared_ptr< GeometryObjectD< 3 > > obj, const PathHints *path=nullptr) |
| ReceiverFor< PropertyT, Geometry3D > & | input (Geometry3D &inGeom, const PathHints *path=nullptr) |
| ReceiverFor< PropertyT, Geometry3D > & | input (shared_ptr< Geometry3D > inGeom, const PathHints *path=nullptr) |
| virtual ReceiverFor< PropertyT, Geometry2DCartesian > & | input (Geometry2DCartesian &obj, const PathHints *path=nullptr)=0 |
| ReceiverFor< PropertyT, Geometry2DCartesian > & | input (shared_ptr< Geometry2DCartesian > obj, const PathHints *path=nullptr) |
| virtual ReceiverFor< PropertyT, Geometry2DCylindrical > & | input (Geometry2DCylindrical &obj, const PathHints *path=nullptr)=0 |
| ReceiverFor< PropertyT, Geometry2DCylindrical > & | input (shared_ptr< Geometry2DCylindrical > obj, const PathHints *path=nullptr) |
Public Member Functions inherited from plask::FilterCommonBase | |
| template<typename... Args> | |
| FilterCommonBase (Args &&... args) | |
Public Member Functions inherited from plask::Solver | |
| bool | initCalculation () |
| This should be called on beginning of each calculation method to ensure that solver will be initialized. | |
| Solver (const std::string &name="") | |
| Construct uninitialized solver. | |
| virtual | ~Solver () |
| Virtual destructor (for subclassing). Do nothing. | |
| virtual void | loadConfiguration (XMLReader &source, Manager &manager) |
Load configuration from given source. | |
| void | parseStandardConfiguration (XMLReader &source, Manager &manager, const std::string &expected_msg="solver configuration element") |
Load standard configuration (geometry, mesh) tags from source. | |
| bool | isInitialized () |
| Check if solver is already initialized. | |
| void | invalidate () |
| This method should be and is called if something important was changed: calculation space, mesh, etc. | |
| std::string | getId () const |
| Get solver id. | |
| std::string | getName () const |
| virtual std::string | getClassDescription () const |
| Get a description of this solver. | |
| template<typename ArgT = double, typename ValT = double> | |
| DataLog< ArgT, ValT > | dataLog (const std::string &chart_name, const std::string &axis_arg_name, const std::string &axis_val_name) |
| template<typename ArgT = double, typename ValT = double> | |
| DataLog< ArgT, ValT > | dataLog (const std::string &axis_arg_name, const std::string &axis_val_name) |
| template<typename ... Args> | |
| void | writelog (LogLevel level, std::string msg, Args &&... params) const |
| Log a message for this solver. | |
Public Attributes | |
| ProviderFor< PropertyT, OutputSpaceType >::Delegate | out |
| Provider of filtered data. | |
Protected Member Functions | |
| template<typename SourceType > | |
| auto | setOuterRecv (std::unique_ptr< SourceType > &&outerSource) -> decltype(outerSource->in)& |
| template<typename SourceType > | |
| auto | appendInnerRecv (std::unique_ptr< SourceType > &&innerSource) -> decltype(innerSource->in)& |
Protected Member Functions inherited from plask::Solver | |
| virtual void | onInitialize () |
| Initialize the solver. | |
| virtual void | onInvalidate () |
| This method is called by invalidate() to reset stored values. | |
Protected Attributes | |
| std::vector< DataSourceTPtr > | innerSources |
| DataSourceTPtr | outerSource |
| shared_ptr< OutputSpaceType > | geometry |
| Output space in which the results are provided. | |
Protected Attributes inherited from plask::Solver | |
| bool | initialized |
true only if solver is initialized | |
Definition at line 36 of file filter.hpp.
| typedef std::function<plask::optional<ValueType>(std::size_t)> plask::FilterBaseImpl< PropertyT, FIELD_PROPERTY, OutputSpaceType, VariadicTemplateTypesHolder< ExtraArgs... > >::DataSourceF |
Definition at line 46 of file filter.hpp.
| typedef DataSource<PropertyT, OutputSpaceType> plask::FilterBaseImpl< PropertyT, FIELD_PROPERTY, OutputSpaceType, VariadicTemplateTypesHolder< ExtraArgs... > >::DataSourceT |
Definition at line 44 of file filter.hpp.
| typedef std::unique_ptr<DataSourceT> plask::FilterBaseImpl< PropertyT, FIELD_PROPERTY, OutputSpaceType, VariadicTemplateTypesHolder< ExtraArgs... > >::DataSourceTPtr |
Definition at line 45 of file filter.hpp.
| typedef PropertyAt<PropertyT,OutputSpaceType>::ValueType plask::FilterBaseImpl< PropertyT, FIELD_PROPERTY, OutputSpaceType, VariadicTemplateTypesHolder< ExtraArgs... > >::ValueType |
Definition at line 43 of file filter.hpp.
|
inline |
Construct solver with given output geometry.
| geometry | output geometry |
Definition at line 119 of file filter.hpp.
|
inline |
Append inner data source.
| innerSource | inner source to add |
Definition at line 188 of file filter.hpp.
|
inlineprotected |
Definition at line 103 of file filter.hpp.
|
inline |
Get value provided by output of this solver.
| dst_mesh | |
| extra_args | |
| method |
Definition at line 142 of file filter.hpp.
|
inlineoverridevirtual |
Get name of solver.
Implements plask::Solver.
Definition at line 127 of file filter.hpp.
|
inline |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 206 of file filter.hpp.
|
pure virtual |
Set outer or append inner input.
| obj | |
| path |
|
inline |
Definition at line 216 of file filter.hpp.
|
inline |
Definition at line 222 of file filter.hpp.
|
inline |
Definition at line 210 of file filter.hpp.
|
inline |
Definition at line 202 of file filter.hpp.
|
inline |
Set outer provider to provide constant value.
| value | value which is used in all points where inner sources don't provide values. |
Definition at line 177 of file filter.hpp.
|
inline |
Set outer source to outerSource.
| outerSource | source to use in all points where inner sources don't provide values. |
Definition at line 166 of file filter.hpp.
|
inlineprotected |
Definition at line 93 of file filter.hpp.
|
protected |
Output space in which the results are provided.
Definition at line 90 of file filter.hpp.
|
protected |
Definition at line 85 of file filter.hpp.
| ProviderFor<PropertyT,OutputSpaceType>::Delegate plask::FilterBaseImpl< PropertyT, FIELD_PROPERTY, OutputSpaceType, VariadicTemplateTypesHolder< ExtraArgs... > >::out |
Provider of filtered data.
Definition at line 113 of file filter.hpp.
|
protected |
Definition at line 87 of file filter.hpp.