neoGFX
Cross-platform C++ app/game engine
neolib::event_callback< Args > Class Template Reference

#include <event.hpp>

Inheritance diagram for neolib::event_callback< Args >:
neolib::reference_counted< i_event_callback >

Public Member Functions

 event_callback (const i_event &aEvent, const ref_ptr< callable > &aCallable, Args... aArguments)
 
bool operator== (const i_event_callback &aRhs) const override
 
const i_eventevent () const override
 
const void * identity () const override
 
bool valid () const override
 
void call () const override
 
- Public Member Functions inherited from neolib::reference_counted< i_event_callback >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t reference_count () const noexcept override
 
const base_typerelease_and_take_ownership () const override
 
base_typerelease_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 

Friends

template<typename... >
class event
 
class async_event_queue
 

Detailed Description

template<typename... Args>
class neolib::event_callback< Args >

Definition at line 221 of file event.hpp.

Constructor & Destructor Documentation

◆ event_callback()

template<typename... Args>
neolib::event_callback< Args >::event_callback ( const i_event aEvent,
const ref_ptr< callable > &  aCallable,
Args...  aArguments 
)
inline

Definition at line 231 of file event.hpp.

Member Function Documentation

◆ call()

template<typename... Args>
void neolib::event_callback< Args >::call ( ) const
inlineoverride

Definition at line 253 of file event.hpp.

◆ event()

template<typename... Args>
const i_event& neolib::event_callback< Args >::event ( ) const
inlineoverride

Definition at line 241 of file event.hpp.

◆ identity()

template<typename... Args>
const void* neolib::event_callback< Args >::identity ( ) const
inlineoverride

Definition at line 245 of file event.hpp.

◆ operator==()

template<typename... Args>
bool neolib::event_callback< Args >::operator== ( const i_event_callback< Args > &  aRhs) const
inlineoverride

Definition at line 236 of file event.hpp.

◆ valid()

template<typename... Args>
bool neolib::event_callback< Args >::valid ( ) const
inlineoverride

Definition at line 249 of file event.hpp.

Friends And Related Function Documentation

◆ async_event_queue

template<typename... Args>
friend class async_event_queue
friend

Definition at line 225 of file event.hpp.

◆ event

template<typename... Args>
template<typename... >
friend class event
friend

Definition at line 224 of file event.hpp.


The documentation for this class was generated from the following file: