#include <UserCallbackMap.h>
◆ getCallback()
std::optional< CallbackFunction > UserCallbackMap::getCallback |
( |
const std::string & |
name | ) |
|
|
overridevirtual |
Get an instance of a callback, if it exists.
- Parameters
-
name | Key under which the callback was registered |
- Returns
- The callback function if it exists.
Implements IUserCallbackMap.
◆ getLength()
uint32_t UserCallbackMap::getLength |
( |
| ) |
|
|
overridevirtual |
◆ getManifestAt()
◆ getNameAt()
std::optional< std::string > UserCallbackMap::getNameAt |
( |
uint32_t |
index | ) |
|
|
overridevirtual |
◆ registerCallback() [1/2]
bool UserCallbackMap::registerCallback |
( |
std::string |
name, |
|
|
CallbackFunction |
callback |
|
) |
| |
|
overridevirtual |
Register a callback
- Parameters
-
name | Key of the callback |
callback | Callback function |
- Returns
- True if an existing callback function was overwritten, false otherwise
Implements IUserCallbackMap.
◆ registerCallback() [2/2]
Register a callback
- Parameters
-
name | Key of the callback |
callback | Callback function |
manifest | A list describing the callback's expected arguments name and type |
- Returns
- True if an existing callback function was overwritten, false otherwise
Implements IUserCallbackMap.
◆ m_callbackNames
std::vector<std::string> UserCallbackMap::m_callbackNames |
|
private |
◆ m_callbacks
The documentation for this class was generated from the following files: