Yate
Public Member Functions | List of all members
NamedIterator Class Reference

NamedList parameters iterator. More...

#include <yateclass.h>

Public Member Functions

 NamedIterator (const NamedList &list)
 
 NamedIterator (const NamedIterator &original)
 
NamedIteratoroperator= (const NamedList &list)
 
NamedIteratoroperator= (const NamedIterator &original)
 
const NamedStringget ()
 
bool eof () const
 
void reset ()
 

Detailed Description

NamedList parameters iterator.

An iterator for NamedString parameters of a NamedList. Fast but unsafe, the list must not be modified during iteration.

Constructor & Destructor Documentation

NamedIterator ( const NamedList list)
inline

Constructor

Parameters
listNamedList whose parameters are iterated
NamedIterator ( const NamedIterator original)
inline

Copy constructor, points to same list and position as the original

Parameters
originalIterator to copy from

Member Function Documentation

bool eof ( ) const
inline

Check if the iteration reached end of the parameters list

const NamedString* get ( )

Get the current parameter and advance in the list

Returns
Pointer to list parameter or NULL if advanced past end (eof)
NamedIterator& operator= ( const NamedList list)
inline

Assignment from list operator

Parameters
listNamedList whose parameters are iterated

References ObjList::skipNull().

NamedIterator& operator= ( const NamedIterator original)
inline

Assignment operator, points to same list and position as the original

Parameters
originalIterator to copy from
void reset ( )
inline

Reset the iterator to the first position in the parameters list

References ObjList::skipNull().


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