00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <stdio.h>
00013
00014 class TestNode {
00015 public:
00016 TestNode(int i) : node(i) {}
00017 ~TestNode() {}
00018
00019 friend bool operator< (const TestNode& lhs, const TestNode& rhs) {
00020 return (lhs.node < rhs.node) ? true : false;
00021 }
00022 friend bool operator== (const TestNode& lhs, const TestNode& rhs) {
00023 return (lhs.node == rhs.node) ? true : false;
00024 }
00025
00026 void Print() const { printf("%d", node); }
00027
00028 private:
00029 int node;
00030 };