Struct block_cluster_metrics_data

Inheritance Relationships

Base Type

  • public rmetrics::base_data

Struct Documentation

struct block_cluster_metrics_data : public rmetrics::base_data

Public Functions

inline explicit block_cluster_metrics_data(size_t n_clusters)
inline block_cluster_metrics_data &operator+=(const block_cluster_metrics_data &rhs)

Accumulate data. We ignore the “cum” field on rhs, and accumulate into our “cum” field using the “interval” field of rhs.

This is the most meaningful semantics I could come up with; I couldn’t find a way to justify accumulating already cumulative data again (it would have required some additional changes/contortions elsewhere).

Public Members

block_cluster_metrics_data_impl cum
std::vector<cluster_extent> extents = {}
block_cluster_metrics_data_impl interval