System::setter_wrap method

System::setter_wrap(Host const, void(HostSet::)(T2), T) method

Overload for instance setter functions with type conversion.

template<typename T,typename T2,typename Host,typename HostSet> std::enable_if<std::is_base_of<HostSet, Host>::value, T>::type System::setter_wrap(Host *const host, void(HostSet::*pSetter)(T2), T value)
ParameterDescription
TValue type.
T2Type expected by setter function.
HostInstance type.
HostSet- Host itself, or it’s base type, where property’s setter is defined.
ParameterTypeDescription
hostHost *constObject to call setter function for.
pSettervoid(HostSet::*)(T2)Setter function reference.
valueTValue to set.

ReturnValue

set value.

See Also

System::setter_wrap(void(*)(T2), T) method

Overload for static setter functions with type conversion.

template<typename T,typename T2> T System::setter_wrap(void(*pSetter)(T2), T value)
ParameterDescription
TValue type.
T2Type expected by setter function.
ParameterTypeDescription
pSettervoid(*)(T2)Static setter function reference.
valueTValue to set.

ReturnValue

set value.

See Also