home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / icnrobj.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.0 KB  |  60 lines

  1. #ifndef _ICNROBJ_INL_
  2. #define _ICNROBJ_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: icnrobj.inl                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in icnrobj.hpp.                                           *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _ICNROBJ_
  19.   #undef  _ICNROBJ_INL_
  20.   #define _ICNROBJ_INL_ 1
  21.   #include <icnrobj.hpp>
  22. #endif
  23.  
  24. #if _ICNROBJ_INL_
  25.   #define inline
  26. #endif
  27.  
  28.  
  29. inline unsigned long IContainerObject::useCount ( ) const
  30. {
  31.   return ((IContainerObject*)this)->ulClUseCount;
  32. }
  33.  
  34. inline IMiniCnrRecord* IContainerObject::baseRecord ( )
  35. {
  36.   return ((IContainerObject*)this)->pbase;
  37. }
  38.  
  39. inline void IContainerObject::setDelayedFree ( Boolean delay )
  40. {
  41.   delayFree = delay;
  42. }
  43.  
  44. inline Boolean IContainerObject::isDelayedFree ( ) const
  45. {
  46.   return delayFree;
  47. }
  48.  
  49. inline void* ICnrAllocator::first ( ) const
  50. {
  51.   return pFirst;
  52. }
  53.  
  54. inline unsigned long ICnrAllocator::initialized ( ) const
  55. {
  56.   return numInitialized;
  57. }
  58.  
  59. #endif // _ICNROBJ_INL_
  60.