Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide

RWCollectableAssociation

Module:  Essential Tools Module   Group:  RWCollectable


RWCollectableAssociationRWCollectable

Local Index

Members

Synopsis

#include <rw/collass.h> 

Description

RWCollectableAssociation inherits class RWCollectable. Used internally to associate a key with a value in the Essential Tools Module "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();

Public Member Functions

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;
virtual void
restoreGuts(RWvistream&);
virtual void
restoreGuts(RWFile&);
virtual void
saveGuts(RWvostream&) const;
virtual void
saveGuts(RWFile&) const;
RWCollectable*
value() const;
RWCollectable*
value(RWCollectable* ct);


Previous fileTop of DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, 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.