home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWCollec / FWOrdCol.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.3 KB  |  80 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWOrdCol.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWORDCOL_H
  11. #define FWORDCOL_H
  12.  
  13. #ifndef PRORDCOL_H
  14. #include "PROrdCol.h"
  15. #endif
  16.  
  17. #ifndef FWEXCLIB_H
  18. #include "FWExcLib.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward Class Declarations
  23. //========================================================================================
  24.  
  25. class FW_CPrivLinkedListIterator;
  26. class FW_CPrivLinkedList;
  27.  
  28. //========================================================================================
  29. // Class FW_CPrivOrderedCollection
  30. //========================================================================================
  31.  
  32. class FW_CPrivOrderedCollection
  33. {
  34. public:
  35.     FW_DECLARE_AUTO(FW_CPrivOrderedCollection)
  36.     friend class  FW_CPrivOrderedCollectionIterator;
  37.     
  38. //----------------------------------------------------------------------------------------
  39. //    Constructors/Destructor
  40. //
  41. public:
  42.     FW_CPrivOrderedCollection(FW_OrderedCollection_MatchProc matchProc);
  43.     ~FW_CPrivOrderedCollection();
  44.  
  45. //----------------------------------------------------------------------------------------
  46. //    Data Members
  47. //
  48. protected:
  49.     FW_HLinkedList                        fImplementation;
  50.     FW_OrderedCollection_MatchProc        fMatchProc;
  51. };
  52.  
  53. //========================================================================================
  54. // Class FW_CPrivOrderedCollectionIterator
  55. //========================================================================================
  56.  
  57. class FW_CPrivOrderedCollectionIterator 
  58. {
  59. public:
  60.     FW_DECLARE_AUTO(FW_CPrivOrderedCollectionIterator)
  61.  
  62. //----------------------------------------------------------------------------------------
  63. //    Constructors/Destructor
  64. //
  65. public:
  66.     FW_CPrivOrderedCollectionIterator(const FW_CPrivOrderedCollection* collection);
  67.     ~FW_CPrivOrderedCollectionIterator();
  68.  
  69. private:
  70.     FW_CPrivOrderedCollectionIterator(const FW_CPrivOrderedCollectionIterator& other);
  71.     
  72. //----------------------------------------------------------------------------------------
  73. //    Data Members
  74. //
  75. protected:
  76.     FW_HLinkedListIterator         fImplementation;
  77. };
  78.  
  79. #endif
  80.