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

  1. #ifndef  __RWIDENSET_H__
  2. #define  __RWIDENSET_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * Declarations for RWIdentitySet (i.e., an Identity Set).
  7.  *
  8.  * $Header:   E:/vcs/rw/idenset.h_v   1.2   18 Feb 1992 09:54:24   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/idenset.h_v  $
  23.  * 
  24.  *    Rev 1.2   18 Feb 1992 09:54:24   KEFFER
  25.  * 
  26.  *    Rev 1.1   28 Oct 1991 09:08:18   keffer
  27.  * Changed inclusions to <rw/xxx.h>
  28.  * 
  29.  *    Rev 1.0   28 Jul 1991 08:15:24   keffer
  30.  * Tools.h++ V4.0.5 PVCS baseline version
  31.  *
  32.  */
  33.  
  34. /*
  35.  * For the storage and retrieval of (key, value) pairs, using the identity
  36.  * (i.e., the address) of the key.
  37.  */
  38.  
  39. #include "rw/rwset.h"
  40.  
  41. class RWExport RWIdentitySet : public RWSet {
  42. protected:
  43.   // Redefined findIndex:
  44.   unsigned        findIndex(const RWCollectable* a) const;
  45. public:
  46.   RWIdentitySet(unsigned N = RWCollection::DEFAULT_CAPACITY);
  47.  
  48. /***********************************************************************/
  49.   virtual ClassID    isA() const {return __RWIDENTITYSET;}
  50.   virtual RWCollectable*    newSpecies() const;
  51. };    
  52.  
  53. pragma pop_align_members();
  54. #endif /* __RWIDENSET_H__ */
  55.