/* $Id: ppdtriple.cc 1107 2007-04-16 23:59:13Z rvernica $ Copyright (C) 2007 by The Regents of the University of California Redistribution of this file is permitted under the terms of the GNU Public License (GPL). Date: 01/14/2006 Author: Rares Vernica */ #include "ppdtriple.h" ostream& operator<<(ostream &out, const PPDTriple &t) { return out << t.query << " " << t.pivot << " " << t.str << " " << t.vect1 << " " << t.vect2 << " " << t.dist; } istream& operator>>(istream &in, PPDTriple &t) { return in >> t.query >> t.pivot >> t.str >> t.vect1 >> t.vect2 >> t.dist; } bool operator<(const PPDTriple &left, const PPDTriple &right) { if (&left == &right) return false; if (left.query != right.query) return left.query < right.query; if (left.pivot != right.pivot) return left.pivot < right.pivot; return left.str < right.str; }