home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iamwt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.0 KB  |  90 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. #ifndef _IAMWT_H
  19. #define _IAMWT_H
  20.  
  21. #include <iatree.h>
  22. #include <iimwt.h>
  23.  
  24. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  25. #pragma pack (4)
  26.  
  27. #pragma SOMAsDefault (off)
  28.  
  29. template <INumber numOfChildren, class Element>
  30. class IAMultiwayTree : public IATree <Element> {
  31.  
  32.   typedef  IMultiwayTreeImpl Implementation;
  33.  
  34. public:
  35.  
  36.   void     attachAsChild    (ITreeCursor const&, IPosition,
  37.                              IAMultiwayTree
  38.                               <numOfChildren, Element> const&);
  39.  
  40.   void     attachAsRoot     (IAMultiwayTree
  41.                               <numOfChildren, Element> const&);
  42.  
  43.   void     attachSubtreeAsChild
  44.                             (ITreeCursor const&, IPosition,
  45.                              IAMultiwayTree
  46.                               <numOfChildren, Element> const&,
  47.                              ITreeCursor const&);
  48.  
  49.   void     attachSubtreeAsRoot
  50.                             (IAMultiwayTree
  51.                               <numOfChildren, Element> const&,
  52.                              ITreeCursor const&);
  53.  
  54.   void     copy             (IAMultiwayTree
  55.                               <numOfChildren, Element> const&);
  56.  
  57.   void     copySubtree      (IAMultiwayTree
  58.                               <numOfChildren, Element> const&,
  59.                              ITreeCursor const&);
  60.  
  61.   IBoolean hasChild         (IPosition, ITreeCursor const&) const;
  62.  
  63.   INumber  numberOfChildren () const;
  64.  
  65. protected:
  66.  
  67.            IAMultiwayTree   ();
  68.  
  69.            IAMultiwayTree   (IAMultiwayTree
  70.                               <numOfChildren, Element> const&);
  71.  
  72. private:
  73.  
  74.   static
  75.   Implementation&
  76.            ImplOf           (IAMultiwayTree
  77.                               <numOfChildren, Element> const&);
  78.  
  79.  
  80. };
  81.  
  82. #pragma SOMAsDefault (pop)
  83.  
  84. #include <iamwt.inl>
  85.  
  86. #pragma info (restore)
  87. #pragma pack ()
  88.  
  89. #endif
  90.