cgma
|
#include <CGMAIterator.hpp>
Public Member Functions | |
CGMAIterator (DLIList< RefEntity * > &list, int size) | |
Constructor. | |
void | reset () |
Reset iterator. | |
bool | next (RefEntity **array, int &array_size) |
Get and step. | |
int | size () const |
Get the saved default request size NOTE: This is *not* the number of entities iterated over. | |
bool | at_end () const |
Private Attributes | |
std::vector< RefEntity * > | mArray |
std::vector< RefEntity * > ::const_iterator | mIter |
int | mSize |
Definition at line 24 of file CGMAIterator.hpp.
CGMAIterator::CGMAIterator | ( | DLIList< RefEntity * > & | list, |
int | size | ||
) | [inline] |
bool CGMAIterator::at_end | ( | ) | const [inline] |
Definition at line 82 of file CGMAIterator.hpp.
bool CGMAIterator::next | ( | RefEntity ** | array, |
int & | array_size | ||
) | [inline] |
Get and step.
array | allocated array of pointers to RefEntitys. must be allocated by caller and contain at least array_size entries. |
array_size | As input, the requested number of entries to retreive and step over. As output, either the input value or a smaller value if there are insufficient entries remaining. |
Definition at line 54 of file CGMAIterator.hpp.
void CGMAIterator::reset | ( | ) | [inline] |
int CGMAIterator::size | ( | ) | const [inline] |
Get the saved default request size NOTE: This is *not* the number of entities iterated over.
Get saved default request size. This value is saved in the iterator class for convenience. It has no affect on the behavior of the class.
Note: This is neither the number of entities iterated over nor the remaining number of entities.
Definition at line 80 of file CGMAIterator.hpp.
{ return mSize; }
std::vector<RefEntity*> CGMAIterator::mArray [private] |
Definition at line 87 of file CGMAIterator.hpp.
std::vector<RefEntity*>::const_iterator CGMAIterator::mIter [private] |
Definition at line 88 of file CGMAIterator.hpp.
int CGMAIterator::mSize [private] |
Definition at line 89 of file CGMAIterator.hpp.