"Fossies" - the Fresh Open Source Software Archive

Member "OpenSP-1.5.2/include/IListIter.h" (21 Jul 2005, 542 Bytes) of package /linux/misc/old/OpenSP-1.5.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "IListIter.h" see the Fossies "Dox" file reference documentation.

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