Definition at line 76 of file DeterministicSchedule.cpp.
folly::test::UniformSubset::UniformSubset |
( |
uint64_t |
seed, |
|
|
size_t |
subsetSize, |
|
|
size_t |
stepsBetweenSelect |
|
) |
| |
|
inline |
void folly::test::UniformSubset::adjustPermSize |
( |
size_t |
numActive | ) |
|
|
inlineprivate |
Definition at line 101 of file DeterministicSchedule.cpp.
References x.
102 if (
perm_.size() > numActive) {
107 [=](
size_t x) {
return x >= numActive; }),
110 while (
perm_.size() < numActive) {
114 assert(
perm_.size() == numActive);
size_t folly::test::UniformSubset::operator() |
( |
size_t |
numActive | ) |
|
|
inline |
void folly::test::UniformSubset::shufflePrefix |
( |
| ) |
|
|
inlineprivate |
std::vector<size_t> folly::test::UniformSubset::perm_ |
|
private |
const size_t folly::test::UniformSubset::stepsBetweenSelect_ |
|
private |
size_t folly::test::UniformSubset::stepsLeft_ |
|
private |
const size_t folly::test::UniformSubset::subsetSize_ |
|
private |
std::function<size_t(size_t)> folly::test::UniformSubset::uniform_ |
|
private |
The documentation for this struct was generated from the following file: