Geant4-11
|
#include <G4ITBox.hh>
Public Member Functions | |
G4bool | Empty () const |
void | Extract (G4IT *) |
G4IT * | FindIT (const G4Track &) |
const G4IT * | FindIT (const G4Track &) const |
G4ITBox () | |
G4IT * | GetFirstIT () |
const G4IT * | GetFirstIT () const |
G4IT * | GetLastIT () |
const G4IT * | GetLastIT () const |
G4ITBox * | GetNextBox () |
const G4ITBox * | GetNextBox () const |
G4int | GetNTrack () const |
G4ITBox * | GetPreviousBox () |
const G4ITBox * | GetPreviousBox () const |
void | Push (G4IT *) |
void | ResetStack () |
void | SetNextBox (G4ITBox *box) |
void | SetPreviousBox (G4ITBox *box) |
void | TransferTo (G4ITBox *) |
~G4ITBox () | |
Private Member Functions | |
const G4ITBox & | operator= (const G4ITBox &right) |
Private Attributes | |
G4int | fNbIT |
G4IT * | fpFirstIT |
G4IT * | fpLastIT |
G4ITBox * | fpNextBox |
G4ITBox * | fpPreviousBox |
G4ITBox behaves just like a stack for G4IT. You can search for specific tracks. Each G4IT knows to which G4ITBox it belongs and its corresponding node. This makes the deletion of an element very fast. The drawback is that a G4IT can only belong to one G4ITBox. If you are not looking for this feature, please use std::list.
Definition at line 60 of file G4ITBox.hh.
G4ITBox::G4ITBox | ( | ) |
Definition at line 37 of file G4ITBox.cc.
G4ITBox::~G4ITBox | ( | ) |
Definition at line 40 of file G4ITBox.cc.
References fNbIT, fpFirstIT, fpNextBox, fpPreviousBox, G4IT::GetNext(), SetNextBox(), and SetPreviousBox().
|
inline |
void G4ITBox::Extract | ( | G4IT * | aStackedIT | ) |
Definition at line 86 of file G4ITBox.cc.
References fNbIT, fpFirstIT, fpLastIT, G4IT::GetNext(), G4IT::GetPrevious(), G4IT::SetITBox(), G4IT::SetNext(), and G4IT::SetPrevious().
Referenced by G4IT::TakeOutBox(), and TransferTo().
The FindIT methods are used for check only. Those methods are not effective due to the linear search. It is better to use GetIT(track) in order to retrieve the IT and GetIT(track)->GetBox() in order to check which is the box pointer.
Definition at line 109 of file G4ITBox.cc.
References fNbIT, fpLastIT, and G4IT::GetPrevious().
Definition at line 129 of file G4ITBox.cc.
References fNbIT, fpLastIT, and G4IT::GetPrevious().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 148 of file G4ITBox.hh.
References fpPreviousBox.
|
inline |
Definition at line 59 of file G4ITBox.cc.
References fNbIT, fpFirstIT, fpLastIT, fpNextBox, and fpPreviousBox.
void G4ITBox::Push | ( | G4IT * | aIT | ) |
Definition at line 69 of file G4ITBox.cc.
References fNbIT, fpFirstIT, fpLastIT, G4IT::SetITBox(), G4IT::SetNext(), and G4IT::SetPrevious().
Referenced by TransferTo().
void G4ITBox::ResetStack | ( | ) |
|
inline |
|
inline |
void G4ITBox::TransferTo | ( | G4ITBox * | aStack | ) |
Definition at line 149 of file G4ITBox.cc.
References Extract(), fNbIT, fpFirstIT, G4IT::GetNext(), and Push().
|
private |
Definition at line 98 of file G4ITBox.hh.
Referenced by Empty(), Extract(), FindIT(), GetNTrack(), operator=(), Push(), TransferTo(), and ~G4ITBox().
|
private |
Definition at line 99 of file G4ITBox.hh.
Referenced by Extract(), GetFirstIT(), operator=(), Push(), TransferTo(), and ~G4ITBox().
|
private |
Definition at line 100 of file G4ITBox.hh.
Referenced by Extract(), FindIT(), GetLastIT(), operator=(), and Push().
|
private |
Definition at line 103 of file G4ITBox.hh.
Referenced by GetNextBox(), operator=(), SetNextBox(), and ~G4ITBox().
|
private |
Definition at line 102 of file G4ITBox.hh.
Referenced by GetPreviousBox(), operator=(), SetPreviousBox(), and ~G4ITBox().