proj home

Files   Classes   Functions   Hierarchy  

pnlinkiterconst< Indx > Class Template Reference

Iterate about pnlink<Index> const. More...

#include <pnlink.h>

Collaboration diagram for pnlinkiterconst< Indx >:

List of all members.

Public Types

typedef pnlink< Indx > const link

Public Member Functions

 pnlinkiterconst (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?
linkoperator() () const
 Access the current link.
linkoperator-> () const
 Access the current link.

Public Attributes

linkstart
 The start of the circular loop.
linkcurrent
 The current link.


Detailed Description

template<typename Indx>
class pnlinkiterconst< Indx >

Iterate about pnlink<Index> const.

Definition at line 148 of file pnlink.h.


Member Typedef Documentation

template<typename Indx>
typedef pnlink<Indx> const pnlinkiterconst< Indx >::link

Definition at line 152 of file pnlink.h.


Constructor & Destructor Documentation

template<typename Indx>
pnlinkiterconst< Indx >::pnlinkiterconst ( link _start  )  [inline]

Construct with a definite link.

Definition at line 160 of file pnlink.h.

00161     : start(_start) {}


Member Function Documentation

template<typename Indx>
boolc pnlinkiterconst< Indx >::operator! (  )  const [inline]

Are there any more links to iterate over?

Definition at line 170 of file pnlink.h.

References pnlinkiterconst< Indx >::current, and pnlinkiterconst< Indx >::start.

00171     { return current != start; }

template<typename Indx>
link* pnlinkiterconst< Indx >::operator() (  )  const [inline]

Access the current link.

Definition at line 174 of file pnlink.h.

References pnlinkiterconst< Indx >::current.

00175     { return current; }

template<typename Indx>
void pnlinkiterconst< Indx >::operator++ (  )  [inline]

Move to the next link.

Definition at line 167 of file pnlink.h.

References pnlinkiterconst< Indx >::current, and pnlink< Indx >::next.

00168     { assert(current!=0); current = current->next; }

template<typename Indx>
link* pnlinkiterconst< Indx >::operator-> (  )  const [inline]

Access the current link.

Definition at line 177 of file pnlink.h.

References pnlinkiterconst< Indx >::current.

00178     { return current; }

template<typename Indx>
void pnlinkiterconst< Indx >::reset (  )  [inline]

Reset the iterator to the start.

Definition at line 164 of file pnlink.h.

References pnlinkiterconst< Indx >::current, and pnlinkiterconst< Indx >::start.

Referenced by regionD2tessdisplaymesh< TS, Indx >::draw().

00165     { assert(start!=0); current=start; }


Member Data Documentation

template<typename Indx>
link* pnlinkiterconst< Indx >::current

template<typename Indx>
link* pnlinkiterconst< Indx >::start

The start of the circular loop.

Definition at line 155 of file pnlink.h.

Referenced by pnlinkiterconst< Indx >::operator!(), and pnlinkiterconst< Indx >::reset().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:09 2011 for Chelton Evans Source by  doxygen 1.5.8