17 #ifndef BUCKETINFO_HPP_
18 #define BUCKETINFO_HPP_
45 : bucketId_(bucketId), logCount_(logCount) {}
66 return bucketId_ < info.bucketId_;
70 return bucketId_ == info.bucketId_;
74 return bucketId_ != info.bucketId_;
78 std::int32_t bucketId_ = 0;
79 std::size_t logCount_ = 0;
bool operator<(const BucketInfo &info) const
BucketInfo()
Constructs an empty BucketInfo object.
bool operator==(const BucketInfo &info) const
bool operator!=(const BucketInfo &info) const
std::int32_t getBucketId() const
Returns the id of a bucket.
BucketInfo(std::int32_t bucketId, std::size_t logCount)
Constructs the BucketInfo object which contains a useful information about a log bucket.
Describes a unique log bucket.
std::size_t getLogCount() const