1
- // Copyright 2018 -2024 Bloomberg Finance L.P.
1
+ // Copyright 2014 -2024 Bloomberg Finance L.P.
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
//
4
4
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -7922,7 +7922,6 @@ namespace mqbcfg {
7922
7922
7923
7923
class StatsConfig {
7924
7924
// INSTANCE DATA
7925
- bsl::vector<bsl::string> d_appIdTagDomains;
7926
7925
bsl::vector<StatPluginConfig> d_plugins;
7927
7926
StatsPrinterConfig d_printer;
7928
7927
int d_snapshotInterval;
@@ -7931,24 +7930,20 @@ class StatsConfig {
7931
7930
template <typename t_HASH_ALGORITHM>
7932
7931
void hashAppendImpl(t_HASH_ALGORITHM& hashAlgorithm) const;
7933
7932
7934
- bool isEqualTo(const StatsConfig& rhs) const;
7935
-
7936
7933
public:
7937
7934
// TYPES
7938
7935
enum {
7939
- ATTRIBUTE_ID_SNAPSHOT_INTERVAL = 0,
7940
- ATTRIBUTE_ID_APP_ID_TAG_DOMAINS = 1,
7941
- ATTRIBUTE_ID_PLUGINS = 2,
7942
- ATTRIBUTE_ID_PRINTER = 3
7936
+ ATTRIBUTE_ID_SNAPSHOT_INTERVAL = 0,
7937
+ ATTRIBUTE_ID_PLUGINS = 1,
7938
+ ATTRIBUTE_ID_PRINTER = 2
7943
7939
};
7944
7940
7945
- enum { NUM_ATTRIBUTES = 4 };
7941
+ enum { NUM_ATTRIBUTES = 3 };
7946
7942
7947
7943
enum {
7948
- ATTRIBUTE_INDEX_SNAPSHOT_INTERVAL = 0,
7949
- ATTRIBUTE_INDEX_APP_ID_TAG_DOMAINS = 1,
7950
- ATTRIBUTE_INDEX_PLUGINS = 2,
7951
- ATTRIBUTE_INDEX_PRINTER = 3
7944
+ ATTRIBUTE_INDEX_SNAPSHOT_INTERVAL = 0,
7945
+ ATTRIBUTE_INDEX_PLUGINS = 1,
7946
+ ATTRIBUTE_INDEX_PRINTER = 2
7952
7947
};
7953
7948
7954
7949
// CONSTANTS
@@ -8052,10 +8047,6 @@ class StatsConfig {
8052
8047
// Return a reference to the modifiable "SnapshotInterval" attribute of
8053
8048
// this object.
8054
8049
8055
- bsl::vector<bsl::string>& appIdTagDomains();
8056
- // Return a reference to the modifiable "AppIdTagDomains" attribute of
8057
- // this object.
8058
-
8059
8050
bsl::vector<StatPluginConfig>& plugins();
8060
8051
// Return a reference to the modifiable "Plugins" attribute of this
8061
8052
// object.
@@ -8110,10 +8101,6 @@ class StatsConfig {
8110
8101
int snapshotInterval() const;
8111
8102
// Return the value of the "SnapshotInterval" attribute of this object.
8112
8103
8113
- const bsl::vector<bsl::string>& appIdTagDomains() const;
8114
- // Return a reference offering non-modifiable access to the
8115
- // "AppIdTagDomains" attribute of this object.
8116
-
8117
8104
const bsl::vector<StatPluginConfig>& plugins() const;
8118
8105
// Return a reference offering non-modifiable access to the "Plugins"
8119
8106
// attribute of this object.
@@ -8128,7 +8115,9 @@ class StatsConfig {
8128
8115
// have the same value, and 'false' otherwise. Two attribute objects
8129
8116
// have the same value if each respective attribute has the same value.
8130
8117
{
8131
- return lhs.isEqualTo(rhs);
8118
+ return lhs.snapshotInterval() == rhs.snapshotInterval() &&
8119
+ lhs.plugins() == rhs.plugins() &&
8120
+ lhs.printer() == rhs.printer();
8132
8121
}
8133
8122
8134
8123
friend bool operator!=(const StatsConfig& lhs, const StatsConfig& rhs)
@@ -16387,19 +16376,10 @@ void StatsConfig::hashAppendImpl(t_HASH_ALGORITHM& hashAlgorithm) const
16387
16376
{
16388
16377
using bslh::hashAppend;
16389
16378
hashAppend(hashAlgorithm, this->snapshotInterval());
16390
- hashAppend(hashAlgorithm, this->appIdTagDomains());
16391
16379
hashAppend(hashAlgorithm, this->plugins());
16392
16380
hashAppend(hashAlgorithm, this->printer());
16393
16381
}
16394
16382
16395
- inline bool StatsConfig::isEqualTo(const StatsConfig& rhs) const
16396
- {
16397
- return this->snapshotInterval() == rhs.snapshotInterval() &&
16398
- this->appIdTagDomains() == rhs.appIdTagDomains() &&
16399
- this->plugins() == rhs.plugins() &&
16400
- this->printer() == rhs.printer();
16401
- }
16402
-
16403
16383
// CLASS METHODS
16404
16384
// MANIPULATORS
16405
16385
template <typename t_MANIPULATOR>
@@ -16413,13 +16393,6 @@ int StatsConfig::manipulateAttributes(t_MANIPULATOR& manipulator)
16413
16393
return ret;
16414
16394
}
16415
16395
16416
- ret = manipulator(
16417
- &d_appIdTagDomains,
16418
- ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_APP_ID_TAG_DOMAINS]);
16419
- if (ret) {
16420
- return ret;
16421
- }
16422
-
16423
16396
ret = manipulator(&d_plugins,
16424
16397
ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_PLUGINS]);
16425
16398
if (ret) {
@@ -16446,11 +16419,6 @@ int StatsConfig::manipulateAttribute(t_MANIPULATOR& manipulator, int id)
16446
16419
&d_snapshotInterval,
16447
16420
ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_SNAPSHOT_INTERVAL]);
16448
16421
}
16449
- case ATTRIBUTE_ID_APP_ID_TAG_DOMAINS: {
16450
- return manipulator(
16451
- &d_appIdTagDomains,
16452
- ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_APP_ID_TAG_DOMAINS]);
16453
- }
16454
16422
case ATTRIBUTE_ID_PLUGINS: {
16455
16423
return manipulator(&d_plugins,
16456
16424
ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_PLUGINS]);
@@ -16484,11 +16452,6 @@ inline int& StatsConfig::snapshotInterval()
16484
16452
return d_snapshotInterval;
16485
16453
}
16486
16454
16487
- inline bsl::vector<bsl::string>& StatsConfig::appIdTagDomains()
16488
- {
16489
- return d_appIdTagDomains;
16490
- }
16491
-
16492
16455
inline bsl::vector<StatPluginConfig>& StatsConfig::plugins()
16493
16456
{
16494
16457
return d_plugins;
@@ -16511,12 +16474,6 @@ int StatsConfig::accessAttributes(t_ACCESSOR& accessor) const
16511
16474
return ret;
16512
16475
}
16513
16476
16514
- ret = accessor(d_appIdTagDomains,
16515
- ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_APP_ID_TAG_DOMAINS]);
16516
- if (ret) {
16517
- return ret;
16518
- }
16519
-
16520
16477
ret = accessor(d_plugins, ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_PLUGINS]);
16521
16478
if (ret) {
16522
16479
return ret;
@@ -16541,11 +16498,6 @@ int StatsConfig::accessAttribute(t_ACCESSOR& accessor, int id) const
16541
16498
d_snapshotInterval,
16542
16499
ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_SNAPSHOT_INTERVAL]);
16543
16500
}
16544
- case ATTRIBUTE_ID_APP_ID_TAG_DOMAINS: {
16545
- return accessor(
16546
- d_appIdTagDomains,
16547
- ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_APP_ID_TAG_DOMAINS]);
16548
- }
16549
16501
case ATTRIBUTE_ID_PLUGINS: {
16550
16502
return accessor(d_plugins,
16551
16503
ATTRIBUTE_INFO_ARRAY[ATTRIBUTE_INDEX_PLUGINS]);
@@ -16579,11 +16531,6 @@ inline int StatsConfig::snapshotInterval() const
16579
16531
return d_snapshotInterval;
16580
16532
}
16581
16533
16582
- inline const bsl::vector<bsl::string>& StatsConfig::appIdTagDomains() const
16583
- {
16584
- return d_appIdTagDomains;
16585
- }
16586
-
16587
16534
inline const bsl::vector<StatPluginConfig>& StatsConfig::plugins() const
16588
16535
{
16589
16536
return d_plugins;
0 commit comments