System::WithLambda Namespace Reference

Functions

template<typename S , typename T >
setter_wrap (S &&setter, T value)
 
template<typename G , typename S >
auto setter_increment_wrap (G &&getter, S &&setter)
 
template<typename G , typename S >
auto setter_post_increment_wrap (G &&getter, S &&setter)
 
template<typename G , typename S >
auto setter_decrement_wrap (G &&getter, S &&setter)
 
template<typename G , typename S >
auto setter_post_decrement_wrap (G &&getter, S &&setter)
 

Function Documentation

◆ setter_decrement_wrap()

template<typename G , typename S >
auto System::WithLambda::setter_decrement_wrap ( G &&  getter,
S &&  setter 
)

Translator translates C#'s decrement expressions targeting class' property that has setter and getter defined, into invocation of this function.

Parameters
getterReference to a function object representing property's getter
setterReference to a function object representing property's setter
Returns
The decremented value of the property
Template Parameters
GThe type of the getter function object
SThe type of the setter function object

◆ setter_increment_wrap()

template<typename G , typename S >
auto System::WithLambda::setter_increment_wrap ( G &&  getter,
S &&  setter 
)

Translator translates C#'s increment expressions targeting class' property that has setter and getter defined, into invocation of this function.

Parameters
getterReference to a function object representing property's getter
setterReference to a function object representing property's setter
Returns
The incremented value of the property
Template Parameters
GThe type of the getter function object
SThe type of the setter function object

◆ setter_post_decrement_wrap()

template<typename G , typename S >
auto System::WithLambda::setter_post_decrement_wrap ( G &&  getter,
S &&  setter 
)

Translator translates C#'s post-decrement expressions targeting a class' property that has a setter and getter defined, into invocation of this function.

Parameters
getterReference to a function object representing property's getter
setterReference to a function object representing property's setter
Returns
The value of the property before it was decremented
Template Parameters
GThe type of the getter function object
SThe type of the setter function object

◆ setter_post_increment_wrap()

template<typename G , typename S >
auto System::WithLambda::setter_post_increment_wrap ( G &&  getter,
S &&  setter 
)

Translator translates C#'s post-increment expressions targeting class' property that has setter and getter defined, into invocation of this function.

Parameters
getterReference to a function object representing property's getter
setterReference to a function object representing property's setter
Returns
The value of the property before it was incremented
Template Parameters
GThe type of the getter function object
SThe type of the setter function object

◆ setter_wrap()

template<typename S , typename T >
T System::WithLambda::setter_wrap ( S &&  setter,
value 
)

Wrapper function to wrap calling setter method and returning set value (normally, set methods do not return values).

Template Parameters
SSetter type (lambda).
TValue type.
Parameters
setterSetter lambda.
valueValue to set and return.
Returns
Always returns unchanged assigned value.