Registry for dispatching frames to their registered destinations. More...
#include <frameregistry.h>
Classes | |
| struct | FrameHandler |
| Virtual Base for a callable Frame handler. More... | |
| struct | FuncHandler |
| pure function FrameHandler More... | |
| struct | MethodHandler |
| class method FrameHandler More... | |
Public Member Functions | |
| void | setHandler (uint8_t id, FuncHandler::Func f) |
| register pure function FrameHandler for given id | |
| template<typename T > | |
| void | setHandler (uint8_t id, T &base, typename MethodHandler< T >::Method method) |
| register class method FrameHandler for given id | |
| void | handle (Frame &&f) |
| handle given Frame and consume it | |
Public Attributes | |
| FrameHandler * | list [64] {} |
| list of registered handlers | |
Registry for dispatching frames to their registered destinations.
|
inline |
handle given Frame and consume it
you potentially have to call .handle(std::move(frame)) to have the compiler let you do this.