blob: 52a49688b643af8ed6ff4e1ca68fc3c743182f5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace proton {
class AttributeMetrics;
class LegacyAttributeMetrics;
/**
* A collection of references to all the metrics for a set of attributes.
*/
class AttributeMetricsCollection
{
private:
AttributeMetrics &_metrics;
LegacyAttributeMetrics &_legacyMetrics;
public:
AttributeMetricsCollection(AttributeMetrics &metrics,
LegacyAttributeMetrics &legacyMetrics)
: _metrics(metrics),
_legacyMetrics(legacyMetrics)
{
}
AttributeMetrics &getMetrics() const { return _metrics; }
LegacyAttributeMetrics &getLegacyMetrics() const { return _legacyMetrics; }
};
} // namespace proton
|