home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / U1 < prev    next >
Encoding:
Text File  |  1992-06-07  |  3.1 KB  |  80 lines

  1. #ifndef  __RWQUEUECOL_H__
  2. #define  __RWQUEUECOL_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * Declarations for a Queue of RWCollectables, implemented as a Singly-linked list.
  7.  *
  8.  * $Header:   E:/vcs/rw/queuecol.h_v   1.3   04 Mar 1992 09:04:20   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave 
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  * Voice: (503) 754-3010    FAX: (503) 757-6650
  16.  *
  17.  * Copyright (C) 1989, 1990, 1991. This software is subject to copyright 
  18.  * protection under the laws of the United States and other countries.
  19.  *
  20.  ***************************************************************************
  21.  *
  22.  * $Log:   E:/vcs/rw/queuecol.h_v  $
  23.  * 
  24.  *    Rev 1.3   04 Mar 1992 09:04:20   KEFFER
  25.  * nil changed to rwnil
  26.  * 
  27.  *    Rev 1.2   18 Feb 1992 09:54:34   KEFFER
  28.  * 
  29.  *    Rev 1.1   28 Oct 1991 09:08:20   keffer
  30.  * Changed inclusions to <rw/xxx.h>
  31.  * 
  32.  *    Rev 1.0   28 Jul 1991 08:16:04   keffer
  33.  * Tools.h++ V4.0.5 PVCS baseline version
  34.  *
  35.  */
  36.  
  37. #include "rw/slistcol.h"
  38.  
  39. class RWExport RWSlistCollectablesQueue : public RWSlistCollectables {
  40. public:     
  41.   RWSlistCollectablesQueue();
  42.   RWSlistCollectablesQueue(RWCollectable* a) : RWSlistCollectables(a) { }
  43.  
  44.   /************* Virtual functions inherited from RWSlistCollectables ***********/
  45. //virtual void            append(RWCollectable* a)    // Add at tail of queue.
  46. //virtual void            apply(RWapplyCollectable ap, void* x) 
  47. //virtual void             clear() 
  48. //virtual void            clearAndDestroy();
  49. //virtual RWBoolean         contains(const RWCollectable* a) const
  50. //RWBoolean            containsReference(const RWCollectable* a) const
  51. //virtual unsigned        entries() const 
  52. //virtual RWCollectable*         first() const    // First item in queue
  53. //virtual RWCollectable*        get()        // Remove & return first item in queue
  54. //virtual RWCollectable*        insert(RWCollectable* a); // Add item to end of queue
  55.   virtual ClassID        isA() const {return __RWSLISTCOLLECTABLESQUEUE;}
  56. //virtual RWBoolean        isEmpty() const 
  57. //virtual RWCollectable*        last() const    // Last item in queue
  58.   virtual RWCollectable*        newSpecies() const;
  59. //virtual unsigned         occurrencesOf(const RWCollectable* a) const
  60. //unsigned             occurrencesOfReference(const RWCollectable* a) const
  61.   virtual RWCollectable*        remove(const RWCollectable*) // Treated as get(); argument ignored.
  62.     {return RWSlistCollectables::get();}
  63. private:
  64.  
  65.   /******************** Disallowed functions ************************/
  66.   virtual RWCollectable*&        at(int i)                {return RWSlistCollectables::at(i);}
  67. #ifdef CONST_OVERLOADS
  68.   virtual const RWCollectable*    at(int) const                {return rwnil;}
  69. #endif
  70.   virtual RWCollectable*        find(const RWCollectable*) const        {return rwnil;}
  71.   RWCollectable*            findReference(const RWCollectable*) const    {return rwnil;}
  72.   virtual int            index(const RWCollectable*) const        {return -1;}
  73.   RWCollectable*            prepend(RWCollectable*)            {return rwnil;}
  74.   RWCollectable*            removeReference(const RWCollectable*)    {return rwnil;}
  75.   virtual void            removeAndDestroy(const RWCollectable*)    { }
  76. };
  77.  
  78. pragma pop_align_members();
  79. #endif /* __RWQUEUECOL_H__ */
  80.