proxygen
folly::TimeseriesHistogram< T, CT, C >::AvgFromLevel Struct Reference

Public Member Functions

 AvgFromLevel (size_t level)
 
ValueType operator() (const ContainerType &bucket) const
 

Private Attributes

size_t level_
 

Detailed Description

template<class T, class CT = LegacyStatsClock<std::chrono::seconds>, class C = folly::MultiLevelTimeSeries<T, CT>>
struct folly::TimeseriesHistogram< T, CT, C >::AvgFromLevel

Definition at line 347 of file TimeseriesHistogram.h.

Constructor & Destructor Documentation

template<class T, class CT = LegacyStatsClock<std::chrono::seconds>, class C = folly::MultiLevelTimeSeries<T, CT>>
folly::TimeseriesHistogram< T, CT, C >::AvgFromLevel::AvgFromLevel ( size_t  level)
inlineexplicit

Definition at line 348 of file TimeseriesHistogram.h.

Member Function Documentation

template<class T, class CT = LegacyStatsClock<std::chrono::seconds>, class C = folly::MultiLevelTimeSeries<T, CT>>
ValueType folly::TimeseriesHistogram< T, CT, C >::AvgFromLevel::operator() ( const ContainerType bucket) const
inline

Definition at line 350 of file TimeseriesHistogram.h.

References folly::TimeseriesHistogram< T, CT, C >::CountFromLevel::level_.

350  {
351  return bucket.template avg<ValueType>(level_);
352  }

Member Data Documentation

template<class T, class CT = LegacyStatsClock<std::chrono::seconds>, class C = folly::MultiLevelTimeSeries<T, CT>>
size_t folly::TimeseriesHistogram< T, CT, C >::AvgFromLevel::level_
private

Definition at line 355 of file TimeseriesHistogram.h.


The documentation for this struct was generated from the following file: