Itasca C++ Interface
Loading...
Searching...
No Matches
Public Member Functions | List of all members
itasca::IIterator< T > Class Template Reference

Iterator for an IContainer. More...

#include <icontainer.h>

Inheritance diagram for itasca::IIterator< T >:
itasca::ICIterator< T >

Public Member Functions

 IIterator (IContainer *c)
 
const IIterator< T > & operator++ ()
 Increment the iterator to the next entry in the IContainer.
 
void setContainer (IContainer *c)
 Associate this with a different container.
 
T * get () const
 Return a pointer to T.
 
T * operator-> () const
 Return a pointer to T.
 
T & operator* () const
 Return a referenc to T.
 
 operator T* () const
 Return a pointer to T.
 
- Public Member Functions inherited from itasca::ICIterator< T >
 ICIterator (const IContainer *c)
 
 ~ICIterator ()
 Destructor for the const iterator.
 
void setContainer (const IContainer *c)
 Associate this with a different container.
 
const IContainergetContainer () const
 Get the IContainer pointer that this iterator is associated with.
 
bool atEnd () const
 Returns true if at the end of the IContainer.
 
const ICIterator< T > & operator++ ()
 Increment the const iterator to the next entry in the IContainer.
 
const T * get () const
 Return a const pointer to T.
 
const T * operator-> () const
 Return a const pointer to T.
 
const T & operator* () const
 Return a const reference to T.
 
 operator const T * () const
 Return a const pointer to T.
 
void copy (const ICIterator< T > &c)
 Copy another iterator.
 

Detailed Description

template<class T>
class itasca::IIterator< T >

Iterator for an IContainer.

An iterator for generically iterating through an IContainer. This should not be used in time sensitive operations.

Constructor & Destructor Documentation

◆ IIterator()

template<class T >
itasca::IIterator< T >::IIterator ( IContainer * c)
inline

Constructor for the iterator.

Parameters
cPointer to the IContainer.

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