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