Files Classes Functions Hierarchy
#include <pnlink.h>
Public Types | |
| typedef pnlink< Indx > | link |
Public Member Functions | |
| pnlinkiter (link *_start) | |
| Construct with a definite link. | |
| void | reset () |
| Reset the iterator to the start. | |
| void | operator++ () |
| Move to the next link. | |
| boolc | operator! () const |
| Are there any more links to iterate over? | |
| link * | operator() () const |
| Access the current link. | |
| link * | operator-> () const |
| Access the current link. | |
Public Attributes | |
| link * | start |
| The start of the circular loop. | |
| link * | current |
| The current link. | |
The for loop tests before entry so here the do while loop is used instead.
pnlinkiterconst<Indx> k(tess.vi[i].start);
k.reset();
do
{
...
++k;
} while (!k);
Definition at line 107 of file pnlink.h.
| typedef pnlink<Indx> pnlinkiter< Indx >::link |
| pnlinkiter< Indx >::pnlinkiter | ( | link * | _start | ) | [inline] |
| boolc pnlinkiter< Indx >::operator! | ( | ) | const [inline] |
Are there any more links to iterate over?
Definition at line 129 of file pnlink.h.
References pnlinkiter< Indx >::current, and pnlinkiter< Indx >::start.
| link* pnlinkiter< Indx >::operator() | ( | ) | const [inline] |
Access the current link.
Definition at line 133 of file pnlink.h.
References pnlinkiter< Indx >::current.
00134 { return current; }
| void pnlinkiter< Indx >::operator++ | ( | ) | [inline] |
Move to the next link.
Definition at line 126 of file pnlink.h.
References pnlinkiter< Indx >::current, and pnlink< Indx >::next.
| link* pnlinkiter< Indx >::operator-> | ( | ) | const [inline] |
Access the current link.
Definition at line 136 of file pnlink.h.
References pnlinkiter< Indx >::current.
00137 { return current; }
| void pnlinkiter< Indx >::reset | ( | ) | [inline] |
Reset the iterator to the start.
Definition at line 123 of file pnlink.h.
References pnlinkiter< Indx >::current, and pnlinkiter< Indx >::start.
Referenced by regionD2tessdisplaypoints< TS, Indx >::draw(), pnlink< Indx >::niInverse(), pnlink< Indx >::piInverse(), and regionD2tess< Vreg, Vpts, Indx >::verify().
| link* pnlinkiter< Indx >::current |
The current link.
Definition at line 116 of file pnlink.h.
Referenced by pnlinkiter< Indx >::operator!(), pnlinkiter< Indx >::operator()(), pnlinkiter< Indx >::operator++(), pnlinkiter< Indx >::operator->(), and pnlinkiter< Indx >::reset().
| link* pnlinkiter< Indx >::start |
The start of the circular loop.
Definition at line 114 of file pnlink.h.
Referenced by pnlinkiter< Indx >::operator!(), and pnlinkiter< Indx >::reset().
1.5.8