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

  1. //
  2. // This file contains proprietary information of Borland International.
  3. // Copying or reproduction without prior written approval is prohibited.
  4. //
  5. // Copyright (c) 1990
  6. // Borland International
  7. // 1800 Scotts Valley Dr.
  8. // Scotts Valley, CA 95066
  9. // (408) 438-8400
  10. //
  11.  
  12. // Contents ----------------------------------------------------------------
  13. //
  14. //
  15. // Description
  16. //
  17. //      Implementation of member functions for class Bag.
  18. //
  19. // End ---------------------------------------------------------------------
  20.  
  21. // Interface Dependencies ---------------------------------------------------
  22.  
  23. #ifndef __CLSTYPES_H
  24. #include <clstypes.h>
  25. #endif
  26.  
  27. #ifndef __BAG_H
  28. #include <bag.h>
  29. #endif
  30.  
  31. // End Interface Dependencies ------------------------------------------------
  32.  
  33. // Implementation Dependencies ----------------------------------------------
  34. // End Implementation Dependencies -------------------------------------------
  35.  
  36.  
  37. // Member Function //
  38.  
  39. Bag::~Bag()
  40.  
  41. // Summary -----------------------------------------------------------------
  42. //
  43. //      Destructor for a Bag object.
  44. //
  45. //        We don't do anything here, because the destructor for Container
  46. //        will take care of destroying the contained objects.
  47. //
  48. // End ---------------------------------------------------------------------
  49. {
  50. }
  51. // End Destructor //
  52.  
  53.  
  54. // Member Function //
  55.  
  56. classType Bag::isA() const
  57.  
  58. // Summary -----------------------------------------------------------------
  59. //
  60. //      Returns the class type of a bag.
  61. //
  62. // End ---------------------------------------------------------------------
  63. {
  64.     return bagClass;
  65. }
  66. // End Member Function Bag::isA //
  67.  
  68.  
  69. // Member Function //
  70.  
  71. char *Bag::nameOf() const
  72.  
  73. // Summary -----------------------------------------------------------------
  74. //
  75. //      Returns a pointer to the character string "Bag".
  76. //
  77. // End ---------------------------------------------------------------------
  78. {
  79.     return "Bag";
  80. }
  81. // End Member Function Bag::nameOf //
  82.  
  83.