reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofEvent< void, Mutex > Class Template Reference

#include <ofEvent.h>

Inheritance diagram for ofEvent< void, Mutex >:

Classes

class  FunctionId
 

Public Member Functions

template<class TObj , typename TMethod >
void add (TObj *listener, TMethod method, int priority)
 
template<class TObj , typename TMethod >
std::unique_ptr< of::priv::AbstractEventToken > newListener (TObj *listener, TMethod method, int priority=OF_EVENT_ORDER_AFTER_APP)
 
template<class TObj , typename TMethod >
void remove (TObj *listener, TMethod method, int priority)
 
template<typename TFunction >
void add (TFunction function, int priority)
 
template<typename TFunction >
std::unique_ptr< of::priv::AbstractEventToken > newListener (TFunction function, int priority=OF_EVENT_ORDER_AFTER_APP)
 
template<typename TFunction >
void remove (TFunction function, int priority)
 
bool notify (const void *sender)
 
bool notify ()
 

Protected Types

typedef of::priv::Function< void, Mutex > Function
 
typedef std::shared_ptr< FunctionFunctionPtr
 

Protected Member Functions

template<class TObj , typename TMethod >
std::unique_ptr< FunctionId< TObj, TMethod > > make_function_id (TObj *listener, TMethod method)
 
template<class TObj >
FunctionPtr make_function (TObj *listener, bool(TObj::*method)(), int priority)
 
template<class TObj >
FunctionPtr make_function (TObj *listener, void(TObj::*method)(), int priority)
 
template<class TObj >
FunctionPtr make_function (TObj *listener, bool(TObj::*method)(const void *), int priority)
 
template<class TObj >
FunctionPtr make_function (TObj *listener, void(TObj::*method)(const void *), int priority)
 
template<typename F >
std::unique_ptr< of::priv::BaseFunctionId > make_std_function_id (const F &f)
 
FunctionPtr make_function (std::function< bool()> f, int priority)
 
FunctionPtr make_function (std::function< bool(const void *)> f, int priority)
 
FunctionPtr make_function (std::function< void()> f, int priority)
 
FunctionPtr make_function (std::function< void(const void *)> f, int priority)
 

Member Typedef Documentation

◆ Function

template<typename Mutex >
typedef of::priv::Function<void,Mutex> ofEvent< void, Mutex >::Function
protected

◆ FunctionPtr

template<typename Mutex >
typedef std::shared_ptr<Function> ofEvent< void, Mutex >::FunctionPtr
protected

Member Function Documentation

◆ add() [1/2]

template<typename Mutex >
template<typename TFunction >
void ofEvent< void, Mutex >::add ( TFunction  function,
int  priority 
)
inline

◆ add() [2/2]

template<typename Mutex >
template<class TObj , typename TMethod >
void ofEvent< void, Mutex >::add ( TObj *  listener,
TMethod  method,
int  priority 
)
inline

◆ make_function() [1/8]

template<typename Mutex >
FunctionPtr ofEvent< void, Mutex >::make_function ( std::function< bool()>  f,
int  priority 
)
inlineprotected

◆ make_function() [2/8]

template<typename Mutex >
FunctionPtr ofEvent< void, Mutex >::make_function ( std::function< bool(const void *)>  f,
int  priority 
)
inlineprotected

◆ make_function() [3/8]

template<typename Mutex >
FunctionPtr ofEvent< void, Mutex >::make_function ( std::function< void()>  f,
int  priority 
)
inlineprotected

◆ make_function() [4/8]

template<typename Mutex >
FunctionPtr ofEvent< void, Mutex >::make_function ( std::function< void(const void *)>  f,
int  priority 
)
inlineprotected

◆ make_function() [5/8]

template<typename Mutex >
template<class TObj >
FunctionPtr ofEvent< void, Mutex >::make_function ( TObj *  listener,
bool(TObj::*)()  method,
int  priority 
)
inlineprotected

◆ make_function() [6/8]

template<typename Mutex >
template<class TObj >
FunctionPtr ofEvent< void, Mutex >::make_function ( TObj *  listener,
bool(TObj::*)(const void *)  method,
int  priority 
)
inlineprotected

◆ make_function() [7/8]

template<typename Mutex >
template<class TObj >
FunctionPtr ofEvent< void, Mutex >::make_function ( TObj *  listener,
void(TObj::*)()  method,
int  priority 
)
inlineprotected

◆ make_function() [8/8]

template<typename Mutex >
template<class TObj >
FunctionPtr ofEvent< void, Mutex >::make_function ( TObj *  listener,
void(TObj::*)(const void *)  method,
int  priority 
)
inlineprotected

◆ make_function_id()

template<typename Mutex >
template<class TObj , typename TMethod >
std::unique_ptr< FunctionId< TObj, TMethod > > ofEvent< void, Mutex >::make_function_id ( TObj *  listener,
TMethod  method 
)
inlineprotected

◆ make_std_function_id()

template<typename Mutex >
template<typename F >
std::unique_ptr< of::priv::BaseFunctionId > ofEvent< void, Mutex >::make_std_function_id ( const F &  f)
inlineprotected

◆ newListener() [1/2]

template<typename Mutex >
template<typename TFunction >
std::unique_ptr< of::priv::AbstractEventToken > ofEvent< void, Mutex >::newListener ( TFunction  function,
int  priority = OF_EVENT_ORDER_AFTER_APP 
)
inline

◆ newListener() [2/2]

template<typename Mutex >
template<class TObj , typename TMethod >
std::unique_ptr< of::priv::AbstractEventToken > ofEvent< void, Mutex >::newListener ( TObj *  listener,
TMethod  method,
int  priority = OF_EVENT_ORDER_AFTER_APP 
)
inline

◆ notify() [1/2]

template<typename Mutex >
bool ofEvent< void, Mutex >::notify ( )
inline

◆ notify() [2/2]

template<typename Mutex >
bool ofEvent< void, Mutex >::notify ( const void *  sender)
inline

◆ remove() [1/2]

template<typename Mutex >
template<typename TFunction >
void ofEvent< void, Mutex >::remove ( TFunction  function,
int  priority 
)
inline

◆ remove() [2/2]

template<typename Mutex >
template<class TObj , typename TMethod >
void ofEvent< void, Mutex >::remove ( TObj *  listener,
TMethod  method,
int  priority 
)
inline

The documentation for this class was generated from the following file:
  • /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/events/ofEvent.h