omni::event2
NAME

omni::event2

A class of omni

#include <omni/delegate/2.hpp>
class omni::event2

MEMBERS

omni::event2::event2()
omni::event2::~event2()
void omni::event2::attach(const omni::delegate2< Ret, PT1, PT2 >& d)
template < class T, ret_t (T::*fnptr)(PT1, PT2) const > void omni::event2::attach_const(const T& obj)
void omni::event2::clear()
bool omni::event2::contains(const omni::delegate2< Ret, PT1, PT2 >& d)
template < class T, ret_t (T::*fnptr)(PT1, PT2) const > bool omni::event2::contains_const(const T& obj)
void omni::event2::detach(const omni::delegate2< Ret, PT1, PT2 >& d)
void omni::event2::detach_all(const omni::delegate2< Ret, PT1, PT2 >& d)
template < class T, ret_t (T::*fnptr)(PT1, PT2) const > void omni::event2::detach_const(const T& obj)
bool omni::event2::empty()
container_t omni::event2::invocation_list()
ret_t omni::event2::invoke(p1_t val1, p2_t val2)
ret_t omni::event2::invoke_direct(p1_t val1, p2_t val2)
void omni::event2::swap(event2< Ret, PT1, PT2 >& e)
ret_t omni::event2::operator()
omni::event2::operator bool()
bool omni::event2::operator!()
bool omni::event2::operator!=(const event2< Ret, PT1, PT2 >& e)
event2< Ret, PT1, PT2 > omni::event2::operator+(const omni::delegate2< Ret, PT1, PT2 >& d)
event2< Ret, PT1, PT2 >& omni::event2::operator+=(const omni::delegate2< Ret, PT1, PT2 >& d)
event2< Ret, PT1, PT2 > omni::event2::operator-(const omni::delegate2< Ret, PT1, PT2 >& d)
event2< Ret, PT1, PT2 >& omni::event2::operator-=(const omni::delegate2< Ret, PT1, PT2 >& d)
event2< Ret, PT1, PT2 >& omni::event2::operator=(const event2< Ret, PT1, PT2 >& e)
bool omni::event2::operator==(const event2< Ret, PT1, PT2 >& e)
omni::delegate2< Ret, PT1, PT2 >& omni::event2::operator[](std::size_t idx)
omni::event2::const_iterator_t
omni::event2::const_reverse_iterator_t
omni::event2::container_t
omni::event2::delegate_t
omni::event2::iterator_t
omni::event2::p1_t
omni::event2::p2_t
omni::event2::ret_t
omni::event2::reverse_iterator_t

SYNOPSIS

The event class is a type of multicast delegate.

top

DESCRIPTION

Events are a type of multi-cast delegate that allows client code to attach multiple handlers of various classes, structs and anonymous functions, to a single event handler. As long as each target method is signature compatable with the underlying delegate type, classes and structs of various types can be attached to the same event object.

Invoking an event will invoke each attached handler (delegate) in the order they have been attached.

top

PARAMETERS

Ret - Specifies the return type of the delegates to be attached 2 - Specifies the parameter types passed to the delegate

top