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