omni::delegate
NAME

omni::delegate

A class of omni

#include <omni/delegate/0.hpp>
class omni::delegate

MEMBERS

omni::delegate::delegate()
omni::delegate::~delegate()
template < ret_t (*fnptr)() > static delegate omni::delegate::bind()
template < class T, ret_t (T::*fnptr)() const > static delegate omni::delegate::bind_const(const T& obj)
inline void omni::delegate::bond(function_ptr fnptr)
template < class T, ret_t (T::*fnptr)() const > inline void omni::delegate::bond_const(const T& obj)
function_ptr omni::delegate::function()
ret_t omni::delegate::invoke()
ret_t omni::delegate::invoke_direct()
omni::invoke_t omni::delegate::invoke_type()
bool omni::delegate::is_bound()
bool omni::delegate::is_member_bound()
functor omni::delegate::method()
void omni::delegate::swap(delegate< Ret >& d)
void* omni::delegate::target()
inline void omni::delegate::unbind()
template < class T, ret_t (T::*fnptr)() > inline void omni::delegate::unsafe_set_method()
template < class T, ret_t (T::*fnptr)() const > inline void omni::delegate::unsafe_set_method_const()
template < class T > inline void omni::delegate::unsafe_set_target(T& obj)
bool omni::delegate::valid()
inline ret_t omni::delegate::operator()
inline omni::delegate::operator bool()
inline bool omni::delegate::operator!()
bool omni::delegate::operator!=(const delegate< Ret >& d)
delegate< Ret >& omni::delegate::operator=(const delegate< Ret >& d)
bool omni::delegate::operator==(const delegate< Ret >& d)
omni::delegate::(*function_ptr)
omni::delegate::(*functor)
omni::delegate::ret_t

SYNOPSIS

The delegate is a powerful function pointer object that encapsulates both an object instance and a method.

top

DESCRIPTION

The delegate is agnostic to the type or method it encapsulates; all that matters is that the method be signature compatible with the delegate. This allows for anonymous invocation by users of the delegate.

top

PARAMETERS

Ret - Specifies the return type of the function the delegate is to attach to

top