Module: Essential Tools Module Group: RWCollectable Classes
RWCollectable RWCollectableInt RWInteger
binaryStoreSize() compareTo() hash() |
isA() isEqual() restoreGuts() |
RWCollectableInt() saveGuts() stringID() |
~RWCollectableInt() |
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 ~RWCollectableInt();
Empty destructor.
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 bool 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.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.