TestNode.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2002 Sony Corporation 
00003 //
00004 // Permission to use, copy, modify, and redistribute this software for
00005 // non-commercial use is hereby granted.
00006 //
00007 // This software is provided "as is" without warranty of any kind,
00008 // either expressed or implied, including but not limited to the
00009 // implied warranties of fitness for a particular purpose.
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 };

Generated on Sun Dec 2 23:04:30 2007 for openSDK by  doxygen 1.3.9.1