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

  1. // Borland C++ - (C) Copyright 1991 by Borland International
  2.  
  3. // Contents ----------------------------------------------------------------
  4. //
  5. //      Bag
  6. //      Bag::Bag
  7. //
  8. // Description
  9. //
  10. //     Defines the class Bag.  A bag is a collection of objects which
  11. //      can contain more than one of the same object.
  12. //
  13. // End ---------------------------------------------------------------------
  14.  
  15. // Interface Dependencies ---------------------------------------------------
  16.  
  17. #ifndef __BAG_H
  18. #define __BAG_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 __HASHTBL_H
  38. #include "hashtbl.h"
  39. #endif
  40.  
  41. // End Interface Dependencies ------------------------------------------------
  42.  
  43.  
  44. // Class //
  45.  
  46. class Bag:  public HashTable
  47. {
  48. public:
  49.             Bag( sizeType bagSize = DEFAULT_BAG_SIZE ) : HashTable( bagSize ) {}
  50.     virtual ~Bag();
  51.  
  52.     virtual classType       isA() const;
  53.     virtual char           *nameOf() const;
  54. };
  55.  
  56. // Description -------------------------------------------------------------
  57. //
  58. //     Defines the class Bag.  A bag is a collection of objects which
  59. //      can contain more than one of the same object.
  60. //      
  61. // Constructors
  62. //
  63. //      Bag( sizeType )
  64. //
  65. //      Constructs a bag of the given size.
  66. //
  67. // Public Members
  68. //
  69. //     isA
  70. //
  71. //     Inherited from Object.
  72. //
  73. //     nameOf
  74. //
  75. //     Inherited from Object.
  76. //     
  77. // Inherited Members
  78. //
  79. //      add
  80. //
  81. //      Inherited from HashTable
  82. //
  83. //      destroy
  84. //
  85. //      Inherited from HashTable
  86. //
  87. //     detach
  88. //
  89. //      Inherited from HashTable
  90. //
  91. //      hasMember
  92. //
  93. //      Inherited from HashTable
  94. //
  95. //     isEmpty
  96. //
  97. //      Inherited from HashTable
  98. //
  99. //      firstThat
  100. //
  101. //      Inherited from HashTable
  102. //
  103. //      lastThat
  104. //
  105. //      Inherited from HashTable
  106. //
  107. //     hashValue
  108. //
  109. //     Inherited from Object.
  110. //
  111. //     operator ==
  112. //
  113. //     Inherited from Object.
  114. //
  115. //     printOn
  116. //
  117. //     Inherited from Object.
  118. //
  119. // End ---------------------------------------------------------------------
  120.  
  121.  
  122. #endif // ifndef __BAG_H //
  123.  
  124.