proxygen
|
#include <SlidingWindow.h>
Public Member Functions | |
SlidingWindow (Function< BucketT(void)> fn, size_t numBuckets) | |
SlidingWindow (SlidingWindow &&rhs) | |
std::vector< BucketT > | get () const |
void | set (size_t idx, BucketT bucket) |
BucketT | front () const |
void | slide (size_t nBuckets) |
Private Attributes | |
Function< BucketT(void)> | fn_ |
std::vector< BucketT > | buckets_ |
size_t | curHead_ |
Definition at line 33 of file SlidingWindow.h.
folly::detail::SlidingWindow< BucketT >::SlidingWindow | ( | Function< BucketT(void)> | fn, |
size_t | numBuckets | ||
) |
Definition at line 27 of file SlidingWindow-defs.h.
References folly::detail::SlidingWindow< BucketT >::buckets_, folly::detail::SlidingWindow< BucketT >::fn_, and i.
folly::detail::SlidingWindow< BucketT >::SlidingWindow | ( | SlidingWindow< BucketT > && | rhs | ) |
Definition at line 39 of file SlidingWindow-defs.h.
BucketT folly::detail::SlidingWindow< BucketT >::front | ( | ) | const |
Definition at line 54 of file SlidingWindow-defs.h.
References folly::detail::SlidingWindow< BucketT >::buckets_, and folly::detail::SlidingWindow< BucketT >::curHead_.
Referenced by folly::detail::BufferedSlidingWindow< DigestT, ClockT >::onNewDigest().
std::vector< BucketT > folly::detail::SlidingWindow< BucketT >::get | ( | ) | const |
Definition at line 45 of file SlidingWindow-defs.h.
References folly::detail::SlidingWindow< BucketT >::buckets_, and folly::detail::SlidingWindow< BucketT >::curHead_.
Referenced by folly::detail::BufferedSlidingWindow< DigestT, ClockT >::get().
void folly::detail::SlidingWindow< BucketT >::set | ( | size_t | idx, |
BucketT | bucket | ||
) |
Definition at line 59 of file SlidingWindow-defs.h.
References folly::detail::SlidingWindow< BucketT >::buckets_, folly::detail::SlidingWindow< BucketT >::curHead_, and folly::gen::move.
Referenced by folly::detail::BufferedSlidingWindow< DigestT, ClockT >::onNewDigest().
void folly::detail::SlidingWindow< BucketT >::slide | ( | size_t | nBuckets | ) |
Definition at line 67 of file SlidingWindow-defs.h.
References folly::detail::SlidingWindow< BucketT >::buckets_, folly::detail::SlidingWindow< BucketT >::curHead_, folly::detail::SlidingWindow< BucketT >::fn_, i, and min.
Referenced by folly::detail::BufferedSlidingWindow< DigestT, ClockT >::onNewDigest().
|
private |
Definition at line 53 of file SlidingWindow.h.
Referenced by folly::detail::SlidingWindow< BucketT >::front(), folly::detail::SlidingWindow< BucketT >::get(), folly::detail::SlidingWindow< BucketT >::set(), folly::detail::SlidingWindow< BucketT >::slide(), and folly::detail::SlidingWindow< BucketT >::SlidingWindow().
|
private |
Definition at line 54 of file SlidingWindow.h.
Referenced by folly::detail::SlidingWindow< BucketT >::front(), folly::detail::SlidingWindow< BucketT >::get(), folly::detail::SlidingWindow< BucketT >::set(), and folly::detail::SlidingWindow< BucketT >::slide().
|
private |
Definition at line 52 of file SlidingWindow.h.
Referenced by folly::detail::SlidingWindow< BucketT >::slide(), and folly::detail::SlidingWindow< BucketT >::SlidingWindow().