Inheritance diagram for ArrayIter:

![]() |
Public Methods | |
| ArrayIter (oa::oaInt4 initialCap=0) | |
| virtual | ~ArrayIter () |
| virtual bool | next (typename I::Type &objOut) |
| virtual void | reset () |
| void | add (const T &elem) |
|
||||||||||
|
This is the constructor for the ArrayIter class. It preallocates the internal array and sets the iteration location such that the first "next" call will return the first element.
|
|
|||||||||
|
This is the destructor for the ArrayIter class. It frees the internal buffer of elements. |
|
||||||||||
|
This function is used to add an element of type T to the end of this array.
|
|
||||||||||
|
This is the implementation of the "IIter<I>::next()" function. It increments the location stored in "current" and returns the element at that new location via the "objOut" parameter.
|
|
|||||||||
|
This function resets the internal state such that the next time "next()" is called, the first element of the array will be returned. |

Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.