Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWCollectable

Module:  Essential Tools Module   Group:  RWCollectable Classes


Does not inherit

Local Index

Members

Non-Members

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 bool
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 bool
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 DocumentContentsIndex pageNext file

© 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.