#include <ObjectPool.hxx>

Public Types | |
| typedef const X * | value_type |
Public Member Functions | |
| ObjectPoolIterator (const ObjectPool< X > &pool) | |
| virtual bool | more () |
| Return true if and only if there are other object in this iterator. More... | |
| virtual const X * | next () |
| Return the current object and step to the next one. More... | |
| virtual void | remove () |
| Delete the current element and step to the next one. More... | |
Private Attributes | |
| const ObjectPool< X > & | _pool |
| int | _i |
| int | _nbFound |
|
inherited |
| ObjectPoolIterator< X >::ObjectPoolIterator | ( | const ObjectPool< X > & | pool | ) |
|
virtual |
Return true if and only if there are other object in this iterator.
Implements SMDS_Iterator< const X * >.
References ObjectPoolIterator< X >::_i, ObjectPoolIterator< X >::_nbFound, and ObjectPoolIterator< X >::_pool.
Referenced by ObjectPoolIterator< X >::next(), and ObjectPoolIterator< X >::ObjectPoolIterator().
|
virtual |
Return the current object and step to the next one.
Implements SMDS_Iterator< const X * >.
References ObjectPoolIterator< X >::_i, ObjectPoolIterator< X >::_nbFound, ObjectPoolIterator< X >::_pool, and ObjectPoolIterator< X >::more().
Referenced by ObjectPoolIterator< X >::ObjectPoolIterator().
|
virtualinherited |
Delete the current element and step to the next one.
|
private |
|
private |
|
private |