RWCollectableInt(3C++) RWCollectableInt(3C++)
NameRWCollectableInt - Rogue Wave library class
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 ConstructorsRWCollectableInt();
Calls the appropriate base class constructor. See
RWInteger::RWInteger().
RWCollectableInt(int i);
Calls the appropriate base class constructor. See
RWInteger::RWInteger(int).
Public Member Functions
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.
Page 1
RWCollectableInt(3C++) RWCollectableInt(3C++)
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.
Page 2