Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

RWCollectable

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

typedef RWCollectable Object;  // Smalltalk typedef
#include <rw/collect.h>

Description

Class RWCollectable is an abstract base class for collectable objects. This class contains virtual functions for identifying, hashing, comparing, storing and retrieving collectable objects. While these virtual functions have simple default definitions, objects that inherit this base class will typically redefine one or more of them.

Persistence

Polymorphic

Virtual Functions

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* t) const;
virtual RWCollectable*
newSpecies() const;
virtual void
restoreGuts(RWFile&);
virtual void
restoreGuts(RWvistream&);
virtual void
saveGuts(RWFile&) const;
virtual void
saveGuts(RWvostream&) const;
RWStringID
stringID();
RWspace
recursiveStoreSize() const;

Static Public Member Functions

static RWClassID
classID(const RWStringID& name);
static RWClassID
classIsA();
static RWBoolean
isAtom(RWClassID id);
static RWspace
nilStoreSize();

Related Global Operators

RWvostream&
operator<<(RWvostream&, const RWCollectable& obj);
RWFile&
operator<<(RWFile&, const RWCollectable& obj);
RWvistream&
operator>>(RWvistream&, RWCollectable& obj);
RWFile&
operator>>(RWFile&, RWCollectable& obj);
RWvistream&
operator>>(RWvistream&, RWCollectable*& obj);
RWFile&
operator>>(RWFile&,     RWCollectable*& obj);


Previous fileTop of documentContentsIndexNext file
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.