home *** CD-ROM | disk | FTP | other *** search
/ PC Media 7 / PC MEDIA CD07.iso / share / prog / cm / cmset.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-06  |  1.1 KB  |  31 lines

  1. // CmSet.h
  2. // -----------------------------------------------------------------
  3. // Compendium - C++ Container Class Library
  4. // Copyright (C) 1992-1994, Glenn M. Poorman, All rights reserved
  5. // -----------------------------------------------------------------
  6. // Set definition.
  7. // -----------------------------------------------------------------
  8.  
  9. #ifndef _CMSET_H
  10. #define _CMSET_H
  11.  
  12. #include <cm/include/cmhash.h>
  13.  
  14. class CmSet : public CmHashTable {          // Set class definition.
  15. public:
  16.   CmSet(unsigned = 10);                     // Default set constructor.
  17.   CmSet(const CmSet&);                      // Set copy constructor.
  18.  ~CmSet() {}                                // Set destructor.
  19.  
  20.   CmSet& operator=(const CmSet&);           // Assignment operator.
  21.   CmSet  operator-(const CmSet&);           // Set difference.
  22.   CmSet  operator&(const CmSet&);           // Set intersection.
  23.   CmSet  operator|(const CmSet&);           // Set union.
  24.  
  25.   Bool add(CmObject*);                      // Add object to set.
  26.  
  27.   CMOBJECT_DEFINE(CmSet, CmHashTable)       // Define object funcs.
  28. };
  29.  
  30. #endif
  31.