RWCollectable RWCollectableInt RWInteger
Member Functions | |
binaryStoreSize() compareTo() hash() isA() isEqual() restoreGuts() |
saveGuts() stringID() |
typedef RWCollectableInt Integer; // Smalltalk typedef #include <rw/collint.h> RWCollectableInt i;
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.
Polymorphic
RWCollectableInt();
Calls the appropriate base class constructor. See RWInteger::RWInteger().
RWCollectableInt(int i);
Calls the appropriate base class constructor. See RWInteger::RWInteger(int).
virtual RWspace binaryStoreSize() const;
Redefined from class RWCollectable.
virtual int compareTo(const RWCollectable* c) const;
Redefined from class RWCollectable. Returns the difference between self and the RWCollectableInt pointed to by c.
virtual unsigned hash() const;
Redefined from class RWCollectable. Returns the RWCollectableInt's value as an unsigned, to be used as a hash value.
virtual RWClassID isA() const;
Redefined from class RWCollectable to return __RWCOLLECTABLEINT.
virtual RWBoolean isEqual(const RWCollectable* c) const;
Redefined from class RWCollectable. Returns TRUE if self has the same value as the RWCollectableInt at address c.
virtual void restoreGuts(RWvistream&); virtual void restoreGuts(RWFile&); virtual void saveGuts(RWvostream&) const; virtual void saveGuts(RWFile&) const;
Redefined from class RWCollectable.
RWStringID stringID();
(acts virtual) Inherited from class RWCollectable.