omgui::FunctorSlot< E, F > Class Template Reference

#include <omgui/event.h>

Inherits omgui::SlotBase.

List of all members.


Detailed Description

template<typename E, typename F>
class omgui::FunctorSlot< E, F >

This slot works with any generic function object.

The type F must be copyable and define bool operator()(const E&).

Public Types

typedef E event_type
typedef F function_type

Public Member Functions

void add_ref ()
 FunctorSlot (const function_type &f)
bool operator() (const Event &e)
void release ()

Private Attributes

function_type func


Member Typedef Documentation

template<typename E, typename F>
typedef E omgui::FunctorSlot< E, F >::event_type

template<typename E, typename F>
typedef F omgui::FunctorSlot< E, F >::function_type


Constructor & Destructor Documentation

template<typename E, typename F>
omgui::FunctorSlot< E, F >::FunctorSlot ( const function_type f  )  [inline]


Member Function Documentation

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

Implements omgui::RefCountable.

template<typename E, typename F>
bool omgui::FunctorSlot< E, F >::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 F>
function_type omgui::FunctorSlot< E, F >::func [private]


doxygen SourceForge.net Logo