|
ReceiverFor & | operator= (const ReceiverFor &)=delete |
|
| ReceiverFor (const ReceiverFor &)=delete |
|
| ReceiverFor ()=default |
|
ReceiverFor< PropertyT, SpaceT > & | operator= (const ValueType &v) |
| Set provider for this to provider of constant.
|
|
template<typename... Args, PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==SINGLE_VALUE_PROPERTY >::type | setValue (Args &&... value) |
| Set provider to internal provider of some value.
|
|
template<typename... Args, PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==MULTI_VALUE_PROPERTY >::type | setValue (const ValueType &value) |
| Set provider to internal provider of some value.
|
|
template<typename... Args, PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==MULTI_VALUE_PROPERTY >::type | setValues (Args &&... value) |
| Set provider to internal provider of some value.
|
|
template<typename MeshT , PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==FIELD_PROPERTY||propertyType==MULTI_FIELD_PROPERTY >::type | setValue (DataVector< const ValueType > data, shared_ptr< MeshT > mesh) |
| Set provider to internal provider of given field.
|
|
template<typename Iterator , PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==MULTI_FIELD_PROPERTY >::type | setValues (Iterator begin, Iterator end) |
| Set provider to internal provider of constant field.
|
|
template<typename MeshT , typename Iterator , PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==MULTI_FIELD_PROPERTY >::type | setValues (Iterator begin, Iterator end, shared_ptr< MeshT > mesh) |
| Set provider to internal provider of given field.
|
|
template<typename MeshT , PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==MULTI_FIELD_PROPERTY >::type | setValue (const std::vector< DataVector< const ValueType > > &data, shared_ptr< MeshT > mesh) |
| Set provider to internal provider of given field.
|
|
template<typename GeometryT = SpaceT> |
std::enable_if< std::is_same< GeometryT, Geometry3D >::value >::type | setTransformedProvider (ProviderFor< PropertyT, Geometry2DCartesian > *provider) |
| Attach provider for Geometry2DCartesian -> Geometry3D transform.
|
|
template<typename GeometryT = SpaceT> |
std::enable_if< std::is_same< GeometryT, Geometry3D >::value >::type | setTransformedProvider (ProviderFor< PropertyT, Geometry2DCylindrical > *provider) |
| Attach provider for Geometry2DCylindrical -> Geometry3D transform.
|
|
template<typename GeometryT = SpaceT> |
std::enable_if< std::is_same< GeometryT, Geometry2DCartesian >::value >::type | setTransformedProvider (ProviderFor< PropertyT, Geometry3D > *provider) |
| Attach provider for Geometry3D -> Geometry2DCartesian transform.
|
|
template<typename GeometryT = SpaceT> |
std::enable_if< std::is_same< GeometryT, Geometry2DCylindrical >::value >::type | setTransformedProvider (ProviderFor< PropertyT, Geometry3D > *provider) |
| Attach provider for Geometry3D -> Geometry2DCylindrical transform.
|
|
template<PropertyType propertyType = PropertyTag::propertyType> |
std::enable_if< propertyType==MULTI_VALUE_PROPERTY||propertyType==MULTI_FIELD_PROPERTY, size_t >::type | size () const |
| Return number of elements provided by provider.
|
|
virtual const char * | providerName () const |
|
Receiver & | operator= (const Receiver &)=delete |
|
| Receiver (const Receiver &)=delete |
|
| Receiver () |
| Construct Receiver without connected provider and with set changed flag.
|
|
virtual | ~Receiver () |
| Destructor. Disconnect from provider.
|
|
void | fireChanged (ChangeReason reason) |
| Set change flag and call providerValueChanged with given reason .
|
|
void | setProvider (ProviderT *provider, bool newProviderIsPrivate=false) |
| Change provider.
|
|
void | setProvider (ProviderT &provider) |
| Change provider.
|
|
void | setProvider (std::unique_ptr< ProviderT > &&provider) |
| Change provider.
|
|
ProviderT * | getProvider () |
| Current provider getter.
|
|
const ProviderT * | getProvider () const |
| Current provider getter.
|
|
bool | hasProvider () const |
|
void | ensureHasProvider () const |
|
template<typename ... Args> |
auto | operator() (const Args &... params) const -> decltype((*provider)(params...)) |
| Get value from provider using its operator().
|
|
template<typename ... Args> |
auto | optional (const Args &... params) const -> plask::optional< decltype((*provider)(params...))> |
| Get value from provider using its operator().
|
|
template<typename ... ConstProviderConstructorArgs> |
void | setConstValue (ConstProviderConstructorArgs &&... constProviderConstructorArgs) |
| Set provider for this to provider of constant.
|
|
template<typename ClassT , typename methodT > |
boost::signals2::connection | changedConnectMethod (ClassT *obj, methodT method, boost::signals2::connect_position at=boost::signals2::at_back) |
| Connect a method to changed signal.
|
|
template<typename ClassT , typename methodT > |
void | changedDisconnectMethod (ClassT *obj, methodT method) |
| Disconnect a method from changed signal.
|
|
virtual | ~ReceiverBase () |
|
Specializations of this class are implementations of Receiver for given property tag.
- Template Parameters
-
PropertyT | property tag class (describe physical property) |
SpaceT | type of space, required (and allowed) only for fields properties |
Definition at line 472 of file providerfor.hpp.