A type-safe map that allows registration and lookup or per-node handler of a particular message ID.
More...
#include <NodeHandlerMap.hxx>
template<class
Node, class Handler>
class TypedNodeHandlerMap< Node, Handler >
A type-safe map that allows registration and lookup or per-node handler of a particular message ID.
see NodeHandlerMapBase for details.
Definition at line 181 of file NodeHandlerMap.hxx.
◆ TypedNodeHandlerMap() [1/2]
template<class
Node , class Handler >
◆ TypedNodeHandlerMap() [2/2]
template<class
Node , class Handler >
- Parameters
-
| entries | is the number of maximum entries in this map (will statically allocate). |
Definition at line 190 of file NodeHandlerMap.hxx.
◆ begin()
template<class
Node , class Handler >
◆ end()
template<class
Node , class Handler >
◆ erase()
template<class
Node , class Handler >
Removes a handler from the map.
If the mapping does not currently point to that handler, does nothing.
- Parameters
-
| node | is the node for which to unregister the handler. |
| id | is the message ID for which to unregister. |
| value | is the handler to unregister. |
Definition at line 211 of file NodeHandlerMap.hxx.
◆ insert()
template<class
Node , class Handler >
Inserts a handler into the map.
- Parameters
-
| node | is the node for which to register the handler. |
| id | is the message ID for which to register. |
| value | is the handler to register. |
Definition at line 199 of file NodeHandlerMap.hxx.
◆ lookup()
template<class
Node , class Handler >
Finds a handler for a particular node and particular messageID.
- Parameters
-
| node | is the node that received the message |
| id | is the message's ID |
- Returns
- a handler or nullptr if no node-specific and no global handler for that ID is found.
Definition at line 221 of file NodeHandlerMap.hxx.
The documentation for this class was generated from the following file: