#ifndef DATUM_H_INCLUDED #define DATUM_H_INCLUDED #include #include #include template struct Datum { double x, y,; T value; Datum( double a, double b, T v ) : x( a ), y( b ), value( v ) {} }; template bool operator< ( const Datum &d1, const Datum &d2 ) { return d1.value < d2.value; } template bool operator== ( const Datum &d1, const Datum &d2 ) { return d1.x == d2.x && d1.y == d2.y && d1.value < d2.value; } typedef Datum IntDatum; typedef std::vector IntData; typedef std::back_insert_iterator< IntData > IntInserter; #endif // DATUM_H_INCLUDED