actual/packages/node-libofx/OpenSP-1.5.2/include/IListIterBase.h
2022-04-28 22:44:38 -04:00

51 lines
725 B
C++

// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#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 */