omc::Combination Class Reference
List of all members.
Constructor & Destructor Documentation
omc::Combination::Combination |
( |
size_t |
n |
) |
[inline] |
Constructor: empty combination.
omc::Combination::Combination |
( |
const std::string & |
s |
) |
[inline] |
Constructor: from a "string-represented combination", e.g. "100" means chooseing element 0 from a set of 3 elements.
Member Function Documentation
void omc::Combination::add |
( |
index_t |
i |
) |
[inline] |
Add element i into the combination.
bool omc::Combination::has |
( |
index_t |
i |
) |
const [inline] |
Test if element i is in the current combination.
bool omc::Combination::next |
( |
|
) |
[inline] |
Generate the next lexicographically greater permutation.
bool omc::Combination::operator== |
( |
const Combination & |
comb |
) |
const [inline] |
size_t omc::Combination::size |
( |
|
) |
const [inline] |
Create a set representing the current combination. Get the number of elements.
The documentation for this class was generated from the following file: