Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
EventManager Class Reference

#include <event_manager.h>

+ Inheritance diagram for EventManager:
+ Collaboration diagram for EventManager:

Classes

struct  Dest
 
struct  FuncSpec
 

Public Member Functions

 ~EventManager () override=default
 
void put (MtEvent *e) override
 
void reg (MtEvent::Type type, event_receive_func f, void *data) override
 
void dereg (MtEvent::Type type, event_receive_func f, void *data) override
 
- Public Member Functions inherited from MtEventManager
virtual ~MtEventManager ()=default
 

Static Private Member Functions

static void receiverReceive (MtEvent *e, void *data)
 

Private Attributes

std::map< MtEvent::Type, Destm_dest {}
 

Constructor & Destructor Documentation

◆ ~EventManager()

EventManager::~EventManager ( )
overridedefault

Member Function Documentation

◆ dereg()

void EventManager::dereg ( MtEvent::Type type,
event_receive_func f,
void * data )
inlineoverridevirtual

Implements MtEventManager.

References m_dest, and remove().

Referenced by TestEventManager::testDeregister(), and TestEventManager::testRealEventAfterDereg().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ put()

void EventManager::put ( MtEvent * e)
inlineoverridevirtual

Implements MtEventManager.

References MtEvent::getType(), and m_dest.

Referenced by TestEventManager::testRealEvent(), and TestEventManager::testRealEventAfterDereg().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ receiverReceive()

static void EventManager::receiverReceive ( MtEvent * e,
void * data )
inlinestaticprivate

References MtEventReceiver::onEvent().

+ Here is the call graph for this function:

◆ reg()

void EventManager::reg ( MtEvent::Type type,
event_receive_func f,
void * data )
inlineoverridevirtual

Implements MtEventManager.

References EventManager::Dest::funcs, and m_dest.

Referenced by TestEventManager::testDeregister(), TestEventManager::testRealEvent(), TestEventManager::testRealEventAfterDereg(), and TestEventManager::testRegister().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_dest

std::map<MtEvent::Type, Dest> EventManager::m_dest {}
private

Referenced by dereg(), put(), and reg().


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