C++ features by examples
|
list based implementation without recursion More...
Public Member Functions | |
void | register_handler (Handler &&h, bool front=false) |
int | handle (Command &cmnd) override |
Specific handler can process a command and return non-negative. More... | |
Public Member Functions inherited from Handler | |
virtual int | handle (Command &cmnd) |
Specific handler can process a command and return non-negative. More... | |
virtual | ~Handler ()=default |
list based implementation without recursion
Chain-of-responsibility pattern
https://refactoring.guru/design-patterns/chain-of-responsibility
Definition at line 522 of file patterns.cpp.
|
inlineoverridevirtual |
Specific handler can process a command and return non-negative.
Reimplemented from Handler.
Definition at line 538 of file patterns.cpp.
|
inline |