Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ onConnectedKeys()

template<typename Key, typename Value, typename UpdateTag>
void DataStorm::Writer< Key, Value, UpdateTag >::onConnectedKeys ( std::function< void(std::vector< Key >)> init,
std::function< void(CallbackReason, Key)> update )
noexcept

Calls the given functions to provide the initial set of connected keys and when a key is added or removed from the set of connected keys.

If callback functions are already set, they will be replaced. The connected keys represent the set of keys for which writers are connected to this reader. The init callback is always called after this method returns to provide the initial set of connected keys. The update callback is called when new keys are added or removed from the set of connected keys.

Parameters
initThe function to call with the initial set of connected keys.
updateThe function to call when a key is added or removed from the set.

Definition at line 1301 of file DataStorm.h.