|
FreeNOS
|
Objects which can be compared to each other. More...
#include <Comparable.h>
Public Member Functions | |
| virtual | ~Comparable () |
| Class destructor. | |
| virtual bool | equals (const T &t) const =0 |
| Test if an object is equal to an other object. | |
| virtual int | compareTo (const T &t) const =0 |
| Compares this Comparable to the given Comparable. | |
Objects which can be compared to each other.
Definition at line 34 of file Comparable.h.
|
inlinevirtual |
Class destructor.
Definition at line 41 of file Comparable.h.
|
pure virtual |
Compares this Comparable to the given Comparable.
This function checks whether this Comparable is equal to, less, or greater then the given Comparable.
| t | The Comparable to compare us to. |
Implemented in Associative< K, V >, and Sequence< T >.
|
pure virtual |
Test if an object is equal to an other object.
| t | Object instance. |
Implemented in Associative< K, V >, and Sequence< T >.