Geant4_10
|
#include <G4TrackList.hh>
Public Types | |
typedef G4TrackList_iterator | iterator |
Public Member Functions | |
G4TrackList () | |
~G4TrackList () | |
G4Track * | back () |
G4int | size () const |
bool | empty () const |
iterator | insert (iterator, G4Track *) |
iterator | begin () |
iterator | end () |
bool | Holds (const G4Track *) const |
void | push_front (G4Track *__track) |
void | push_back (G4Track *__track) |
G4Track * | pop_back () |
void | remove (G4Track *) |
iterator | pop (G4Track *) |
iterator | pop (iterator __first, iterator __last) |
iterator | erase (G4Track *) |
iterator | erase (iterator __first, iterator __last) |
void | transferTo (G4TrackList *) |
Protected Member Functions | |
G4TrackListNode * | CreateNode (G4Track *) |
G4TrackListNode * | Flag (G4Track *) |
G4TrackListNode * | Unflag (G4Track *) |
void | CheckFlag (G4TrackListNode *) |
void | DeleteTrack (G4Track *) |
void | Hook (G4TrackListNode *, G4TrackListNode *) |
void | Unhook (G4TrackListNode *) |
G4TrackListNode * | EraseTrackListNode (G4Track *) |
G4TrackList is used by G4ITStepManager to save G4IT tracks only. Its advantage lies to a fast search of a track in this list.
Definition at line 106 of file G4TrackList.hh.
Definition at line 120 of file G4TrackList.hh.
G4TrackList::G4TrackList | ( | ) |
G4TrackList::~G4TrackList | ( | ) |
|
inline |
|
inline |
|
protected |
Definition at line 269 of file G4TrackList.cc.
|
protected |
Complexity = constant
Definition at line 170 of file G4TrackList.cc.
Definition at line 335 of file G4TrackList.cc.
|
inline |
Definition at line 267 of file G4TrackList.hh.
|
inline |
G4TrackList::iterator G4TrackList::erase | ( | G4Track * | __track | ) |
Definition at line 346 of file G4TrackList.cc.
G4TrackList::iterator G4TrackList::erase | ( | iterator | __first, |
iterator | __last | ||
) |
Complexity = constant By storing the node inside the object, we avoid searching through all the container.
Definition at line 377 of file G4TrackList.cc.
|
protected |
Definition at line 325 of file G4TrackList.cc.
|
protected |
Definition at line 142 of file G4TrackList.cc.
bool G4TrackList::Holds | ( | const G4Track * | track | ) | const |
return an iterator that contains an empty node use for boundary checking only
Definition at line 137 of file G4TrackList.cc.
|
protected |
Definition at line 176 of file G4TrackList.cc.
G4TrackList::iterator G4TrackList::insert | ( | G4TrackList::iterator | __position, |
G4Track * | __track | ||
) |
Definition at line 258 of file G4TrackList.cc.
G4TrackList::iterator G4TrackList::pop | ( | G4Track * | __track | ) |
Definition at line 317 of file G4TrackList.cc.
G4TrackList::iterator G4TrackList::pop | ( | iterator | __first, |
iterator | __last | ||
) |
G4Track * G4TrackList::pop_back | ( | ) |
|
inline |
Definition at line 131 of file G4TrackList.hh.
void G4TrackList::transferTo | ( | G4TrackList * | __destination | ) |
Complexity = linear in size between __first and __last
Definition at line 389 of file G4TrackList.cc.
|
protected |
Definition at line 288 of file G4TrackList.cc.
|
protected |
Definition at line 225 of file G4TrackList.cc.