symbolic
|
#include <combination_generator.h>
Public Member Functions | |
CombinationGenerator (const std::vector< ContainerT * > &options) | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
size_t | size () const |
bool | empty () const |
iterator::value_type | at (int i) const |
iterator::value_type | operator[] (int i) const |
int | find (const typename iterator::value_type &combination) const |
Class for generating all combinations of a collection of sequences.
This class contains no mutable member variables. All the state is held inside the iterator, meaning multiple parallel instances can use the same generator simultaneously.
Assumes that each option has at least one element.
|
inline |
Access specified element with wrapping and bounds checking.
|
inline |
Whether this combination generator is empty.
|
inline |
Get index of given combination.
|
inline |
Access specified element without bounds checking.
|
inline |
Number of total combinations.