Click on the banner to return to the Class Reference home page.

©Copyright 1996 Rogue Wave Software

RWCollectableInt


                 RWCollectable
RWCollectableInt
                 RWInteger

Synopsis

typedef RWCollectableInt Integer;  // Smalltalk typedef
#include <rw/collint.h>
RWCollectableInt  i;

Description

Collectable integers. Inherits classes RWInteger and RWCollectable. This class is useful when integers are used as keys in the "dictionary" collection classes, or if integers are stored and retrieved as RWCollectables. The virtual functions of the base class RWCollectable have been redefined.

Persistence

Polymorphic

Public Constructors

RWCollectableInt();
RWCollectableInt(int i);

Public Member Functions

virtual RWspace
binaryStoreSize() const;
virtual int
compareTo(const RWCollectable* c) const;
virtual unsigned
hash() const;
virtual RWClassID 
isA() const;
virtual RWBoolean
isEqual(const RWCollectable* c) const;
virtual void
restoreGuts(RWvistream&);
virtual void
restoreGuts(RWFile&);
virtual void
saveGuts(RWvostream&) const;
virtual void
saveGuts(RWFile&) const;
RWStringID
stringID();