FreeNOS
|
Objects which can be compared to each other. More...
#include <Comparable.h>
Public Member Functions | |
virtual | ~Comparable () |
Class destructor. More... | |
virtual bool | equals (const T &t) const =0 |
Test if an object is equal to an other object. More... | |
virtual int | compareTo (const T &t) const =0 |
Compares this Comparable to the given Comparable. More... | |
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 Sequence< uint >, Sequence< TestInstance * >, Sequence< T >, Sequence< String >, Sequence< String * >, Sequence< Size >, Sequence< ProcessID >, Sequence< Process * >, Sequence< MpiHost::Packet * >, Sequence< List< Process * > * >, Sequence< List< InterruptHook * > * >, Sequence< List< HashTable::Bucket > >, Sequence< LinnGroup * >, Sequence< K >, Sequence< InterruptHook * >, Sequence< HashTable::Bucket >, Sequence< Handler * >, Sequence< FileSystemRequest * >, Sequence< Dirent * >, Sequence< Device * >, Sequence< char >, Sequence< ATADrive * >, Sequence< Argument * >, Associative< u32, LinnInode * >, Associative< u32, File * >, Associative< u16, UDPSocket * >, Associative< String, ShellCommand * >, Associative< String, FileCache * >, Associative< String, Argument * >, Associative< ProcessID, HashTable< String, Address > * >, Associative< ProcessID, Channel * >, Associative< K, V >, and Associative< IPV4::Address, ARP::ARPCache * >.
|
pure virtual |
Test if an object is equal to an other object.
t | Object instance. |
Implemented in Sequence< uint >, Sequence< TestInstance * >, Sequence< T >, Sequence< String >, Sequence< String * >, Sequence< Size >, Sequence< ProcessID >, Sequence< Process * >, Sequence< MpiHost::Packet * >, Sequence< List< Process * > * >, Sequence< List< InterruptHook * > * >, Sequence< List< HashTable::Bucket > >, Sequence< LinnGroup * >, Sequence< K >, Sequence< InterruptHook * >, Sequence< HashTable::Bucket >, Sequence< Handler * >, Sequence< FileSystemRequest * >, Sequence< Dirent * >, Sequence< Device * >, Sequence< char >, Sequence< ATADrive * >, Sequence< Argument * >, Associative< u32, LinnInode * >, Associative< u32, File * >, Associative< u16, UDPSocket * >, Associative< String, ShellCommand * >, Associative< String, FileCache * >, Associative< String, Argument * >, Associative< ProcessID, HashTable< String, Address > * >, Associative< ProcessID, Channel * >, Associative< K, V >, and Associative< IPV4::Address, ARP::ARPCache * >.