// triple.h


#ifndef TRIPLE_H
#define TRIPLE_H

struct triple {
	int s;
	int p;
	int o;

	triple(int ss, int pp, int oo) :
		s(ss), p(pp), o(oo)
	{}

	bool operator==(const triple& t) const {
		return s==t.s && p==t.p && o==t.o;
	}

	bool operator<(const triple& t) const {
		return	s < t.s ||
				s == t.s && p < t.p ||
				s == t.s && p == t.p && o < t.o;
	}
};


#endif /* defined(TRIPLE_H) */

