home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-25 | 1.8 KB | 74 lines | [TEXT/MPS ] |
- // Copyright © 1995 Apple Computer, Inc. All rights reserved.
- // Release Version: $ 1.0 d11 $
-
- //================================================================================
- #ifndef DULIST_H
- #include "DUList.h" // DU_CList, DU_CListIterator
- #endif
-
- //================================================================================
- DU_CList::DU_CList()
- : FW_CPrivOrderedCollection()
- {
- }
-
- //--------------------------------------------------------------------------------
- DU_CList::~DU_CList()
- {
- }
-
- //--------------------------------------------------------------------------------
- DU_MSelectable*
- DU_CList::FirstItem()
- {
- return (DU_MSelectable*)FW_CPrivOrderedCollection::First();
- }
-
- //================================================================================
- DU_CListIterator::DU_CListIterator(DU_CList* list)
- : fImplementation(list)
- {
- }
-
- //--------------------------------------------------------------------------------
- DU_CListIterator::~DU_CListIterator()
- {
- }
-
- //--------------------------------------------------------------------------------
- DU_MSelectable*
- DU_CListIterator::First()
- {
- return (DU_MSelectable*)fImplementation.First();
- }
-
- //--------------------------------------------------------------------------------
- DU_MSelectable*
- DU_CListIterator::Next()
- {
- return (DU_MSelectable*)fImplementation.Next();
- }
-
- //--------------------------------------------------------------------------------
- DU_MSelectable*
- DU_CListIterator::Last()
- {
- return (DU_MSelectable*)fImplementation.Last();
- }
-
- //--------------------------------------------------------------------------------
- DU_MSelectable*
- DU_CListIterator::Previous()
- {
- return (DU_MSelectable*)fImplementation.Previous();
- }
-
- //--------------------------------------------------------------------------------
- FW_Boolean
- DU_CListIterator::IsNotComplete()
- {
- return fImplementation.IsNotComplete();
- }
-
-
-