17 #ifndef RECORDFUTURE_HPP_
18 #define RECORDFUTURE_HPP_
30 : future_(std::move(future)), recordFutureId_(recordFutureCounter++) {}
33 : future_(std::move(recordFuture.future_)), recordFutureId_(recordFuture.recordFutureId_) {}
43 return recordFutureId_;
47 return recordFutureId_ < recordFuture.recordFutureId_;
51 return recordFutureId_ == recordFuture.recordFutureId_;
55 return recordFutureId_ != recordFuture.recordFutureId_;
74 typedef std::atomic_size_t RecordFutureCounterType;
75 static RecordFutureCounterType recordFutureCounter;
78 std::future<RecordInfo> future_;
79 std::size_t recordFutureId_;
86 struct hash<kaa::RecordFuture>
RecordFuture(std::future< RecordInfo > &&future)
RecordFuture(RecordFuture &&recordFuture)
bool operator!=(const RecordFuture &recordFuture) const
result_type operator()(argument_type const &s) const
bool operator<(const RecordFuture &recordFuture) const
kaa::RecordFuture argument_type
bool operator==(const RecordFuture &recordFuture) const
Describes unique log record delivery info.
RecordFuture operator=(RecordFuture &&recordFuture)
std::size_t getRecordFutureId() const