#include <mobject.h>
Inheritance diagram for Comparable::
Public Methods | |
Comparable () | |
virtual int | hashfunc (int hashsize) const |
virtual int | operator== (const Comparable &other) const=0 |
virtual int | compare (const Comparable &other) const |
It has also a hash function for hashing.
Definition at line 277 of file mobject.h.
|
This should be overloaded to enable quicksorting of the inheritor.
|
|
Hash function. Inheritors should overload this if they want to be used as a key in Map, etc.
Reimplemented in Int, and MagiC::String. |
|
Equality comparison. Must be overloaded. Reimplemented in Int, Float, and MagiC::String. |