This class implements a CoordinateSets
object that will build all the subsets of a Coordinates
object that are of a cardinality in a certain range.
More...
|
| Subsets (const Coordinates &coords, Coordinates::size_type minOrder, Coordinates::size_type maxOrder) |
| Constructs a set of all subsets of coords with minimum and maximum cardinality specified by minOrder and maxOrder .
|
|
const Coordinates & | coords () const |
| Returns the coordinates, as passed to the constructor.
|
|
Coordinates::size_type | minOrder () const |
| Returns minOrder , as passed to the constructor.
|
|
Coordinates::size_type | maxOrder () const |
| Returns maxOrder , as passed to the constructor.
|
|
const_iterator | begin () const |
| Returns an iterator pointing to the first element of *this .
|
|
const_iterator | end () const |
| Returns an iterator pointing past the last element of *this .
|
|
This class implements a CoordinateSets
object that will build all the subsets of a Coordinates
object that are of a cardinality in a certain range.
This is a less flexible class than FromRanges
but, in the example Subsets.cc
it has been slightly faster in our tests.
◆ Subsets()
LatticeTester::CoordinateSets::Subsets::Subsets |
( |
const Coordinates & | coords, |
|
|
Coordinates::size_type | minOrder, |
|
|
Coordinates::size_type | maxOrder ) |
Constructs a set of all subsets of coords
with minimum and maximum cardinality specified by minOrder
and maxOrder
.
For example, to select all 1, 2, and 3-tuples over coordinates 2, 4, 6, one may use the declaration Subsets tousens(ens, 1, 3)
, where set ens
is {2,4,6}
; this gives the sets tousens = {{2}, {4}, {6}, {2, 4}, {2, 6}, {4, 6}, {2, 4, 6}}
.
◆ coords()
const Coordinates & LatticeTester::CoordinateSets::Subsets::coords |
( |
| ) |
const |
|
inline |
Returns the coordinates, as passed to the constructor.
◆ minOrder()
Coordinates::size_type LatticeTester::CoordinateSets::Subsets::minOrder |
( |
| ) |
const |
|
inline |
Returns minOrder
, as passed to the constructor.
◆ maxOrder()
Coordinates::size_type LatticeTester::CoordinateSets::Subsets::maxOrder |
( |
| ) |
const |
|
inline |
Returns maxOrder
, as passed to the constructor.
◆ begin()
const_iterator LatticeTester::CoordinateSets::Subsets::begin |
( |
| ) |
const |
|
inline |
Returns an iterator pointing to the first element of *this
.
◆ end()
Returns an iterator pointing past the last element of *this
.
The documentation for this class was generated from the following file: