Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TrackList_iterator Struct Reference

#include <G4TrackList.hh>

Public Types

typedef G4TrackList_iterator _Self
 
typedef G4TrackListNode _Node
 

Public Member Functions

 G4TrackList_iterator ()
 
 G4TrackList_iterator (_Node *__x)
 
_NodeGetNode ()
 
G4Trackoperator* ()
 
const G4Trackoperator* () const
 
G4Trackoperator-> ()
 
const G4Trackoperator-> () const
 
_Selfoperator++ ()
 
_Self operator++ (int)
 
_Selfoperator-- ()
 
_Self operator-- (int)
 
bool operator== (const _Self &__x) const
 
bool operator!= (const _Self &__x) const
 

Friends

class G4TrackList
 

Detailed Description

G4TrackList_iterator enables to go through the tracks contained by a list.

Definition at line 194 of file G4TrackList.hh.

Member Typedef Documentation

◆ _Node

Definition at line 198 of file G4TrackList.hh.

◆ _Self

Constructor & Destructor Documentation

◆ G4TrackList_iterator() [1/2]

G4TrackList_iterator::G4TrackList_iterator ( )
inline

Definition at line 200 of file G4TrackList.hh.

201 : fpNode() { }

◆ G4TrackList_iterator() [2/2]

G4TrackList_iterator::G4TrackList_iterator ( _Node __x)
inlineexplicit

Definition at line 204 of file G4TrackList.hh.

205 : fpNode(__x) { }

Member Function Documentation

◆ GetNode()

_Node * G4TrackList_iterator::GetNode ( )
inline

Definition at line 207 of file G4TrackList.hh.

208 { return fpNode; }

◆ operator!=()

bool G4TrackList_iterator::operator!= ( const _Self __x) const
inline

Definition at line 257 of file G4TrackList.hh.

258 {
259 return (fpNode != __x.fpNode);
260 }

◆ operator*() [1/2]

G4Track * G4TrackList_iterator::operator* ( )

Definition at line 45 of file G4TrackList.cc.

46{ return fpNode->GetTrack(); }
G4Track * GetTrack()
Definition: G4TrackList.hh:77

◆ operator*() [2/2]

const G4Track * G4TrackList_iterator::operator* ( ) const

Definition at line 53 of file G4TrackList.cc.

54{ return fpNode->GetTrack(); }

◆ operator++() [1/2]

_Self & G4TrackList_iterator::operator++ ( )
inline

Definition at line 223 of file G4TrackList.hh.

224 {
225 fpNode = fpNode->GetNext();
226 return *this;
227 }
G4TrackListNode * GetNext()
Definition: G4TrackList.hh:78

◆ operator++() [2/2]

_Self G4TrackList_iterator::operator++ ( int  )
inline

Definition at line 230 of file G4TrackList.hh.

231 {
232 _Self __tmp = *this;
233 fpNode = fpNode->GetNext();
234 return __tmp;
235 }
G4TrackList_iterator _Self
Definition: G4TrackList.hh:197

◆ operator--() [1/2]

_Self & G4TrackList_iterator::operator-- ( )
inline

Definition at line 238 of file G4TrackList.hh.

239 {
240 fpNode = fpNode->GetPrevious();
241 return *this;
242 }
G4TrackListNode * GetPrevious()
Definition: G4TrackList.hh:79

◆ operator--() [2/2]

_Self G4TrackList_iterator::operator-- ( int  )
inline

Definition at line 245 of file G4TrackList.hh.

246 {
247 _Self __tmp = *this;
248 fpNode = fpNode->GetPrevious();
249 return __tmp;
250 }

◆ operator->() [1/2]

G4Track * G4TrackList_iterator::operator-> ( )

Definition at line 49 of file G4TrackList.cc.

50{ return fpNode->GetTrack(); }

◆ operator->() [2/2]

const G4Track * G4TrackList_iterator::operator-> ( ) const

Definition at line 57 of file G4TrackList.cc.

58{ return fpNode->GetTrack(); }

◆ operator==()

bool G4TrackList_iterator::operator== ( const _Self __x) const
inline

Definition at line 253 of file G4TrackList.hh.

254 { return (fpNode == __x.fpNode); }

Friends And Related Function Documentation

◆ G4TrackList

friend class G4TrackList
friend

Definition at line 196 of file G4TrackList.hh.


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