Click on the banner to return to the Class Reference home page.

©Copyright 1996 Rogue Wave Software

RWCollectableAssociation


RWCollectableAssociationRWCollectable

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 Destructor

virtual ~RWCollectableAssociation();
virtual RWspace
binaryStoreSize() const;

Public Member Functions

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;