Geant4-11
Public Types | Public Member Functions | Data Fields
G4FastList_iterator< OBJECT > Struct Template Reference

#include <G4FastList.hh>

Public Types

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

Public Member Functions

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

Data Fields

_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

◆ 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 }

References G4FastList_iterator< OBJECT >::fpNode.

◆ 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 }

References G4FastList_iterator< OBJECT >::fpNode.

◆ 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

References G4FastList_iterator< OBJECT >::fpNode, and G4FastListNode< OBJECT >::GetNext().

◆ 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

References G4FastList_iterator< OBJECT >::fpNode, and G4FastListNode< OBJECT >::GetNext().

◆ 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

References G4FastList_iterator< OBJECT >::fpNode, and G4FastListNode< OBJECT >::GetPrevious().

◆ 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 }

References G4FastList_iterator< OBJECT >::fpNode, and G4FastListNode< OBJECT >::GetPrevious().

◆ 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 }

References G4FastList_iterator< OBJECT >::fpNode.

Field Documentation

◆ fpNode

template<typename OBJECT >
_Node* G4FastList_iterator< OBJECT >::fpNode = nullptr

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