home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iikbhsh.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  3.0 KB  |  123 lines

  1. /**********************************************************************
  2. *                                                                     *
  3. *  IBM(R) VisualAge(TM) for C++ for Windows(R), Version 3.5           *
  4. *                                                                     *
  5. *  PID: 5622-880                                                      *
  6. *  - Licensed Material - Program-Property of IBM                      *
  7. *  (C) Copyright IBM Corp. 1991, 1995 - All Right Reserved.           *
  8. *                                                                     *
  9. *  US Government Users Restricted Rights - Use, duplication or        *
  10. *  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.  *
  11. *                                                                     *
  12. *  VisualAge, and IBM are trademarks or registered trademarks of      *
  13. *  International Business Machines Corporation.                       *
  14. *  Windows is a registered trademark of Microsoft Corporation.        *
  15. *                                                                     *
  16. **********************************************************************/
  17.  
  18. #include <iiexc.h>
  19.  
  20. // --------------------------
  21. // IAKeyBagAsHshTableNodeImpl
  22. // --------------------------
  23.  
  24. // public members
  25.  
  26. inline
  27. IAKeyBagAsHshTableNodeImpl::
  28. IAKeyBagAsHshTableNodeImpl ()
  29. : ivNext (0)
  30. {
  31. }
  32.  
  33. // -------------------------
  34. // IKeyBagAsHshTableNodeImpl
  35. // -------------------------
  36.  
  37. // public members
  38.  
  39. template <class Element>
  40. inline
  41. IKeyBagAsHshTableNodeImpl <Element>::
  42. IKeyBagAsHshTableNodeImpl (Element const& element)
  43. : IAKeyBagAsHshTableNodeImpl (), ivElement (element)
  44. {
  45. }
  46.  
  47. template <class Element>
  48. inline
  49. IKeyBagAsHshTableNodeImpl <Element>::
  50. ~IKeyBagAsHshTableNodeImpl ()
  51. {
  52. }
  53.  
  54. // ---------------------------
  55. // IKeyBagAsHshTableCursorImpl
  56. // ---------------------------
  57.  
  58. // public members
  59.  
  60. inline void
  61. IKeyBagAsHshTableCursorImpl::
  62. Invalidate ()
  63. { ivNode = 0;
  64. }
  65.  
  66. inline IBoolean
  67. IKeyBagAsHshTableCursorImpl::
  68. IsInBetween () const
  69. { return false;
  70. }
  71.  
  72. inline IBoolean
  73. IKeyBagAsHshTableCursorImpl::
  74. IsValid () const
  75. { return (ivNode != 0);
  76. }
  77.  
  78. inline void
  79. IKeyBagAsHshTableCursorImpl::
  80. operator= (IKeyBagAsHshTableCursorImpl const& cursor)
  81. { Inherited::operator= (cursor);
  82.   ivNode   = cursor.ivNode;
  83.   ivBucket = cursor.ivBucket;
  84. }
  85.  
  86. inline IBoolean
  87. IKeyBagAsHshTableCursorImpl::
  88. operator== (ICursorImpl const& cursor) const
  89. { return (Inherited::operator== (cursor) &&
  90.           ivNode   == ((Self const&)cursor).ivNode &&
  91.           ivBucket == ((Self const&)cursor).ivBucket);
  92. }
  93.  
  94.  
  95.  
  96. // ---------------------
  97. // IKeyBagAsHshTableImpl
  98. // ---------------------
  99.  
  100. // public members
  101.  
  102.  
  103. // ---------------------
  104. // IAKeyBagAsHshTableOps
  105. // ---------------------
  106.  
  107. // public members
  108.  
  109. inline
  110. IAKeyBagAsHshTableOps::
  111. ~IAKeyBagAsHshTableOps ()
  112. {
  113. }
  114.  
  115. // protected members
  116.  
  117. inline
  118. IAKeyBagAsHshTableOps::
  119. IAKeyBagAsHshTableOps (IBoolean containsDTSObjects)
  120. : ivContainsDTSObjects (containsDTSObjects)
  121. {
  122. }
  123.