Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
DispatchFlowBase< NUM_PRIO >::HandlerInfo Struct Reference

Internal information we store about each registered handler: identifier, mask, handler pointer. More...

Public Member Functions

bool Equals (ID id, ID mask, UntypedHandler *handler)
 Equality comparison function on the handlers.
 

Public Attributes

ID id
 Bits that this handler is registered for.
 
ID mask
 Mask that should be applied for the bits check.
 
UntypedHandlerhandler
 Handler to call. NULL if the handler has been removed.
 

Detailed Description

template<int NUM_PRIO>
struct DispatchFlowBase< NUM_PRIO >::HandlerInfo

Internal information we store about each registered handler: identifier, mask, handler pointer.

Definition at line 158 of file Dispatcher.hxx.

Constructor & Destructor Documentation

◆ HandlerInfo()

template<int NUM_PRIO>
DispatchFlowBase< NUM_PRIO >::HandlerInfo::HandlerInfo ( )
inline

Definition at line 160 of file Dispatcher.hxx.

Member Function Documentation

◆ Equals()

template<int NUM_PRIO>
bool DispatchFlowBase< NUM_PRIO >::HandlerInfo::Equals ( ID  id,
ID  mask,
UntypedHandler handler 
)
inline

Equality comparison function on the handlers.

Used for remove() calls.

Parameters
iddesired id to unregister
maskdesired mask to unregister
handlerdesired handler to unregister
Returns
true if this is the instance to be removed.

Definition at line 177 of file Dispatcher.hxx.

Member Data Documentation

◆ handler

template<int NUM_PRIO>
UntypedHandler* DispatchFlowBase< NUM_PRIO >::HandlerInfo::handler

Handler to call. NULL if the handler has been removed.

Definition at line 166 of file Dispatcher.hxx.

◆ id

template<int NUM_PRIO>
ID DispatchFlowBase< NUM_PRIO >::HandlerInfo::id

Bits that this handler is registered for.

Definition at line 163 of file Dispatcher.hxx.

◆ mask

template<int NUM_PRIO>
ID DispatchFlowBase< NUM_PRIO >::HandlerInfo::mask

Mask that should be applied for the bits check.

Definition at line 164 of file Dispatcher.hxx.


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