40 void inputx(
const int xstrip);
42 void inputy(
const int ystrip);
std::ostream & operator<<(std::ostream &os, const PairBuilder &e)
Overloaded "operator <<" for output of PairBuilder objects.
Class to build pairs of XY values.
int xOfPairAt(const int indx) const
Return the X value of a specific pair.
void formNewPairsWithY(const int yval)
int numberOfPairs() const
Return the number of XY pairs made.
const PairVector & pairs() const
Return the pairs as a vector of pairs of integers.
float weight() const
Return the 'weight', = 1/(number of pairs)
void inputy(const int ystrip)
Input a new y value.
void inputx(const int xstrip)
Input a new x value.
int yOfPairAt(const int indx) const
Return the Y value of a specific pair.
std::vector< XYPair > PairVector
void inputxy(const int ystrip)
Input a new y value.
void formNewPairsWithX(const int xval)
PairVector m_pairs
Vector to hold the pairs produced.
std::pair< int, int > XYPair
XYPair pairAtIndex(const int indx) const
Return a specific XY pair at some vector index.
IntSet m_xvalues
use sets to avoid duplicate values