setter_wrap()

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

Overload for static setter functions with type conversion.

template<typename T,typename T2> T System::setter_wrap(void(*pSetter)(T2), T value)

Template parameters

ParameterDescription
TValue type.
T2Type expected by setter function.

Arguments

ParameterTypeDescription
pSettervoid(*)(T2)Static setter function reference.
valueTValue to set.

Return Value

set value.

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

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)

Template parameters

ParameterDescription
TValue type.
T2Type expected by setter function.
HostInstance type.
HostSet- Host itself, or it’s base type, where property’s setter is defined.

Arguments

ParameterTypeDescription
hostHost *constObject to call setter function for.
pSettervoid(HostSet::*)(T2)Setter function reference.
valueTValue to set.

Return Value

set value.

See Also