home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_11 / 1.ddi / CLASSINC.ZIP / SET.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  2.0 KB  |  119 lines

  1. // Borland C++ - (C) Copyright 1991 by Borland International
  2.  
  3. // Contents ----------------------------------------------------------------
  4. //
  5. //      Set
  6. //      Set::Set                                constructor
  7. //      Set::add
  8. //
  9. // Description
  10. //
  11. //      Defines the abstract class Set.
  12. //
  13. // End ---------------------------------------------------------------------
  14.  
  15. // Interface Dependencies ---------------------------------------------------
  16.  
  17. #ifndef __SET_H
  18. #define __SET_H
  19.  
  20. #ifndef __IOSTREAM_H
  21. #include <iostream.h>
  22. #define __IOSTREAM_H
  23. #endif
  24.  
  25. #ifndef __CLSTYPES_H
  26. #include "clstypes.h"
  27. #endif
  28.  
  29. #ifndef __RESOURCE_H
  30. #include "resource.h"
  31. #endif
  32.  
  33. #ifndef __OBJECT_H
  34. #include "object.h"
  35. #endif
  36.  
  37. #ifndef __BAG_H
  38. #include "bag.h"
  39. #endif
  40.  
  41. // End Interface Dependencies ------------------------------------------------
  42.  
  43.  
  44. // Class //
  45.  
  46. class Set:  public Bag
  47. {
  48. public:
  49.             Set( sizeType setSize = DEFAULT_SET_SIZE ) : Bag( setSize ) {}
  50.     virtual ~Set();
  51.  
  52.     virtual void            add( Object& );
  53.  
  54.     virtual classType       isA() const;
  55.     virtual char           *nameOf() const;
  56.  
  57. };
  58.  
  59. // Description -------------------------------------------------------------
  60. //
  61. //     Defines the class Set. 
  62. //      
  63. // Public Members
  64. //
  65. //     isA
  66. //
  67. //     Inherited from Object.
  68. //
  69. //     nameOf
  70. //
  71. //     Inherited from Object.
  72. //     
  73. // Inherited Members
  74. //
  75. //      add
  76. //
  77. //      Inherited from HashTable
  78. //
  79. //      destroy
  80. //
  81. //      Inherited from HashTable
  82. //
  83. //     detach
  84. //
  85. //      Inherited from HashTable
  86. //
  87. //      hasMember
  88. //
  89. //      Inherited from HashTable
  90. //
  91. //     isEmpty
  92. //
  93. //      Inherited from HashTable
  94. //
  95. //      firstThat
  96. //
  97. //      Inherited from HashTable
  98. //
  99. //      lastThat
  100. //
  101. //      Inherited from HashTable
  102. //
  103. //     hashValue
  104. //
  105. //     Inherited from Object.
  106. //
  107. //     operator ==
  108. //
  109. //     Inherited from Object.
  110. //
  111. //     printOn
  112. //
  113. //     Inherited from Object.
  114. //
  115. // End ---------------------------------------------------------------------
  116.  
  117.  
  118. #endif // ifndef __SET_H //
  119.