home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ibtree.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.0 KB  |  124 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 _IBTREE_H
  19. #define _IBTREE_H
  20.  
  21. #include <imtree.h>
  22. #include <iglobals.h>
  23.  
  24. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  25. #pragma pack (4)
  26.  
  27.  
  28. #pragma SOMAsDefault (off)
  29.  
  30. class ITreeCursor {
  31.  
  32.   typedef  ITreeCursorImpl Implementation;
  33.  
  34. public:
  35.  
  36.   virtual ~ITreeCursor      ();
  37.  
  38.   void     copy             (ITreeCursor const&);
  39.  
  40.   void     invalidate       ();
  41.  
  42.   IBoolean isValid          () const;
  43.  
  44.   IBoolean setToChild       (IPosition);
  45.  
  46.   IBoolean setToFirstExistingChild
  47.                             ();
  48.  
  49.   IBoolean setToLastExistingChild
  50.                             ();
  51.  
  52.   IBoolean setToNextExistingChild
  53.                             ();
  54.  
  55.   IBoolean setToParent      ();
  56.  
  57.   IBoolean setToPreviousExistingChild
  58.                             ();
  59.  
  60.   IBoolean setToRoot        ();
  61.  
  62.   void     operator=        (ITreeCursor const&);
  63.  
  64.   IBoolean operator==       (ITreeCursor const&) const;
  65.  
  66.   IBoolean operator!=       (ITreeCursor const&) const;
  67.  
  68. protected:
  69.  
  70.            ITreeCursor      (Implementation*);
  71.  
  72.            ITreeCursor      (ITreeCursor const&);
  73.  
  74.   static
  75.   inline
  76.   Implementation&
  77.            ImplOf           (ITreeCursor const&);
  78.  
  79. private:
  80.  
  81.   Implementation*
  82.            ivImpl;
  83.  
  84.   friend
  85.   class    IATreeBase;
  86.  
  87.  
  88. };
  89.  
  90. class IATreeBase : protected IMetaTree {
  91. public:
  92.  
  93. protected:
  94.  
  95.            IATreeBase       ();
  96.  
  97.            IATreeBase       (IATreeBase const&);
  98.  
  99.           ~IATreeBase       ();
  100.  
  101.   static
  102.   ITreeCursorImpl&
  103.            CrsrImplOf       (ITreeCursor& cursor);
  104.  
  105.   static
  106.   ITreeCursorImpl const&
  107.            CrsrImplOf       (ITreeCursor const& cursor);
  108.  
  109.   static
  110.   ITreeCursor*
  111.            InterfaceFor     (ITreeCursorImpl* cursor);
  112.  
  113.  
  114. };
  115.  
  116. #pragma SOMAsDefault (pop)
  117.  
  118. #include <ibtree.inl>
  119.  
  120. #pragma info (restore)
  121. #pragma pack ()
  122.  
  123. #endif
  124.