![]() |
Dragonfly 4.22
A text-based game engine
|
Public Member Functions | |
| ObjectListIterator (const ObjectList *p_list) | |
| void | first () |
| void | last () |
| void | next () |
| bool | isDone () const |
| Object * | currentObject () const |
| ObjectListIterator & | operator= (const ObjectListIterator &rhs) |
| void | setList (const ObjectList *p_list) |
Private Member Functions | |
| ObjectListIterator () | |
Private Attributes | |
| int | m_index |
| const ObjectList * | m_p_list |
|
private |
Iterator must be given list when created.
| df::ObjectListIterator::ObjectListIterator | ( | const ObjectList * | p_list | ) |
Create iterator, over indicated list.
| Object * df::ObjectListIterator::currentObject | ( | ) | const |
Return pointer to current item in list, NULL if done/empty.
| void df::ObjectListIterator::first | ( | ) |
Set iterator to first item in list.
| bool df::ObjectListIterator::isDone | ( | ) | const |
Return true if at end of list.
| void df::ObjectListIterator::last | ( | ) |
Reset to last object in list.
| void df::ObjectListIterator::next | ( | ) |
Set iterator to next item in list.
| ObjectListIterator & df::ObjectListIterator::operator= | ( | const ObjectListIterator & | rhs | ) |
Assignment operator.
| void df::ObjectListIterator::setList | ( | const ObjectList * | p_list | ) |
Set to new List.
|
private |
Index into list.
|
private |
List iterating over.