G4ReduciblePolygonIterator Class Reference

#include <G4ReduciblePolygon.hh>


Public Member Functions

 G4ReduciblePolygonIterator (const G4ReduciblePolygon *theSubject)
void Begin ()
G4bool Next ()
G4bool Valid () const
G4double GetA () const
G4double GetB () const

Protected Attributes

const G4ReduciblePolygonsubject
G4ReduciblePolygon::ABVertexcurrent


Detailed Description

Definition at line 162 of file G4ReduciblePolygon.hh.


Constructor & Destructor Documentation

G4ReduciblePolygonIterator::G4ReduciblePolygonIterator ( const G4ReduciblePolygon theSubject  )  [inline]

Definition at line 166 of file G4ReduciblePolygon.hh.

References current, and subject.

00167      { subject = theSubject; current=0; }


Member Function Documentation

void G4ReduciblePolygonIterator::Begin (  )  [inline]

Definition at line 169 of file G4ReduciblePolygon.hh.

References current, subject, and G4ReduciblePolygon::vertexHead.

Referenced by G4Polyhedra::Create(), G4Polycone::Create(), and G4PolyPhiFace::G4PolyPhiFace().

00169 { current = subject->vertexHead; }  

G4double G4ReduciblePolygonIterator::GetA (  )  const [inline]

Definition at line 174 of file G4ReduciblePolygon.hh.

References G4ReduciblePolygon::ABVertex::a, and current.

Referenced by G4Polyhedra::Create(), G4Polycone::Create(), and G4PolyPhiFace::G4PolyPhiFace().

00174 { return current->a; }

G4double G4ReduciblePolygonIterator::GetB (  )  const [inline]

Definition at line 175 of file G4ReduciblePolygon.hh.

References G4ReduciblePolygon::ABVertex::b, and current.

Referenced by G4Polyhedra::Create(), G4Polycone::Create(), and G4PolyPhiFace::G4PolyPhiFace().

00175 { return current->b; }

G4bool G4ReduciblePolygonIterator::Next (  )  [inline]

Definition at line 170 of file G4ReduciblePolygon.hh.

References current, G4ReduciblePolygon::ABVertex::next, and Valid().

Referenced by G4Polyhedra::Create(), G4Polycone::Create(), and G4PolyPhiFace::G4PolyPhiFace().

00170 { if (current) current=current->next; return Valid(); }

G4bool G4ReduciblePolygonIterator::Valid (  )  const [inline]

Definition at line 172 of file G4ReduciblePolygon.hh.

References current.

Referenced by Next().

00172 { return current!=0; }  


Field Documentation

G4ReduciblePolygon::ABVertex* G4ReduciblePolygonIterator::current [protected]

Definition at line 180 of file G4ReduciblePolygon.hh.

Referenced by Begin(), G4ReduciblePolygonIterator(), GetA(), GetB(), Next(), and Valid().

const G4ReduciblePolygon* G4ReduciblePolygonIterator::subject [protected]

Definition at line 179 of file G4ReduciblePolygon.hh.

Referenced by Begin(), and G4ReduciblePolygonIterator().


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:53:16 2013 for Geant4 by  doxygen 1.4.7