home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iihpdil.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.9 KB  |  81 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. // IHeapAsDilTableOps
  23. // ---
  24.  
  25. // public members
  26.  
  27. template <class Element, class ElementOps, class Implementation>
  28. IHeapAsDilTableOps <Element, ElementOps, Implementation>::
  29. IHeapAsDilTableOps (INumber numberOfElements)
  30. : ivBase (numberOfElements),
  31.   ivImpl (*this, numberOfElements)
  32. {
  33. }
  34.  
  35. template <class Element, class ElementOps, class Implementation>
  36. IHeapAsDilTableOps <Element, ElementOps, Implementation>::
  37. IHeapAsDilTableOps (INumber numberOfElements, void* opsArg)
  38. : ivBase (numberOfElements, opsArg),
  39.   ivImpl (*this, numberOfElements)
  40. {
  41. }
  42.  
  43. template <class Element, class ElementOps, class Implementation>
  44. IHeapAsDilTableOps <Element, ElementOps, Implementation>::
  45. IHeapAsDilTableOps
  46.   (IHeapAsDilTableOps
  47.     <Element, ElementOps, Implementation> const& collection)
  48. : ivBase (collection.ivBase),
  49.   ivImpl (*this, collection.ivImpl)
  50. {
  51. }
  52.  
  53. template <class Element, class ElementOps, class Implementation>
  54. IHeapAsDilTableOps <Element, ElementOps, Implementation>::
  55. ~IHeapAsDilTableOps ()
  56. {
  57. }
  58.  
  59. template <class Element, class ElementOps, class Implementation>
  60. IACollectionImpl*
  61. IHeapAsDilTableOps <Element, ElementOps, Implementation>::
  62. Clone () const
  63. { return (Implementation*) *new Self (*this);
  64. }
  65.  
  66. template <class Element, class ElementOps, class Implementation>
  67. IHeapAsDilTableOps <Element, ElementOps, Implementation>::
  68. operator ISequenceAsDilTableImpl& ()
  69. { return *(ISequenceAsDilTableImpl*)ivBase;
  70. }
  71.  
  72. template <class Element, class ElementOps, class Implementation>
  73. IHeapAsDilTableOps <Element, ElementOps, Implementation>::
  74. operator Implementation* ()
  75. { ivImpl.CheckPointer (this);
  76.   return &ivImpl;
  77. }
  78.  
  79. #pragma info (restore)
  80. #pragma pack ()
  81.