Mercurial > illumos > onarm
view usr/src/cmd/man/src/util/nsgmls.src/include/IListIterBase.h @ 0:c9caec207d52 b86
Initial porting based on b86
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Tue, 02 Jun 2009 18:56:50 +0900 |
parents | |
children | 1a15d5aaf794 |
line wrap: on
line source
// Copyright (c) 1994 James Clark // See the file COPYING for copying permission. #pragma ident "@(#)IListIterBase.h 1.4 00/07/17 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 */