Tools.h++ Class Reference

Table Of Contents
Returns TRUE if collectable object "matches" object at address t. The default definition
is:
return this == t;
i.e., both objects have the same address (a test for identity). The definition may be
redefined in any consistent way.
virtual RWCollectable*
newSpecies() const;
Allocates a new object off the heap of the same type as self and returns a pointer to it.
You are responsible for deleting the object when done with it.
virtual void
restoreGuts(RWFile&);
Read an object's state from a binary file, using class RWFile, replacing the previous state.
virtual void
restoreGuts(RWvistream&);
Read an object's state from an input stream, replacing the previous state.
virtual void
saveGuts(RWFile&) const;
Write an object's state to a binary file, using class RWFile.
virtual void
saveGuts(RWvostream&) const;
Write an object's state to an output stream.
RWStringID
stringID();
Returns the identification string for the class. Acts virtual, although it is not.
RWspace
recursiveStoreSize() const;
Returns the number of bytes required to store the object using the global operator
RWFile& operator<<(RWFile&, const RWCollectable&);
Recursively calls binaryStoreSize(), taking duplicate objects into account.
Static Public Member Functions
static RWClassID
classID(const RWStringID& name);
Returns the result of looking up the RWClassID associated with name in the global
RWFactory.