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

#include <G4ITManager.hh>

Inheritance diagram for G4VITManager::allbox_iterator:
G4VITManager::iterator

Public Member Functions

 allbox_iterator (G4ITType)
 
 allbox_iterator (G4VITManager *)
 
virtual ~allbox_iterator ()
 
allbox_iteratoroperator= (const allbox_iterator &i)
 
allbox_iteratoroperator++ (G4int)
 
- Public Member Functions inherited from G4VITManager::iterator
 iterator (G4ITBox *)
 
virtual ~iterator ()
 
virtual G4bool begin ()
 
virtual G4bool end ()
 
iteratoroperator= (const iterator &i)
 
iteratoroperator++ (G4int)
 
G4IToperator* ()
 
G4ITBoxGetBox ()
 

Protected Attributes

G4VITManagerfInstance
 
- Protected Attributes inherited from G4VITManager::iterator
G4ITfNextIT
 
G4ITBoxfCurrentBox
 

Additional Inherited Members

- Protected Member Functions inherited from G4VITManager::iterator
void PrintNext () const
 

Detailed Description

Definition at line 119 of file G4ITManager.hh.

Constructor & Destructor Documentation

G4VITManager::allbox_iterator::allbox_iterator ( G4ITType  type)
G4VITManager::allbox_iterator::allbox_iterator ( G4VITManager man)
virtual G4VITManager::allbox_iterator::~allbox_iterator ( )
inlinevirtual

Definition at line 124 of file G4ITManager.hh.

124 {;}

Member Function Documentation

G4VITManager::allbox_iterator & G4VITManager::allbox_iterator::operator++ ( G4int  )

Definition at line 56 of file G4ITManager_allbox_iterator.cc.

57 {
58  if(fNextIT)
59  {
60  fNextIT = fNextIT -> GetNext();
61  if(fNextIT == 0)
62  {
63  while (fCurrentBox && fCurrentBox != fInstance->GetLastBox() && fNextIT == 0)
64  {
66  if(fCurrentBox)
67  {
69 // if(fNextIT)
70 // G4cout << "allbox_iterator::operator++ -- : "
71 // << fNextIT -> GetName()
72 // << " (" << fNextIT->GetTrack()->GetTrackID() << ") "
73 // << G4endl;
74  }
75  }
76  }
77 // else
78 // {
79 // G4cout << "allbox_iterator::operator++ -- : "
80 // << fNextIT -> GetName()
81 // << " (" << fNextIT->GetTrack()->GetTrackID() << ") "
82 // << G4endl;
83 // }
84  }
85  return *this;
86 }
G4ITBox * GetNextBox()
Definition: G4ITBox.hh:127
G4IT * GetFirstIT()
Definition: G4ITBox.hh:104
virtual G4ITBox * GetLastBox()=0
G4VITManager::allbox_iterator & G4VITManager::allbox_iterator::operator= ( const allbox_iterator i)

Definition at line 89 of file G4ITManager_allbox_iterator.cc.

References G4VITManager::iterator::fCurrentBox, and G4VITManager::iterator::fNextIT.

90 {
91  if(this != &i)
92  {
93  fNextIT = i.fNextIT;
94  fCurrentBox = i.fCurrentBox;
95  }
96  return *this;
97 }

Field Documentation

G4VITManager* G4VITManager::allbox_iterator::fInstance
protected

Definition at line 129 of file G4ITManager.hh.

Referenced by allbox_iterator().


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