|
| delegate ()=default |
| Default constructor.
|
|
| delegate (const delegate &other)=default |
|
template<typename TLambda , typename = typename etl::enable_if<etl::is_class<TLambda>::value, void>::type> |
| delegate (const TLambda &instance) |
|
TReturn | operator() (TParams... args) const |
| Execute the delegate.
|
|
delegate & | operator= (const delegate &rhs)=default |
| Create from function (Compile time).
|
|
template<typename TLambda , typename = typename etl::enable_if<etl::is_class<TLambda>::value, void>::type> |
delegate & | operator= (const TLambda &instance) |
| Create from Lambda or Functor.
|
|
bool | operator== (const delegate &rhs) const |
| Checks equality.
|
|
bool | operator!= (const delegate &rhs) const |
| Returns true if the delegate is valid.
|
|
bool | is_valid () const |
| Returns true if the delegate is valid.
|
|
| operator bool () const |
| Returns true if the delegate is valid.
|
|
|
template<TReturn(*)(TParams...) Method> |
constexpr static delegate | create () |
| Create from function (Compile time).
|
|
template<typename TLambda , typename = typename etl::enable_if<etl::is_class<TLambda>::value, void>::type> |
constexpr static delegate | create (const TLambda &instance) |
| Create from Lambda or Functor.
|
|
template<typename T , TReturn(T::*)(TParams...) Method> |
constexpr static delegate | create (T &instance) |
| Create from instance method (Run time).
|
|
template<typename T , TReturn(T::*)(TParams...) Method> |
static delegate | create (T &&instance)=delete |
|
template<typename T , TReturn(T::*)(TParams...) const Method> |
constexpr static delegate | create (const T &instance) |
| Create from const instance method (Run time).
|
|
template<typename T , TReturn(T::*)(TParams...) const Method> |
constexpr static delegate | create (T &&instance)=delete |
| Disable create from rvalue instance method (Run time).
|
|
template<typename T , T & Instance, TReturn(T::*)(TParams...) Method> |
constexpr static delegate | create () |
| Create from instance method (Compile time).
|
|
template<typename T , T const & Instance, TReturn(T::*)(TParams...) const Method> |
constexpr static delegate | create () |
| Create from const instance method (Compile time).
|
|
template<typename T , T & Instance> |
constexpr static delegate | create () |
|