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

◆ partialUpdate()

template<typename Key, typename Value, typename UpdateTag>
template<typename UpdateValue>
std::function< void(const Key &, const UpdateValue &)> DataStorm::MultiKeyWriter< Key, Value, UpdateTag >::partialUpdate ( const UpdateTag & tag)
nodiscard

Gets a partial update generator function for the given partial update tag.

When called, the returned function generates a SampleEvent::PartialUpdate sample with the given partial update value. The UpdateValue template parameter must match the UpdateValue type used to register the updater with the Topic::setUpdater method. A partial update resolves against the key's current value, so the key must have a current value when the returned function is called: a full value was written for the key and the key was not since removed. Calling the returned function for a key with no current value is an application error that throws std::logic_error and publishes nothing.

Parameters
tagThe partial update tag.

Definition at line 1482 of file DataStorm.h.