My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
GenericConstIterator Class Reference

Template List iterator support. More...

Inheritance diagram for GenericConstIterator:
TemplateListIntf::ConstIterator

Public Member Functions

 GenericConstIterator (const QList< TemplateVariant > &list)
 
virtual ~GenericConstIterator ()
 
void toFirst ()
 
void toLast ()
 
void toNext ()
 
void toPrev ()
 
bool current (TemplateVariant &v) const
 
- Public Member Functions inherited from TemplateListIntf::ConstIterator
virtual ~ConstIterator ()
 

Private Attributes

QListIterator< TemplateVariantm_it
 

Detailed Description

Template List iterator support.

Definition at line 122 of file context.cpp.

Constructor & Destructor Documentation

GenericConstIterator::GenericConstIterator ( const QList< TemplateVariant > &  list)
inline

Definition at line 125 of file context.cpp.

: m_it(list) { }
virtual GenericConstIterator::~GenericConstIterator ( )
inlinevirtual

Definition at line 127 of file context.cpp.

{}

Member Function Documentation

bool GenericConstIterator::current ( TemplateVariant v) const
inlinevirtual

Implements TemplateListIntf::ConstIterator.

Definition at line 144 of file context.cpp.

References m_it.

{
if (m_it.current())
{
v = *m_it.current();
return TRUE;
}
else
{
return FALSE;
}
}
void GenericConstIterator::toFirst ( )
inlinevirtual

Moves iterator to the first element in the list

Implements TemplateListIntf::ConstIterator.

Definition at line 128 of file context.cpp.

References m_it.

{
m_it.toFirst();
}
void GenericConstIterator::toLast ( )
inlinevirtual

Moves iterator to the last element in the list

Implements TemplateListIntf::ConstIterator.

Definition at line 132 of file context.cpp.

References m_it.

{
m_it.toLast();
}
void GenericConstIterator::toNext ( )
inlinevirtual

Moves iterator to the next element in the list

Implements TemplateListIntf::ConstIterator.

Definition at line 136 of file context.cpp.

References m_it.

{
if (m_it.current()) ++m_it;
}
void GenericConstIterator::toPrev ( )
inlinevirtual

Moves iterator to the previous element in the list

Implements TemplateListIntf::ConstIterator.

Definition at line 140 of file context.cpp.

References m_it.

{
if (m_it.current()) --m_it;
}

Member Data Documentation

QListIterator<TemplateVariant> GenericConstIterator::m_it
private

Definition at line 158 of file context.cpp.

Referenced by current(), toFirst(), toLast(), toNext(), and toPrev().


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