home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP10-8.ZIP / CLASSINC.ZIP / BAG.H < prev    next >
C/C++ Source or Header  |  1990-09-26  |  3KB  |  133 lines

  1. #ifndef __BAG_H
  2. #define __BAG_H
  3.  
  4. //
  5. // This file contains proprietary information of Borland International.
  6. // Copying or reproduction without prior written approval is prohibited.
  7. //
  8. // Copyright (c) 1990
  9. // Borland International
  10. // 1800 Scotts Valley Dr.
  11. // Scotts Valley, CA 95066
  12. // (408) 438-8400
  13. //
  14.  
  15. // Contents ----------------------------------------------------------------
  16. //
  17. //      Bag
  18. //      Bag::Bag
  19. //
  20. // Description
  21. //
  22. //     Defines the class Bag.  A bag is a collection of objects which
  23. //      can contain more than one of the same object.
  24. //
  25. // End ---------------------------------------------------------------------
  26.  
  27. // Interface Dependencies ---------------------------------------------------
  28.  
  29. #ifndef __IOSTREAM_H
  30. #include <iostream.h>
  31. #define __IOSTREAM_H
  32. #endif
  33.  
  34. #ifndef __CLSTYPES_H
  35. #include "clstypes.h"
  36. #endif
  37.  
  38. #ifndef __RESOURCE_H
  39. #include "resource.h"
  40. #endif
  41.  
  42. #ifndef __OBJECT_H
  43. #include "object.h"
  44. #endif
  45.  
  46. #ifndef __HASHTBL_H
  47. #include "hashtbl.h"
  48. #endif
  49.  
  50. // End Interface Dependencies ------------------------------------------------
  51.  
  52.  
  53. // Class //
  54.  
  55. class Bag:  public HashTable
  56. {
  57. public:
  58.             Bag( sizeType bagSize = DEFAULT_BAG_SIZE ) : HashTable( bagSize ) {}
  59.     virtual ~Bag();
  60.  
  61.     virtual classType       isA() const;
  62.     virtual char           *nameOf() const;
  63. };
  64.  
  65. // Description -------------------------------------------------------------
  66. //
  67. //     Defines the class Bag.  A bag is a collection of objects which
  68. //      can contain more than one of the same object.
  69. //      
  70. // Constructors
  71. //
  72. //      Bag( sizeType )
  73. //
  74. //      Constructs a bag of the given size.
  75. //
  76. // Public Members
  77. //
  78. //     isA
  79. //
  80. //     Inherited from Object.
  81. //
  82. //     nameOf
  83. //
  84. //     Inherited from Object.
  85. //     
  86. // Inherited Members
  87. //
  88. //      add
  89. //
  90. //      Inherited from HashTable
  91. //
  92. //      destroy
  93. //
  94. //      Inherited from HashTable
  95. //
  96. //     detach
  97. //
  98. //      Inherited from HashTable
  99. //
  100. //      hasMember
  101. //
  102. //      Inherited from HashTable
  103. //
  104. //     isEmpty
  105. //
  106. //      Inherited from HashTable
  107. //
  108. //      firstThat
  109. //
  110. //      Inherited from HashTable
  111. //
  112. //      lastThat
  113. //
  114. //      Inherited from HashTable
  115. //
  116. //     hashValue
  117. //
  118. //     Inherited from Object.
  119. //
  120. //     operator ==
  121. //
  122. //     Inherited from Object.
  123. //
  124. //     printOn
  125. //
  126. //     Inherited from Object.
  127. //
  128. // End ---------------------------------------------------------------------
  129.  
  130.  
  131. #endif // ifndef __BAG_H //
  132.  
  133.