Definition at line 1388 of file utilities.cpp.
◆ SubListGenerator() [1/2]
SubListGenerator::SubListGenerator |
( |
int * |
elems, |
|
|
int |
numElems, |
|
|
int |
numSamps |
|
) |
| |
|
inline |
◆ SubListGenerator() [2/2]
SubListGenerator::SubListGenerator |
( |
Catch::Generators::GeneratorWrapper< int > && |
gen, |
|
|
int |
numSamps, |
|
|
const int * |
exclude, |
|
|
int |
numExclude |
|
) |
| |
|
inline |
Definition at line 1433 of file utilities.cpp.
1438 vector<int> elems = vector<int>();
1439 do { elems.push_back(gen.get()); }
while (gen.next());
1443 list = (
int*) malloc(elems.size() *
sizeof *
list);
1444 for (
size_t i=0; i<elems.size(); i++) {
1445 int elem = elems[i];
1446 bool present =
false;
1447 for (
int j=0; j<numExclude; j++)
1448 if (elem == exclude[j]) {
References createSublist(), DEMAND, len, list, prepareSublist(), and sublen.
◆ ~SubListGenerator()
SubListGenerator::~SubListGenerator |
( |
| ) |
|
|
inline |
◆ createSublist()
void SubListGenerator::createSublist |
( |
| ) |
|
|
inlineprivate |
◆ get()
int* const& SubListGenerator::get |
( |
| ) |
const |
|
inlineoverride |
◆ next()
bool SubListGenerator::next |
( |
| ) |
|
|
inlineoverride |
◆ prepareSublist()
void SubListGenerator::prepareSublist |
( |
| ) |
|
|
inlineprivate |
◆ featured
vector<bool> SubListGenerator::featured |
|
private |
◆ len
int SubListGenerator::len |
|
private |
◆ list
int* SubListGenerator::list |
|
private |
◆ sublen
int SubListGenerator::sublen |
|
private |
◆ sublist
int* SubListGenerator::sublist |
|
private |
The documentation for this class was generated from the following file: