omni::delegate
NAME

omni::delegate

A class of omni

SYNOPSIS

An encapsulation of a function and object instance. The delegate is a powerful function pointer object that can encapsulate both a method and an object instance. 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.

#include <omni/delegate/0.hpp>
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)
const 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()
const functor omni::delegate::method()
void omni::delegate::swap(delegate< Ret >& d)
void *const omni::delegate::target()
inline void omni::delegate::unbind()
bool omni::delegate::valid()
inline omni::delegate::operator bool()
inline bool omni::delegate::operator!()
bool omni::delegate::operator!=(const delegate< Ret >& d)
inline ret_t omni::delegate::operator()()
delegate< Ret >& omni::delegate::operator=(const delegate< Ret >& d)
bool omni::delegate::operator==(const delegate< Ret >& d)
typedef ret_t omni::delegate::(*function_ptr)
typedef ret_t omni::delegate::(*functor)
typedef Ret omni::delegate::ret_t


top

DESCRIPTION

No description found.

top

PARAMETERS top

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

RETURN VALUES

No return value.

top

ERRORS

No errors specific to this context.

top

CONSIDERATIONS

No extra considerations.

top

PLATFORM SPECIFIC

Nothing platform specific to account for.

top

NOTES

No additional notes.

top

EXAMPLE
Currently no examples.
Visit the examples page for more.

top