Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Int Class Reference

Object-integer. More...

#include <mobject.h>

Inheritance diagram for Int::

Comparable Object List of all members.

Public Methods

 Int ()
 Int (const Int &o)
 Int (const String &o)
 Int (int o)
 Int (long o)
int toInt () const
long toLong () const
long& toLongRef ()
int operator< (const Int &o)
int operator== (const Int &o)
int hashfunc (int hashsize) const
int operator== (const Comparable &o) const
int operator!= (const Int &o)
Objectclone () const

Detailed Description

Object-integer.

Definition at line 315 of file mobject.h.


Member Function Documentation

Object * clone ( ) const [inline, virtual]
 

Clone should perform a full recursive cloning of the object.

The return type should vary by implementor.

Reimplemented from Object.

Definition at line 333 of file mobject.h.

int hashfunc ( int hashsize ) const [inline, virtual]
 

Hash function.

Inheritors should overload this if they want to be used as a key in Map, etc.

Returns:
Hash value.
Parameters:
hashsize   Hash size.

Reimplemented from Comparable.

Definition at line 330 of file mobject.h.

int operator== ( const Comparable & o ) const [virtual]
 

Equality comparison.

Must be overloaded.

Reimplemented from Comparable.


The documentation for this class was generated from the following file:
Generated at Tue Dec 4 19:53:30 2001 for MagiC++ by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001