Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
DataStorm::SingleKeyWriter< Key, Value, UpdateTag > Class Template Reference

The key writer to write the data element associated with a given key. More...

#include <DataStorm/DataStorm.h>

Inheritance diagram for DataStorm::SingleKeyWriter< Key, Value, UpdateTag >:

Public Member Functions

 SingleKeyWriter (const Topic< Key, Value, UpdateTag > &topic, const Key &key, std::string name=std::string(), const WriterConfig &config=WriterConfig())
 Constructs a new writer for the given key.
 SingleKeyWriter (SingleKeyWriter &&writer) noexcept
 Move constructor.
void add (const Value &value)
 Adds the data element.
SingleKeyWriteroperator= (SingleKeyWriter &&writer) noexcept
 Move assignment operator.
template<typename UpdateValue>
std::function< void(const UpdateValue &)> partialUpdate (const UpdateTag &tag)
 Gets a partial update generator function for the given partial update tag.
void remove () noexcept
 Removes the data element. This generates a SampleEvent::Remove sample.
void update (const Value &value)
 Updates the data element.

Detailed Description

template<typename Key, typename Value, typename UpdateTag = std::string>
class DataStorm::SingleKeyWriter< Key, Value, UpdateTag >

The key writer to write the data element associated with a given key.

Definition at line 726 of file DataStorm.h.


The documentation for this class was generated from the following file: