| 102 | |
| 103 | |
| 104 | class Callbacks |
| 105 | { |
| 106 | public: |
| 107 | using CBFunction = std::function<void()>; |
| 108 | |
| 109 | Callbacks(); |
| 110 | ~Callbacks() noexcept = default; |
| 111 | |
| 112 | void AddCallback(const CallbackType type, CBFunction func); |
| 113 | void RunCallback(const CallbackType type) const; |
| 114 | |
| 115 | private: |
| 116 | std::map<CallbackType, CBFunction> collection = {}; |
| 117 | }; |
| 118 | |
| 119 | |
| 120 | [[nodiscard]] static RequiresQueue::Ptr Create() |
nothing calls this directly
no outgoing calls
no test coverage detected