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

  1. #ifndef __RWISLINK_H__
  2. #define __RWISLINK_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWIsvSlink: A link in a singly-linked list.
  7.  *
  8.  * $Header:   E:/vcs/rw/islink.h_v   1.0   11 Mar 1992 14:10:44   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave Software, Inc.
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  *
  16.  * Copyright (C) 1992. This software is subject to copyright 
  17.  * protection under the laws of the United States and other countries.
  18.  *
  19.  ***************************************************************************
  20.  *
  21.  * $Log:   E:/vcs/rw/islink.h_v  $
  22.  * 
  23.  *    Rev 1.0   11 Mar 1992 14:10:44   KEFFER
  24.  * Initial revision.
  25.  */
  26.  
  27. #include "rw/tooldefs.h"
  28. #include "rw/mempool.h"
  29.  
  30. class RWExport RWIsvDlink;
  31. class RWExport RWIsvDlist;
  32.  
  33. /****************************************************************
  34.  *                                *
  35.  *        Declarations for RWIsvSlink            *
  36.  *                                *
  37.  ****************************************************************/
  38.  
  39. // Single link:
  40. class RWExport RWIsvSlink : public RWMemoryPool {
  41.   friend class RWExport RWIsvSlist;
  42.   friend class RWExport RWIsvDlist;
  43.   friend class RWExport RWIsvSlistIterator;
  44.   friend class RWExport RWIsvDlistIterator;
  45.   friend class RWExport RWIsvDlink;
  46.  
  47.   union RWExport {
  48.     RWIsvSlink*        _nextSlink;        // Pointer to next link.
  49.     RWIsvDlink*        _nextDlink;
  50.   };
  51.  
  52. public:
  53.  
  54.   RWIsvSlink()                : _nextSlink(rwnil) { }
  55.   RWIsvSlink(RWIsvSlink* nxt) : _nextSlink(nxt) { }
  56.  
  57.   RWIsvSlink*        next() const {return _nextSlink;}
  58. };
  59.  
  60.  
  61. pragma pop_align_members();
  62. #endif    /* __RWISLINK_H__ */
  63.