home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWQUEUECOL_H__
- #define __RWQUEUECOL_H__
- pragma push_align_members(64);
-
- /*
- * Declarations for a Queue of RWCollectables, implemented as a Singly-linked list.
- *
- * $Header: E:/vcs/rw/queuecol.h_v 1.3 04 Mar 1992 09:04:20 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave
- * P.O. Box 2328
- * Corvallis, OR 97339
- * Voice: (503) 754-3010 FAX: (503) 757-6650
- *
- * Copyright (C) 1989, 1990, 1991. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/queuecol.h_v $
- *
- * Rev 1.3 04 Mar 1992 09:04:20 KEFFER
- * nil changed to rwnil
- *
- * Rev 1.2 18 Feb 1992 09:54:34 KEFFER
- *
- * Rev 1.1 28 Oct 1991 09:08:20 keffer
- * Changed inclusions to <rw/xxx.h>
- *
- * Rev 1.0 28 Jul 1991 08:16:04 keffer
- * Tools.h++ V4.0.5 PVCS baseline version
- *
- */
-
- #include "rw/slistcol.h"
-
- class RWExport RWSlistCollectablesQueue : public RWSlistCollectables {
- public:
- RWSlistCollectablesQueue();
- RWSlistCollectablesQueue(RWCollectable* a) : RWSlistCollectables(a) { }
-
- /************* Virtual functions inherited from RWSlistCollectables ***********/
- //virtual void append(RWCollectable* a) // Add at tail of queue.
- //virtual void apply(RWapplyCollectable ap, void* x)
- //virtual void clear()
- //virtual void clearAndDestroy();
- //virtual RWBoolean contains(const RWCollectable* a) const
- //RWBoolean containsReference(const RWCollectable* a) const
- //virtual unsigned entries() const
- //virtual RWCollectable* first() const // First item in queue
- //virtual RWCollectable* get() // Remove & return first item in queue
- //virtual RWCollectable* insert(RWCollectable* a); // Add item to end of queue
- virtual ClassID isA() const {return __RWSLISTCOLLECTABLESQUEUE;}
- //virtual RWBoolean isEmpty() const
- //virtual RWCollectable* last() const // Last item in queue
- virtual RWCollectable* newSpecies() const;
- //virtual unsigned occurrencesOf(const RWCollectable* a) const
- //unsigned occurrencesOfReference(const RWCollectable* a) const
- virtual RWCollectable* remove(const RWCollectable*) // Treated as get(); argument ignored.
- {return RWSlistCollectables::get();}
- private:
-
- /******************** Disallowed functions ************************/
- virtual RWCollectable*& at(int i) {return RWSlistCollectables::at(i);}
- #ifdef CONST_OVERLOADS
- virtual const RWCollectable* at(int) const {return rwnil;}
- #endif
- virtual RWCollectable* find(const RWCollectable*) const {return rwnil;}
- RWCollectable* findReference(const RWCollectable*) const {return rwnil;}
- virtual int index(const RWCollectable*) const {return -1;}
- RWCollectable* prepend(RWCollectable*) {return rwnil;}
- RWCollectable* removeReference(const RWCollectable*) {return rwnil;}
- virtual void removeAndDestroy(const RWCollectable*) { }
- };
-
- pragma pop_align_members();
- #endif /* __RWQUEUECOL_H__ */
-