Public Member Functions | Private Attributes | List of all members
CompoundEntryIterator Class Reference
Inheritance diagram for CompoundEntryIterator:
ICompoundIterator QListIterator< CompoundEntry > QGListIterator

Public Member Functions

 CompoundEntryIterator (const MainHandler *m, const QList< CompoundEntry > &list)
 
virtual ~CompoundEntryIterator ()
 
virtual void toFirst ()
 
virtual void toLast ()
 
virtual void toNext ()
 
virtual void toPrev ()
 
virtual ICompoundcurrent () const
 
virtual void release ()
 
- Public Member Functions inherited from QListIterator< CompoundEntry >
 QListIterator (const QList< CompoundEntry > &l)
 
 ~QListIterator ()
 
uint count () const
 
bool isEmpty () const
 
bool atFirst () const
 
bool atLast () const
 
CompoundEntrytoFirst ()
 
CompoundEntrytoLast ()
 
 operator CompoundEntry * () const
 
CompoundEntryoperator* ()
 
CompoundEntrycurrent () const
 
CompoundEntryoperator() ()
 
CompoundEntryoperator++ ()
 
CompoundEntryoperator+= (uint j)
 
CompoundEntryoperator-- ()
 
CompoundEntryoperator-= (uint j)
 
QListIterator< CompoundEntry > & operator= (const QListIterator< CompoundEntry > &it)
 

Private Attributes

const MainHandlerm_mainHandler
 

Additional Inherited Members

- Protected Member Functions inherited from QGListIterator
 QGListIterator (const QGList &)
 
 QGListIterator (const QGListIterator &)
 
QGListIteratoroperator= (const QGListIterator &)
 
 ~QGListIterator ()
 
bool atFirst () const
 
bool atLast () const
 
QCollection::Item toFirst ()
 
QCollection::Item toLast ()
 
QCollection::Item get () const
 
QCollection::Item operator() ()
 
QCollection::Item operator++ ()
 
QCollection::Item operator+= (uint)
 
QCollection::Item operator-- ()
 
QCollection::Item operator-= (uint)
 
- Protected Attributes inherited from QGListIterator
QGListlist
 

Detailed Description

Definition at line 53 of file mainhandler.cpp.

Constructor & Destructor Documentation

CompoundEntryIterator::CompoundEntryIterator ( const MainHandler m,
const QList< CompoundEntry > &  list 
)
inline

Definition at line 57 of file mainhandler.cpp.

virtual CompoundEntryIterator::~CompoundEntryIterator ( )
inlinevirtual

Definition at line 59 of file mainhandler.cpp.

59 {}

Member Function Documentation

virtual ICompound* CompoundEntryIterator::current ( ) const
inlinevirtual

Implements ICompoundIterator.

Definition at line 77 of file mainhandler.cpp.

78  {
80  return ch ? m_mainHandler->compoundById(ch->id.utf8()) : 0;
81  }
const MainHandler * m_mainHandler
Definition: mainhandler.cpp:86
type * current() const
Definition: qlist.h:146
ICompound * compoundById(const char *id) const
QString id
Definition: mainhandler.h:29
QCString utf8() const
Definition: qstring.cpp:14507
virtual void CompoundEntryIterator::release ( )
inlinevirtual

Implements ICompoundIterator.

Definition at line 82 of file mainhandler.cpp.

83  { delete this; }
virtual void CompoundEntryIterator::toFirst ( )
inlinevirtual

Implements ICompoundIterator.

Definition at line 61 of file mainhandler.cpp.

62  {
64  }
type * toFirst()
Definition: qlist.h:135
virtual void CompoundEntryIterator::toLast ( )
inlinevirtual

Implements ICompoundIterator.

Definition at line 65 of file mainhandler.cpp.

66  {
68  }
type * toLast()
Definition: qlist.h:136
virtual void CompoundEntryIterator::toNext ( )
inlinevirtual

Implements ICompoundIterator.

Definition at line 69 of file mainhandler.cpp.

70  {
72  }
type * operator++()
Definition: qlist.h:148
virtual void CompoundEntryIterator::toPrev ( )
inlinevirtual

Implements ICompoundIterator.

Definition at line 73 of file mainhandler.cpp.

74  {
76  }
type * operator--()
Definition: qlist.h:150

Member Data Documentation

const MainHandler* CompoundEntryIterator::m_mainHandler
private

Definition at line 86 of file mainhandler.cpp.


The documentation for this class was generated from the following file: