1 // Copyright (c) 1994 James Clark 2 // See the file COPYING for copying permission. 3 #pragma ident "%Z%%M% %I% %E% SMI" 4 5 #ifndef IListIter_INCLUDED 6 #define IListIter_INCLUDED 1 7 8 #include "IListIterBase.h" 9 #include "IList.h" 10 11 #ifdef SP_NAMESPACE 12 namespace SP_NAMESPACE { 13 #endif 14 15 template<class T> 16 class IListIter : private IListIterBase { 17 public: IListIter(const IList<T> & list)18 IListIter(const IList<T> &list) : IListIterBase(list) { } cur()19 T *cur() const { return (T *)IListIterBase::cur(); } 20 21 IListIterBase::next; 22 IListIterBase::done; 23 }; 24 25 #ifdef SP_NAMESPACE 26 } 27 #endif 28 29 #endif /* not IListIter_INCLUDED */ 30