@@ -39,7 +39,7 @@ struct DurationKeyTag { };
39
39
// / @brief Tag for index by interval start time.
40
40
struct IntervalStartTag { };
41
41
42
- // / @brief A multi index container holding pointers to MonitoredDurations .
42
+ // / @brief A multi index container holding pointers to durations .
43
43
// /
44
44
// / The durations in the container may be accessed using different indexes:
45
45
// / - using the index on DurationKey members, DurationKeyTag
@@ -75,10 +75,10 @@ typedef std::vector<MonitoredDurationPtr> MonitoredDurationCollection;
75
75
// / @brief Type for a pointer to a collection of MonitoredDurationPtrs.
76
76
typedef boost::shared_ptr<MonitoredDurationCollection> MonitoredDurationCollectionPtr;
77
77
78
- // / @brief Maintains an in-memory store of MonitoredDurations
78
+ // / @brief Maintains an in-memory store of durations
79
79
// /
80
80
// / Provides essential CRUD functions for managing a collection of
81
- // / MonitoredDurations . Additionally there are finders that can return
81
+ // / durations . Additionally there are finders that can return
82
82
// / durations by DurationKey (others are TBD)
83
83
// / All finders return copies of the durations found, rather than the
84
84
// / stored duration itself.
@@ -100,7 +100,7 @@ class MonitoredDurationStore {
100
100
// / condition, then a copy of the in-store duration is returned, otherwise an empty
101
101
// / pointer is returned.
102
102
// /
103
- // / If The duration does not exist in the store, then one is created and inserted
103
+ // / If the duration does not exist in the store, then one is created and inserted
104
104
// / into the store after adding the sample. An empty pointer is returned.
105
105
// /
106
106
// / This function does not/must not modify any index keys.
@@ -112,7 +112,7 @@ class MonitoredDurationStore {
112
112
// / pointer otherwise.
113
113
MonitoredDurationPtr addDurationSample (DurationKeyPtr key, const Duration & sample);
114
114
115
- // / @brief Creates a new MonitoredDuration and adds it to the store
115
+ // / @brief Creates a new duration and adds it to the store
116
116
// /
117
117
// / @param key key value of the duration to create.
118
118
// /
@@ -134,7 +134,7 @@ class MonitoredDurationStore {
134
134
// /
135
135
// / @param duration duration to update.
136
136
// /
137
- // / @throw InvalidOperation if MonitoredDuration does not exist in the store.
137
+ // / @throw InvalidOperation if duration does not exist in the store.
138
138
void updateDuration (MonitoredDurationPtr& duration);
139
139
140
140
// / @brief Removes the duration from the store.
@@ -161,8 +161,7 @@ class MonitoredDurationStore {
161
161
// /
162
162
// / @return a collection of the matching durations, ordered by current interval
163
163
// / start time.
164
- MonitoredDurationCollectionPtr getOverdueReports (const Timestamp& since
165
- = dhcp::PktEvent::now());
164
+ MonitoredDurationCollectionPtr getOverdueReports (const Timestamp& since = dhcp::PktEvent::now());
166
165
167
166
// / @brief Removes all durations from the store.
168
167
void clear ();
@@ -178,7 +177,7 @@ class MonitoredDurationStore {
178
177
// / @brief Convenience method to verify a key is valid for an operation.
179
178
// /
180
179
// / @param label description of where the check is being made, appears in exception text.
181
- // / @param key key to validate
180
+ // / @param key key to validate.
182
181
// /
183
182
// / @throw BadValue if the key is either empty or its family does not
184
183
// / match the store.
@@ -187,7 +186,7 @@ class MonitoredDurationStore {
187
186
// / @brief Protocol family AF_INET or AF_INET6.
188
187
uint16_t family_;
189
188
190
- // / @brief The length of time over data for a single MonitoredDuration is
189
+ // / @brief The length of time over data for a single duration is
191
190
// / accumulated before reporting.
192
191
Duration interval_duration_;
193
192
0 commit comments