home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iimwt.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.5 KB  |  93 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. // IMultiwayTreeNodeImpl
  20. // ---------------------
  21.  
  22. // public members
  23.  
  24. template <INumber numOfChildren, class Element>
  25. inline
  26. IMultiwayTreeNodeImpl <numOfChildren, Element>::
  27. IMultiwayTreeNodeImpl (Element const& element)
  28. : ivElement (element)
  29. { Inherited::ivParent = 0;
  30.   Inherited::ivChildren = ivChildren;
  31. }
  32.  
  33. template <INumber numOfChildren, class Element>
  34. inline
  35. IMultiwayTreeNodeImpl <numOfChildren, Element>::
  36. ~IMultiwayTreeNodeImpl ()
  37. {
  38. }
  39.  
  40. // -----------------------
  41. // IMultiwayTreeCursorImpl
  42. // -----------------------
  43.  
  44. // public members
  45.  
  46. inline IBoolean
  47. IMultiwayTreeCursorImpl::
  48. IsValid () const
  49. { return (ivNode != 0);
  50. }
  51.  
  52. inline void
  53. IMultiwayTreeCursorImpl::
  54. Invalidate ()
  55. { ivNode = 0;
  56. }
  57.  
  58. inline void
  59. IMultiwayTreeCursorImpl::
  60. operator= (IMultiwayTreeCursorImpl const& cursor)
  61. { Inherited::operator= (cursor);
  62.   ivNode = ((Self const&)cursor).ivNode;
  63. }
  64.  
  65. inline IBoolean
  66. IMultiwayTreeCursorImpl::
  67. operator== (ITreeCursorImpl const& cursor) const
  68. { return (Inherited::operator== (cursor) &&
  69.           ivNode == ((Self const&)cursor).ivNode);
  70. }
  71.  
  72.  
  73. // -----------------
  74. // IAMultiwayTreeOps
  75. // -----------------
  76.  
  77. // public members
  78.  
  79. inline
  80. IAMultiwayTreeOps::
  81. ~IAMultiwayTreeOps ()
  82. {
  83. }
  84.  
  85. // protected members
  86.  
  87. inline
  88. IAMultiwayTreeOps::
  89. IAMultiwayTreeOps (IBoolean containsDTSObjects)
  90. : ivContainsDTSObjects (containsDTSObjects)
  91. {
  92. }
  93.