IComparable Class Reference
[Types]

Lets Hashtable (through Math) use pointer keys. Implementors of IComparable assume that the argument is of their type. I.e., arbitrary types cannot be passed to Equals and Compare. More...

#include <types.h>

Inheritance diagram for IComparable:
IHashable BigInteger Date DateTime Directory IConvertable IJsObject Null Numeric String Undefined

List of all members.

Public Member Functions

virtual bool Equals (const IComparable &a) const =0
virtual int Compare (const IComparable &a) const =0
virtual int32 MajicNumber () const =0
 Class instances with the same majic number are of the same type (can be casted). Majic numbers above 0xFFFF are available for user applications.
virtual int32 HashCode () const =0

Detailed Description

Lets Hashtable (through Math) use pointer keys. Implementors of IComparable assume that the argument is of their type. I.e., arbitrary types cannot be passed to Equals and Compare.

Definition at line 350 of file types.h.


The documentation for this class was generated from the following files: