ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostUpdate/Host.hpp
(Generate patch)

Comparing HostUpdate/Host.hpp (file contents):
Revision 12 by Douglas Thrift, 2003-11-06T23:43:01-08:00 vs.
Revision 13 by Douglas Thrift, 2003-11-07T12:17:57-08:00

# Line 46 | Line 46 | public:
46          string getName() const { return name; }
47          string getAddress() const { return inet_ntoa(*address); }
48          string getPlatform() const { return platform; }
49 <        void operator++();
50 <        void operator++(int) { operator++(); }
51 <        void operator--();
52 <        void operator--(int) { operator--(); }
49 >        bool operator==(const Host& host) const;
50 >        bool operator!=(const Host& host) const { return !(*this == host); }
51 >        bool operator<(const Host& host) const { return this->host < host.host; }
52 >        bool operator>(const Host& host) const { return this->host > host.host; }
53 >        Host operator++();
54 >        Host operator++(int);
55 >        Host operator--();
56 >        Host operator--(int);
57   };
58  
59   #endif // _Host_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines