Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FastList_iterator< OBJECT > Struct Template Reference

#include <G4FastList.hh>

Public Types

typedef G4FastList_iterator< OBJECT > _Self
 
typedef G4FastListNode< OBJECT > _Node
 

Public Member Functions

 G4FastList_iterator ()=default
 
 G4FastList_iterator (_Node *__x)
 
 G4FastList_iterator (const G4FastList_iterator &right)=default
 
_Selfoperator= (const G4FastList_iterator &right)=default
 
_NodeGetNode ()
 
const _NodeGetNode () const
 
OBJECT * operator* ()
 
const OBJECT * operator* () const
 
OBJECT * operator-> ()
 
const OBJECT * operator-> () const
 
_Selfoperator++ ()
 
_Self operator++ (int)
 
_Selfoperator-- ()
 
_Self operator-- (int)
 
G4bool operator== (const _Self &__x) const
 
G4bool operator!= (const _Self &__x) const
 

Public Attributes

_NodefpNode = nullptr
 

Detailed Description

template<typename OBJECT>
struct G4FastList_iterator< OBJECT >

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

Definition at line 457 of file G4FastList.hh.

Member Typedef Documentation

◆ _Node

template<typename OBJECT >
typedef G4FastListNode<OBJECT> G4FastList_iterator< OBJECT >::_Node

Definition at line 461 of file G4FastList.hh.

◆ _Self

template<typename OBJECT >
typedef G4FastList_iterator<OBJECT> G4FastList_iterator< OBJECT >::_Self

Definition at line 460 of file G4FastList.hh.

Constructor & Destructor Documentation

◆ G4FastList_iterator() [1/3]

template<typename OBJECT >
G4FastList_iterator< OBJECT >::G4FastList_iterator ( )
default

◆ G4FastList_iterator() [2/3]

template<typename OBJECT >
G4FastList_iterator< OBJECT >::G4FastList_iterator ( _Node __x)
inlineexplicit

Definition at line 465 of file G4FastList.hh.

465 :
466 fpNode(__x)
467 {
468 }

◆ G4FastList_iterator() [3/3]

template<typename OBJECT >
G4FastList_iterator< OBJECT >::G4FastList_iterator ( const G4FastList_iterator< OBJECT > &  right)
default

Member Function Documentation

◆ GetNode() [1/2]

template<typename OBJECT >
_Node * G4FastList_iterator< OBJECT >::GetNode ( )
inline

Definition at line 473 of file G4FastList.hh.

474 {
475 return fpNode;
476 }

Referenced by G4FastList_const_iterator< OBJECT >::operator=(), and G4ManyFastLists< OBJECT >::RemoveLists().

◆ GetNode() [2/2]

template<typename OBJECT >
const _Node * G4FastList_iterator< OBJECT >::GetNode ( ) const
inline

Definition at line 478 of file G4FastList.hh.

479 {
480 return fpNode;
481 }

◆ operator!=()

template<typename OBJECT >
G4bool G4FastList_iterator< OBJECT >::operator!= ( const _Self __x) const
inline

Definition at line 528 of file G4FastList.hh.

529 {
530 return (fpNode != __x.fpNode);
531 }

◆ operator*() [1/2]

template<typename OBJECT >
OBJECT * G4FastList_iterator< OBJECT >::operator* ( )

◆ operator*() [2/2]

template<typename OBJECT >
const OBJECT * G4FastList_iterator< OBJECT >::operator* ( ) const

◆ operator++() [1/2]

template<typename OBJECT >
_Self & G4FastList_iterator< OBJECT >::operator++ ( )
inline

Definition at line 496 of file G4FastList.hh.

497 {
498 fpNode = fpNode->GetNext();
499 return *this;
500 }
G4FastListNode< OBJECT > * GetNext()
Definition: G4FastList.hh:162

◆ operator++() [2/2]

template<typename OBJECT >
_Self G4FastList_iterator< OBJECT >::operator++ ( int  )
inline

Definition at line 502 of file G4FastList.hh.

503 {
504 _Self __tmp = *this;
505 fpNode = fpNode->GetNext();
506 return __tmp;
507 }
G4FastList_iterator< OBJECT > _Self
Definition: G4FastList.hh:460

◆ operator--() [1/2]

template<typename OBJECT >
_Self & G4FastList_iterator< OBJECT >::operator-- ( )
inline

Definition at line 510 of file G4FastList.hh.

511 {
513 return *this;
514 }
G4FastListNode< OBJECT > * GetPrevious()
Definition: G4FastList.hh:170

◆ operator--() [2/2]

template<typename OBJECT >
_Self G4FastList_iterator< OBJECT >::operator-- ( int  )
inline

Definition at line 516 of file G4FastList.hh.

517 {
518 _Self __tmp = *this;
520 return __tmp;
521 }

◆ operator->() [1/2]

template<typename OBJECT >
OBJECT * G4FastList_iterator< OBJECT >::operator-> ( )

◆ operator->() [2/2]

template<typename OBJECT >
const OBJECT * G4FastList_iterator< OBJECT >::operator-> ( ) const

◆ operator=()

template<typename OBJECT >
_Self & G4FastList_iterator< OBJECT >::operator= ( const G4FastList_iterator< OBJECT > &  right)
default

◆ operator==()

template<typename OBJECT >
G4bool G4FastList_iterator< OBJECT >::operator== ( const _Self __x) const
inline

Definition at line 523 of file G4FastList.hh.

524 {
525 return (fpNode == __x.fpNode);
526 }

Member Data Documentation

◆ fpNode


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