Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VITManager::allbox_iterator Class Reference

#include <G4ITManager.hh>

+ Inheritance diagram for G4VITManager::allbox_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

◆ allbox_iterator() [1/2]

G4VITManager::allbox_iterator::allbox_iterator ( G4ITType  type)

Definition at line 40 of file G4ITManager_allbox_iterator.cc.

40 : iterator(0)
41{
44 fNextIT = 0 ;
45}
static G4AllITManager * Instance()
G4VITManager * GetInstance(G4ITType)
virtual G4ITBox * GetFirstBox()=0

◆ allbox_iterator() [2/2]

G4VITManager::allbox_iterator::allbox_iterator ( G4VITManager man)

Definition at line 47 of file G4ITManager_allbox_iterator.cc.

47 : iterator(0)
48{
49 fInstance = man;
51 fNextIT = 0 ;
52}

◆ ~allbox_iterator()

virtual G4VITManager::allbox_iterator::~allbox_iterator ( )
inlinevirtual

Definition at line 124 of file G4ITManager.hh.

124{;}

Member Function Documentation

◆ operator++()

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

◆ operator=()

G4VITManager::allbox_iterator & G4VITManager::allbox_iterator::operator= ( const allbox_iterator i)

Definition at line 89 of file G4ITManager_allbox_iterator.cc.

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

Member Data Documentation

◆ fInstance

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: