home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iikssavl.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  3.1 KB  |  121 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. // IAKeySortedSetAsAvlTreeNodeImpl
  22. // -------------------------------
  23.  
  24. // public members
  25.  
  26. inline
  27. IAKeySortedSetAsAvlTreeNodeImpl::
  28. IAKeySortedSetAsAvlTreeNodeImpl ()
  29. : ivLeft (0), ivRight (0), ivParent (0), ivDeeperSubtree (kAvlNone)
  30. {
  31. }
  32.  
  33.  
  34. // ------------------------------
  35. // IKeySortedSetAsAvlTreeNodeImpl
  36. // ------------------------------
  37.  
  38. // public members
  39.  
  40. template <class Element>
  41. inline
  42. IKeySortedSetAsAvlTreeNodeImpl <Element>::
  43. IKeySortedSetAsAvlTreeNodeImpl (Element const& element)
  44. : IAKeySortedSetAsAvlTreeNodeImpl (), ivElement (element)
  45. {
  46. }
  47.  
  48. template <class Element>
  49. inline
  50. IKeySortedSetAsAvlTreeNodeImpl <Element>::
  51. ~IKeySortedSetAsAvlTreeNodeImpl ()
  52. {
  53. }
  54.  
  55. // --------------------------------
  56. // IKeySortedSetAsAvlTreeCursorImpl
  57. // --------------------------------
  58.  
  59. // public members
  60.  
  61. inline void
  62. IKeySortedSetAsAvlTreeCursorImpl::
  63. Invalidate ()
  64. { ivNode = 0;
  65. }
  66.  
  67. inline IBoolean
  68. IKeySortedSetAsAvlTreeCursorImpl::
  69. IsInBetween () const
  70. { return false;
  71. }
  72.  
  73. inline IBoolean
  74. IKeySortedSetAsAvlTreeCursorImpl::
  75. IsValid () const
  76. { return (ivNode != 0);
  77. }
  78.  
  79. inline void
  80. IKeySortedSetAsAvlTreeCursorImpl::
  81. operator= (IKeySortedSetAsAvlTreeCursorImpl const& cursor)
  82. { Inherited::operator= (cursor);
  83.   ivNode = cursor.ivNode;
  84. }
  85.  
  86. inline IBoolean
  87. IKeySortedSetAsAvlTreeCursorImpl::
  88. operator== (ICursorImpl const& cursor) const
  89. { return (Inherited::operator== (cursor) &&
  90.           ivNode == ((Self const&)cursor).ivNode);
  91. }
  92.  
  93.  
  94. // --------------------------
  95. // IKeySortedSetAsAvlTreeImpl
  96. // --------------------------
  97.  
  98. // public members
  99.  
  100.  
  101. // --------------------------
  102. // IAKeySortedSetAsAvlTreeOps
  103. // --------------------------
  104.  
  105. // public members
  106.  
  107. inline
  108. IAKeySortedSetAsAvlTreeOps::
  109. ~IAKeySortedSetAsAvlTreeOps ()
  110. {
  111. }
  112.  
  113. // protected members
  114.  
  115. inline
  116. IAKeySortedSetAsAvlTreeOps::
  117. IAKeySortedSetAsAvlTreeOps (IBoolean containsDTSObjects)
  118. : ivContainsDTSObjects (containsDTSObjects)
  119. {
  120. }
  121.