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_ |