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

RWDlistCollectables

Module:  Essential Tools Module   Group:  RWCollectable Classes


RWDlistCollectablesRWSequenceableRWCollection ... ... RWCollectable

Local Index

Members

Synopsis

#include <rw/dlistcol.h>
RWDlistCollectables a;

Description

Class RWDlistCollectables represents a group of ordered items, not accessible by an external key. Duplicates are allowed. The ordering of elements is determined externally, generally by the order of insertion and removal. An object stored by RWDlistCollectables must inherit abstract base class RWCollectable.

Class RWDlistCollectables is implemented as a doubly-linked list, which allows for efficient insertion and removal, as well as for movement in either direction.

Persistence

Polymorphic

Public Constructors

RWDlistCollectables();
RWDlistCollectables (RWCollectable* a);

Public Destructor

~RWDlistCollectables();

Public Member Operators

bool
operator==(const RWDlistCollectables& d) const;

Public Member Functions

virtual Collectable*
append(RWCollectable*);
virtual void
apply(RWapplyCollectable ap, void*);
virtual RWCollectable*&
at(size_t i);
virtual const RWCollectable*
at(size_t i) const;
virtual RWspace
binaryStoreSize() const;
virtual void
clear();
virtual void
clearAndDestroy();
virtual int
compareTo(const RWCollectable* a) const;
virtual bool
contains(const RWCollectable* target) const;
bool
containsReference(const RWCollectable* e) const;
virtual size_t
entries() const;
virtual RWCollectable*
find(const RWCollectable* target) const;
RWCollectable*
findReference(const RWCollectable* e) const;
virtual RWCollectable*
first() const;
RWCollectable*
get();
virtual unsigned
hash() const;
virtual size_t
index(const RWCollectable* c) const;
virtual RWCollectable*
insert(RWCollectable* c);
void
insertAt(size_t indx, RWCollectable* e);
virtual RWClassID
isA() const;
virtual bool
isEmpty() const;
virtual RWCollectable*
last() const;
virtual size_t
occurrencesOf(const RWCollectable* target) const;
size_t
occurrencesOfReference(const RWCollectable* e) const;
virtual RWCollectable*
prepend(RWCollectable*);
virtual RWCollectable*
remove(const RWCollectable* target);
virtual void
removeAndDestroy(const RWCollectable* target);
RWCollectable*
removeReference(const RWCollectable* e);
virtual void
restoreGuts(RWvistream&);
virtual void
restoreGuts(RWFile&);
virtual void
saveGuts(RWvostream&) const;
virtual void
saveGuts(RWFile&) const;
RWStringID
stringID();


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.