#include <ndisc.h>
Public Member Functions | |
| NDiscSpecIterator () | |
| Creates a new uninitialised iterator. | |
| NDiscSpecIterator (const NDiscSetSurface &discSet) | |
| Creates a new iterator pointing to the first disc in the given disc set. | |
| void | init (const NDiscSetSurface &discSet) |
| Points this iterator to the first disc in the given disc set. | |
| void | operator++ (int) |
| Points this iterator to the next disc, or makes it past-the-end if there is no next disc. | |
| const NDiscSpec & | operator * () const |
| Returns a reference to the disc pointed to by this iterator. | |
| bool | done () const |
| Determines if this iterator is past-the-end. | |
Protected Attributes | |
| const NDiscSetSurface * | internalDiscSet |
| The disc set through which we are iterating. | |
| NDiscSpec | current |
| The disc currently pointed to. | |
unsigned long. See the precondition below.
|
|
Creates a new uninitialised iterator. This iterator cannot be used or queried until init() is called. |
|
|
Creates a new iterator pointing to the first disc in the given disc set.
|
|
|
Determines if this iterator is past-the-end.
|
|
|
Points this iterator to the first disc in the given disc set.
|
|
|
Returns a reference to the disc pointed to by this iterator.
|
|
|
Points this iterator to the next disc, or makes it past-the-end if there is no next disc.
|
|
|
The disc currently pointed to.
|
|
|
The disc set through which we are iterating.
|