Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

RWCollectableAssociation


RWCollectableAssociation-->RWCollectable

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

Synopsis

#include <rw/collass.h> 

Description

RWCollectableAssociation inherits class RWCollectable. Used internally to associate a key with a value in the Tools.h++ "dictionary" collection classes. Comparison and equality testing are forwarded to the key part of the association.

Persistence

Polymorphic

Related Classes

The "dictionary containers" RWBTreeDictionary, RWHashDictionary, and RWIdentityDictionary make use of RWCollectableAssociation. When any of their contents is dealt with as an RWCollectable, as when operator+=() or asBag() etc. is used, the RWCollectableAssociation will be exposed.

Public Constructors

RWCollectableAssociation();
RWCollectableAssociation(RWCollectable* k, RWCollectable* v);

Public Member Functions

virtual ~RWCollectableAssociation();
virtual RWspace
binaryStoreSize() const;
virtual int 
compareTo(const RWCollectable* c) const;
virtual unsigned
hash() const;
virtual RWClassID
isA() const;
virtual RWBoolean 
isEqual(const RWCollectable* c) const;
RWCollectable*
key() const;
RWCollectable*
value() const;
RWCollectable*
value(RWCollectable* ct);
virtual void
restoreGuts(RWvistream&);
virtual void
restoreGuts(RWFile&);
virtual void
saveGuts(RWvostream&) const;
virtual void
saveGuts(RWFile&) const;


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