Geant4 11.2.2
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

using _Self = G4FastList_iterator<OBJECT>
 
using _Node = G4FastListNode<OBJECT>
 

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 456 of file G4FastList.hh.

Member Typedef Documentation

◆ _Node

template<typename OBJECT >
using G4FastList_iterator< OBJECT >::_Node = G4FastListNode<OBJECT>

Definition at line 460 of file G4FastList.hh.

◆ _Self

template<typename OBJECT >
using G4FastList_iterator< OBJECT >::_Self = G4FastList_iterator<OBJECT>

Definition at line 459 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 464 of file G4FastList.hh.

464 :
465 fpNode(__x)
466 {
467 }

◆ 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 472 of file G4FastList.hh.

473 {
474 return fpNode;
475 }

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 477 of file G4FastList.hh.

478 {
479 return fpNode;
480 }

◆ operator!=()

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

Definition at line 527 of file G4FastList.hh.

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

◆ 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 495 of file G4FastList.hh.

496 {
497 fpNode = fpNode->GetNext();
498 return *this;
499 }
G4FastListNode< OBJECT > * GetNext()

◆ operator++() [2/2]

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

Definition at line 501 of file G4FastList.hh.

502 {
503 _Self __tmp = *this;
504 fpNode = fpNode->GetNext();
505 return __tmp;
506 }
G4FastList_iterator< OBJECT > _Self

◆ operator--() [1/2]

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

Definition at line 509 of file G4FastList.hh.

510 {
512 return *this;
513 }
G4FastListNode< OBJECT > * GetPrevious()

◆ operator--() [2/2]

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

Definition at line 515 of file G4FastList.hh.

516 {
517 _Self __tmp = *this;
519 return __tmp;
520 }

◆ 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 522 of file G4FastList.hh.

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

Member Data Documentation

◆ fpNode


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