This class implements a CoordinateSets that will build all the subsets of a Coordinates object that are of a cardinality in a certain range.
More...
#include <latticetester/CoordinateSets.h>
This class implements a CoordinateSets 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}}
.
◆ begin()
const_iterator LatticeTester::CoordinateSets::Subsets::begin |
( |
| ) |
const |
|
inline |
Returns an iterator pointing to the first element of *this
.
◆ coords()
const Coordinates& LatticeTester::CoordinateSets::Subsets::coords |
( |
| ) |
const |
|
inline |
Returns the coordinates, as passed to the constructor.
◆ end()
Returns an iterator pointing past the last element of *this
.
◆ maxOrder()
Coordinates::size_type LatticeTester::CoordinateSets::Subsets::maxOrder |
( |
| ) |
const |
|
inline |
Returns maxOrder
, as passed to the constructor.
◆ minOrder()
Coordinates::size_type LatticeTester::CoordinateSets::Subsets::minOrder |
( |
| ) |
const |
|
inline |
Returns minOrder
, as passed to the constructor.
The documentation for this class was generated from the following files:
- include/latticetester/CoordinateSets.h
- src/CoordinateSets.cc