home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / BCPPOWL1.ZIP / CLINC.ZIP / BAG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-28  |  2.2 KB  |  125 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. _CLASSDEF(Bag)
  44.  
  45. // Class //
  46.  
  47. class _CLASSTYPE Bag:  public HashTable
  48. {
  49. public:
  50.             Bag( sizeType bagSize = DEFAULT_BAG_SIZE ) : HashTable( bagSize ) {}
  51.     virtual ~Bag();
  52.  
  53.     virtual classType       isA() const;
  54.     virtual Pchar nameOf() const;
  55. };
  56.  
  57. // Description -------------------------------------------------------------
  58. //
  59. //     Defines the class Bag.  A bag is a collection of objects which
  60. //      can contain more than one of the same object.
  61. //      
  62. // Constructors
  63. //
  64. //      Bag( sizeType )
  65. //
  66. //      Constructs a bag of the given size.
  67. //
  68. // Public Members
  69. //
  70. //     isA
  71. //
  72. //     Inherited from Object.
  73. //
  74. //     nameOf
  75. //
  76. //     Inherited from Object.
  77. //     
  78. // Inherited Members
  79. //
  80. //      add
  81. //
  82. //      Inherited from HashTable
  83. //
  84. //      destroy
  85. //
  86. //      Inherited from HashTable
  87. //
  88. //     detach
  89. //
  90. //      Inherited from HashTable
  91. //
  92. //      hasMember
  93. //
  94. //      Inherited from HashTable
  95. //
  96. //     isEmpty
  97. //
  98. //      Inherited from HashTable
  99. //
  100. //      firstThat
  101. //
  102. //      Inherited from HashTable
  103. //
  104. //      lastThat
  105. //
  106. //      Inherited from HashTable
  107. //
  108. //     hashValue
  109. //
  110. //     Inherited from Object.
  111. //
  112. //     operator ==
  113. //
  114. //     Inherited from Object.
  115. //
  116. //     printOn
  117. //
  118. //     Inherited from Object.
  119. //
  120. // End ---------------------------------------------------------------------
  121.  
  122.  
  123. #endif // ifndef __BAG_H //
  124.  
  125.