Tools.h++ Manual
104011 Tandem Computers Incorporated 17-1
Designing an RWCollectable Class 17
Up until now we have been persisting classes that come with Tools.h++. In
this section we will look at how to create our own subclass of
RWCollectable
. This will allow it to use the persistence machinery or to be
used by the Smalltalk-like collection classes.
17.1 Virtual functions inherited from RWCollectable
Class
RWCollectable
declares the following virtual functions (See Part II:
Class Reference for a complete description of class
RWCollectable
):
virtual~RWCollectable();
virtual RWspace binaryStoreSize() const;
virtual int compareTo(const RWCollectable*)
const;
virtual unsigned hash() const;
virtual RWClassID isA() const;
virtual RWBoolean isEqual(const RWCollectable*)
const;
virtual RWCollectable* newSpecies() const;
virtual void restoreGuts(RWvistream&);
virtual void restoreGuts(RWFile&);
virtual void saveGuts(RWvostream&) const;
virtual void saveGuts(RWFile&) const;