home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iivcllct.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.3 KB  |  82 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. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  19. #pragma pack (4)
  20.  
  21. // ---------------------
  22. // IVCollectionEventData
  23. // ---------------------
  24.  
  25. // public members
  26.  
  27. template <class Element>
  28. inline
  29. IVCollectionEventData <Element>::
  30. IVCollectionEventData (ICursor const& cursor,
  31.                        Element const* element)
  32. : ivCursor (&cursor), ivElement (element)
  33. {
  34. }
  35.  
  36. template <class Element>
  37. inline ICursor const&
  38. IVCollectionEventData <Element>::
  39. cursor () const
  40. { return *ivCursor;
  41. }
  42.  
  43. template <class Element>
  44. inline Element const*const
  45. IVCollectionEventData <Element>::
  46. element () const
  47. { return ivElement;
  48. }
  49.  
  50. // ----------------
  51. // IVCollectionImpl
  52. // ----------------
  53.  
  54. // public members
  55.  
  56. inline INotifier&
  57. IVCollectionImpl::
  58. DisableNotification ()
  59. { return disableNotification ();
  60. }
  61.  
  62. inline INotifier&
  63. IVCollectionImpl::
  64. EnableNotification (IBoolean enable)
  65. { return enableNotification (enable);
  66. }
  67.  
  68. inline IBoolean
  69. IVCollectionImpl::
  70. IsEnabledForNotification () const
  71. { return isEnabledForNotification ();
  72. }
  73.  
  74. inline IBoolean
  75. IVCollectionImpl::
  76. HasObservers () const
  77. { return ! observerList ().isEmpty ();
  78. }
  79.  
  80. #pragma info (restore)
  81. #pragma pack ()
  82.