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

Public Member Functions

 CountFromLevel (size_t level)
 
uint64_t 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 >::CountFromLevel

Definition at line 324 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 >::CountFromLevel::CountFromLevel ( size_t  level)
inlineexplicit

Definition at line 325 of file TimeseriesHistogram.h.

Member Function Documentation

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

Definition at line 327 of file TimeseriesHistogram.h.

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

327  {
328  return bucket.count(level_);
329  }

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 >::CountFromLevel::level_
private

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