#include <JBroadcasterMessageMap.h>
◆ JBroadcasterMessageMap()
JBroadcasterMessageMap::JBroadcasterMessageMap |
( |
| ) |
|
◆ ~JBroadcasterMessageMap()
JBroadcasterMessageMap::~JBroadcasterMessageMap |
( |
| ) |
|
|
override |
◆ Contains()
bool JBroadcasterMessageMap::Contains |
( |
const std::type_info & |
key | ) |
const |
This code is also used to position the cursor for use by other functions in both this class and derived classes!
◆ GetItem()
bool JBroadcasterMessageMap::GetItem |
( |
const std::type_info & |
key, |
|
|
const JBroadcaster * |
obj, |
|
|
boost::any ** |
f |
|
) |
| const |
If the element is found, sets value to it and returns true; otherwise, nulls value and returns false.
◆ GetList()
If the list is found, sets list to it and returns true; otherwise, nulls list and returns false.
◆ RemoveAll()
void JBroadcasterMessageMap::RemoveAll |
( |
const std::function< void(JBroadcaster *, const std::type_info &)> & |
f | ) |
|
◆ RemoveTuple()
void JBroadcasterMessageMap::RemoveTuple |
( |
const std::type_info & |
key, |
|
|
const JBroadcaster * |
obj |
|
) |
| |
◆ SetItem()
void JBroadcasterMessageMap::SetItem |
( |
const std::type_info & |
key, |
|
|
JBroadcaster * |
obj, |
|
|
boost::any * |
f, |
|
|
std::function< void()> * |
d |
|
) |
| |
The element is set if it already existed and 'type' is kIfOld or kAlways (the default) or if it did not exist and 'type' is kIfNew or kAlways.
Returns true if the element was set, false otherwise. existed is set to true if there was something already there.
We prepend new items so they get the -next- message.
The documentation for this class was generated from the following files: