home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ibcllct.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.8 KB  |  131 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. // ICursor
  20. // -------
  21.  
  22. // public members
  23.  
  24. inline void
  25. ICursor::
  26. copy (ICursor const& cursor)
  27. { ImplOf (*this).Copy (*cursor.ivImpl);
  28. }
  29.  
  30. inline void
  31. ICursor::
  32. invalidate ()
  33. { ImplOf (*this).Invalidate ();
  34. }
  35.  
  36. inline IBoolean
  37. ICursor::
  38. isValid () const
  39. { return ImplOf (*this).IsValid ();
  40. }
  41.  
  42. inline IBoolean
  43. ICursor::
  44. setToFirst ()
  45. { return ImplOf (*this).SetToFirst ();
  46. }
  47.  
  48. inline IBoolean
  49. ICursor::
  50. setToNext ()
  51. { return ImplOf (*this).SetToNext ();
  52. }
  53.  
  54. inline void
  55. ICursor::
  56. operator= (ICursor const& cursor)
  57. { ImplOf (*this).Copy (ImplOf (cursor));
  58. }
  59.  
  60. inline IBoolean
  61. ICursor::
  62. operator== (ICursor const& cursor) const
  63. { return ImplOf (*this).operator== (*cursor.ivImpl);
  64. }
  65.  
  66. inline IBoolean
  67. ICursor::
  68. operator!= (ICursor const& cursor) const
  69. { return ImplOf (*this).operator!= (*cursor.ivImpl);
  70. }
  71.  
  72. // protected members
  73.  
  74. inline
  75. ICursor::
  76. ICursor (Implementation* impl)
  77. : ivImpl (impl)
  78. {
  79. }
  80.  
  81. inline
  82. ICursor::
  83. ICursor (ICursor const& cursor)
  84. : ivImpl (ImplOf (cursor).Clone ())
  85. {
  86. }
  87.  
  88. inline ICursor::Implementation&
  89. ICursor::
  90. ImplOf (ICursor const& cursor)
  91. { return *cursor.ivImpl;
  92. }
  93.  
  94. // ----------------
  95. // IACollectionBase
  96. // ----------------
  97.  
  98. // protected members
  99.  
  100. inline
  101. IACollectionBase::
  102. IACollectionBase ()
  103. : IMetaCollection ()
  104. {
  105. }
  106.  
  107. inline
  108. IACollectionBase::
  109. IACollectionBase (IACollectionBase const& collection)
  110. : IMetaCollection (collection)
  111. {
  112. }
  113.  
  114. inline
  115. IACollectionBase::
  116. ~IACollectionBase ()
  117. {
  118. }
  119.  
  120. inline ICursorImpl&
  121. IACollectionBase::
  122. CrsrImplOf (ICursor& cursor)
  123. { return *cursor.ivImpl;
  124. }
  125.  
  126. inline ICursorImpl const&
  127. IACollectionBase::
  128. CrsrImplOf (ICursor const& cursor)
  129. { return *cursor.ivImpl;
  130. }
  131.