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

◆ setUpdater()

template<typename Key, typename Value, typename UpdateTag>
template<typename UpdateValue>
void DataStorm::Topic< Key, Value, UpdateTag >::setUpdater ( const UpdateTag & tag,
std::function< void(Value &, UpdateValue)> updater )
noexcept

Sets an updater function for the given update tag.

The function is called when a partial update is received or sent to compute the new value. The function is provided a copy of the latest value and the partial update, and it updates this value in place.

Parameters
tagThe update tag.
updaterThe updater function.

Definition at line 1665 of file DataStorm.h.