home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iikssbst.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  4.0 KB  |  161 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. // IAKeySortedSetAsBstTreeINodeImpl
  22. // --------------------------------
  23.  
  24. // public members
  25.  
  26. inline
  27. IAKeySortedSetAsBstTreeINodeImpl::
  28. IAKeySortedSetAsBstTreeINodeImpl ()
  29. : ivm (0)
  30. {
  31. }
  32.  
  33. inline
  34. IAKeySortedSetAsBstTreeINodeImpl::
  35. IAKeySortedSetAsBstTreeINodeImpl
  36.   (IAKeySortedSetAsBstTreeINodeImpl const& inode)
  37. : ivm (inode.ivm)
  38. {
  39. }
  40.  
  41. // -------------------------------
  42. // IKeySortedSetAsBstTreeINodeImpl
  43. // -------------------------------
  44.  
  45. // public members
  46.  
  47. template <class Key, size_t nodeSize>
  48. inline
  49. IKeySortedSetAsBstTreeINodeImpl <Key, nodeSize>::
  50. IKeySortedSetAsBstTreeINodeImpl ()
  51. { ivIsLeaf = false;
  52.   Inherited::ivPtrs = ivPtrs;
  53.   Inherited::ivKeys = ivKeys;
  54. }
  55.  
  56. template <class Key, size_t nodeSize>
  57. inline
  58. IKeySortedSetAsBstTreeINodeImpl <Key, nodeSize>::
  59. IKeySortedSetAsBstTreeINodeImpl
  60.   (IKeySortedSetAsBstTreeINodeImpl <Key, nodeSize > const& inode)
  61. : Inherited (inode)
  62. { ivIsLeaf = false;
  63.   Inherited::ivPtrs = ivPtrs;
  64.   Inherited::ivKeys = ivKeys;
  65. }
  66.  
  67. template <class Key, size_t nodeSize>
  68. inline
  69. IKeySortedSetAsBstTreeINodeImpl <Key, nodeSize>::
  70. ~IKeySortedSetAsBstTreeINodeImpl ()
  71. {
  72. }
  73.  
  74. // -------------------------------
  75. // IKeySortedSetAsBstTreeLNodeImpl
  76. // -------------------------------
  77.  
  78. // public members
  79.  
  80. template <class Element>
  81. inline
  82. IKeySortedSetAsBstTreeLNodeImpl <Element>::
  83. IKeySortedSetAsBstTreeLNodeImpl (Element const& element)
  84. : ivElement (element)
  85. { ivIsLeaf = true;
  86. }
  87.  
  88. template <class Element>
  89. inline
  90. IKeySortedSetAsBstTreeLNodeImpl <Element>::
  91. ~IKeySortedSetAsBstTreeLNodeImpl ()
  92. {
  93. }
  94.  
  95. // --------------------------------
  96. // IKeySortedSetAsBstTreeCursorImpl
  97. // --------------------------------
  98.  
  99. // public members
  100.  
  101. inline void
  102. IKeySortedSetAsBstTreeCursorImpl::
  103. Invalidate ()
  104. { ivNode = 0;
  105. }
  106.  
  107. inline IBoolean
  108. IKeySortedSetAsBstTreeCursorImpl::
  109. IsValid () const
  110. { return (ivNode != 0);
  111. }
  112.  
  113. inline IBoolean
  114. IKeySortedSetAsBstTreeCursorImpl::
  115. IsInBetween () const
  116. { return false;
  117. }
  118.  
  119. inline void
  120. IKeySortedSetAsBstTreeCursorImpl::
  121. operator= (IKeySortedSetAsBstTreeCursorImpl const& cursor)
  122. { Inherited::operator= (cursor);
  123.   ivNode = cursor.ivNode;
  124. }
  125.  
  126. inline IBoolean
  127. IKeySortedSetAsBstTreeCursorImpl::
  128. operator== (ICursorImpl const& cursor) const
  129. { return (Inherited::operator== (cursor) &&
  130.           ivNode == ((Self const&)cursor).ivNode);
  131. }
  132.  
  133.  
  134. // --------------------------
  135. // IKeySortedSetAsBstTreeImpl
  136. // --------------------------
  137.  
  138. // public members
  139.  
  140.  
  141. // --------------------------
  142. // IAKeySortedSetAsBstTreeOps
  143. // --------------------------
  144.  
  145. // public members
  146.  
  147. inline
  148. IAKeySortedSetAsBstTreeOps::
  149. ~IAKeySortedSetAsBstTreeOps ()
  150. {
  151. }
  152.  
  153. // protected members
  154.  
  155. inline
  156. IAKeySortedSetAsBstTreeOps::
  157. IAKeySortedSetAsBstTreeOps (IBoolean containsDTSObjects)
  158. : ivContainsDTSObjects (containsDTSObjects)
  159. {
  160. }
  161.