Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ReduciblePolygonIterator Class Reference

G4ReduciblePolygonIterator is companion class for iterating over the vertices of a polygon. More...

#include <G4ReduciblePolygon.hh>

Public Member Functions

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

Detailed Description

G4ReduciblePolygonIterator is companion class for iterating over the vertices of a polygon.

Definition at line 214 of file G4ReduciblePolygon.hh.

Constructor & Destructor Documentation

◆ G4ReduciblePolygonIterator()

G4ReduciblePolygonIterator::G4ReduciblePolygonIterator ( const G4ReduciblePolygon * theSubject)
inline

Definition at line 218 of file G4ReduciblePolygon.hh.

219 {
220 subject = theSubject; current = nullptr;
221 }

Member Function Documentation

◆ Begin()

void G4ReduciblePolygonIterator::Begin ( )
inline

Definition at line 223 of file G4ReduciblePolygon.hh.

223{ current = subject->vertexHead; }

Referenced by G4PolyPhiFace::G4PolyPhiFace().

◆ GetA()

G4double G4ReduciblePolygonIterator::GetA ( ) const
inline

Definition at line 233 of file G4ReduciblePolygon.hh.

233{ return current->a; }

Referenced by G4PolyPhiFace::G4PolyPhiFace().

◆ GetB()

G4double G4ReduciblePolygonIterator::GetB ( ) const
inline

Definition at line 234 of file G4ReduciblePolygon.hh.

234{ return current->b; }

Referenced by G4PolyPhiFace::G4PolyPhiFace().

◆ Next()

G4bool G4ReduciblePolygonIterator::Next ( )
inline

Definition at line 225 of file G4ReduciblePolygon.hh.

226 {
227 if (current != nullptr) { current=current->next; }
228 return Valid();
229 }

Referenced by G4PolyPhiFace::G4PolyPhiFace().

◆ Valid()

G4bool G4ReduciblePolygonIterator::Valid ( ) const
inline

Definition at line 231 of file G4ReduciblePolygon.hh.

231{ return current != nullptr; }

Referenced by Next().


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