Mercurial > illumos > onarm
view usr/src/cmd/man/src/util/nsgmls.src/include/IListIterBase.h @ 4:1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Mon, 31 Aug 2009 14:38:03 +0900 |
parents | c9caec207d52 |
children |
line wrap: on
line source
// Copyright (c) 1994 James Clark // See the file COPYING for copying permission. #pragma ident "%Z%%M% %I% %E% SMI" #ifndef IListIterBase_INCLUDED #define IListIterBase_INCLUDED 1 #include "Link.h" #include "IListBase.h" #ifdef SP_NAMESPACE namespace SP_NAMESPACE { #endif class SP_API IListIterBase { public: IListIterBase(const IListBase &); int done() const; Link *cur() const; void next(); private: Link *p_; }; inline IListIterBase::IListIterBase(const IListBase &list) : p_(list.head_) { } inline int IListIterBase::done() const { return p_ == 0; } inline Link *IListIterBase::cur() const { return p_; } inline void IListIterBase::next() { p_ = p_->next_; } #ifdef SP_NAMESPACE } #endif #endif /* not IListIterBase_INCLUDED */