omgui::ConstMemberSlot< E, T > Class Template Reference

#include <omgui/event.h>

Inherits omgui::SlotBase.

List of all members.


Detailed Description

template<typename E, typename T>
class omgui::ConstMemberSlot< E, T >

This slot works for const member function pointers. If you don't need any advanced forms of function binding, this will be more efficient than using binders like boost::bind. It is also much easier to use than std::bind_1st and std::mem_fun when combined with the make_slot helper template.

Public Types

typedef E event_type
typedef bool(T::* function_type )(const event_type &e) const

Public Member Functions

void add_ref ()
 ConstMemberSlot (const function_type &function, T &t)
bool operator() (const Event &e)
void release ()

Private Attributes

function_type func
T & instance

Member Typedef Documentation

template<typename E, typename T>
typedef E omgui::ConstMemberSlot< E, T >::event_type

template<typename E, typename T>
typedef bool(T::* omgui::ConstMemberSlot< E, T >::function_type)(const event_type &e) const


Constructor & Destructor Documentation

template<typename E, typename T>
omgui::ConstMemberSlot< E, T >::ConstMemberSlot ( const function_type function,
T &  t 
) [inline]


Member Function Documentation

void omgui::RefCounted::add_ref (  )  [virtual, inherited]

Implements omgui::RefCountable.

template<typename E, typename T>
bool omgui::ConstMemberSlot< E, T >::operator() ( const Event e  )  [inline, virtual]

Invoke the slot

Implements omgui::SlotBase.

void omgui::RefCounted::release (  )  [virtual, inherited]

Implements omgui::RefCountable.


Member Data Documentation

template<typename E, typename T>
function_type omgui::ConstMemberSlot< E, T >::func [private]

template<typename E, typename T>
T& omgui::ConstMemberSlot< E, T >::instance [private]


doxygen SourceForge.net Logo