Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Iter< T > Class Template Reference

#include <elm/dyndata/AbstractCollection.h>

+ Inheritance diagram for Iter< T >:

Public Member Functions

 Iter (AbstractIter< T > *iter)
 
 Iter (const Iter< T > &iter)
 
AbstractIter< T > * instance (void) const
 
bool ended (void) const
 
item (void) const
 
void next (void)
 
Iter< T > & operator= (const Iter< T > &iter)
 
- Public Member Functions inherited from PreIterator< Iter< T >, T >
bool operator() () const
 
bool operator! () const
 
operator* () const
 
operator-> () const
 
Iter< T > & operator++ ()
 
void operator++ (int)
 
bool operator== (const Iter< T > &i) const
 
bool operator!= (const Iter< T > &i) const
 

Protected Attributes

LockPtr< AbstractIter< T > > i
 

Additional Inherited Members

- Public Types inherited from PreIterator< Iter< T >, T >
typedef T t
 
typedef T return_t
 

Detailed Description

template<class T>
class elm::dyndata::Iter< T >

Wrapper class around AbstractIter to more easily manage the usage and the release.

Parameters
TType of iterated values.

Constructor & Destructor Documentation

◆ Iter() [1/2]

Iter ( AbstractIter< T > *  iter)
inline

◆ Iter() [2/2]

Iter ( const Iter< T > &  iter)
inline

Member Function Documentation

◆ ended()

bool ended ( void  ) const
inline

References Iter< T >::i.

◆ instance()

AbstractIter< T > * instance ( void  ) const
inline

Get the instance of the AbstractIter used.

Returns
Abstract iterator instance.

References Iter< T >::i.

◆ item()

T item ( void  ) const
inline

References Iter< T >::i.

◆ next()

void next ( void  )
inline

References Iter< T >::i.

◆ operator=()

Iter<T>& operator= ( const Iter< T > &  iter)
inline

References Iter< T >::i.

Member Data Documentation

◆ i


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