home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / DU Selection FW / Sources / DUList.cpp next >
Encoding:
Text File  |  1995-10-25  |  1.8 KB  |  74 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. //================================================================================
  5. #ifndef DULIST_H
  6. #include "DUList.h"        // DU_CList, DU_CListIterator
  7. #endif
  8.  
  9. //================================================================================
  10. DU_CList::DU_CList()
  11.  :    FW_CPrivOrderedCollection()
  12. {
  13. }
  14.  
  15. //--------------------------------------------------------------------------------
  16. DU_CList::~DU_CList()
  17. {
  18. }
  19.  
  20. //--------------------------------------------------------------------------------
  21. DU_MSelectable*
  22. DU_CList::FirstItem()
  23. {
  24.     return (DU_MSelectable*)FW_CPrivOrderedCollection::First();
  25. }
  26.  
  27. //================================================================================
  28. DU_CListIterator::DU_CListIterator(DU_CList* list)
  29.  :    fImplementation(list)
  30. {
  31. }
  32.  
  33. //--------------------------------------------------------------------------------
  34. DU_CListIterator::~DU_CListIterator()
  35. {
  36. }
  37.  
  38. //--------------------------------------------------------------------------------
  39. DU_MSelectable*
  40. DU_CListIterator::First()
  41. {
  42.     return (DU_MSelectable*)fImplementation.First();
  43. }
  44.  
  45. //--------------------------------------------------------------------------------
  46. DU_MSelectable*
  47. DU_CListIterator::Next()
  48. {
  49.     return (DU_MSelectable*)fImplementation.Next();
  50. }
  51.  
  52. //--------------------------------------------------------------------------------
  53. DU_MSelectable*
  54. DU_CListIterator::Last()
  55. {
  56.     return (DU_MSelectable*)fImplementation.Last();
  57. }
  58.  
  59. //--------------------------------------------------------------------------------
  60. DU_MSelectable*
  61. DU_CListIterator::Previous()
  62. {
  63.     return (DU_MSelectable*)fImplementation.Previous();
  64. }
  65.  
  66. //--------------------------------------------------------------------------------
  67. FW_Boolean
  68. DU_CListIterator::IsNotComplete()
  69. {
  70.     return fImplementation.IsNotComplete();
  71. }
  72.  
  73.  
  74.