|
Itasca C++ Interface
|
Iterator for an IContainer. More...
#include <icontainer.h>
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 IContainer * | getContainer () 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. More... | |
| 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. | |
Iterator for an IContainer.
An iterator for generically iterating through an IContainer. This should not be used in time sensitive operations.
|
inline |
Constructor for the iterator.
| c | Pointer to the IContainer. |
1.8.15