Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes
UReduciblePolygonIterator Class Reference

#include <UReduciblePolygon.hh>

Public Member Functions

 UReduciblePolygonIterator (const UReduciblePolygon *theSubject)
 
void Begin ()
 
bool Next ()
 
bool Valid () const
 
double GetA () const
 
double GetB () const
 

Protected Attributes

const UReduciblePolygonsubject
 
UReduciblePolygon::ABVertexcurrent
 

Detailed Description

Definition at line 150 of file UReduciblePolygon.hh.

Constructor & Destructor Documentation

UReduciblePolygonIterator::UReduciblePolygonIterator ( const UReduciblePolygon theSubject)
inline

Definition at line 154 of file UReduciblePolygon.hh.

References current, and subject.

155  {
156  subject = theSubject;
157  current = 0;
158  }
UReduciblePolygon::ABVertex * current
const UReduciblePolygon * subject

Member Function Documentation

void UReduciblePolygonIterator::Begin ( )
inline

Definition at line 160 of file UReduciblePolygon.hh.

References current, subject, and UReduciblePolygon::vertexHead.

Referenced by UGenericPolycone::Create(), UPolyhedra::Create(), and UPolyPhiFace::UPolyPhiFace().

161  {
163  }
UReduciblePolygon::ABVertex * current
const UReduciblePolygon * subject
double UReduciblePolygonIterator::GetA ( ) const
inline

Definition at line 175 of file UReduciblePolygon.hh.

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

Referenced by UGenericPolycone::Create(), UPolyhedra::Create(), and UPolyPhiFace::UPolyPhiFace().

176  {
177  return current->a;
178  }
UReduciblePolygon::ABVertex * current
double UReduciblePolygonIterator::GetB ( ) const
inline

Definition at line 179 of file UReduciblePolygon.hh.

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

Referenced by UGenericPolycone::Create(), UPolyhedra::Create(), and UPolyPhiFace::UPolyPhiFace().

180  {
181  return current->b;
182  }
UReduciblePolygon::ABVertex * current
bool UReduciblePolygonIterator::Next ( )
inline

Definition at line 164 of file UReduciblePolygon.hh.

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

Referenced by UGenericPolycone::Create(), UPolyhedra::Create(), and UPolyPhiFace::UPolyPhiFace().

165  {
166  if (current) current = current->next;
167  return Valid();
168  }
UReduciblePolygon::ABVertex * current
bool UReduciblePolygonIterator::Valid ( ) const
inline

Definition at line 170 of file UReduciblePolygon.hh.

References current.

Referenced by Next().

171  {
172  return current != 0;
173  }
UReduciblePolygon::ABVertex * current

Field Documentation

UReduciblePolygon::ABVertex* UReduciblePolygonIterator::current
protected

Definition at line 187 of file UReduciblePolygon.hh.

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

const UReduciblePolygon* UReduciblePolygonIterator::subject
protected

Definition at line 186 of file UReduciblePolygon.hh.

Referenced by Begin(), and UReduciblePolygonIterator().


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