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

#include <G4FastList.hh>

Public Types

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

Public Member Functions

 G4FastList_const_iterator ()=default
 
 G4FastList_const_iterator (const _Node *__x)
 
 G4FastList_const_iterator (const G4FastList_const_iterator &right)=default
 
_Selfoperator= (const G4FastList_const_iterator &right)=default
 
 G4FastList_const_iterator (const G4FastList_iterator< OBJECT > &right)
 
_Selfoperator= (const G4FastList_iterator< OBJECT > &right)
 
const OBJECT * operator* () const
 
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

const _NodefpNode = nullptr
 

Detailed Description

template<typename OBJECT>
struct G4FastList_const_iterator< OBJECT >

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

Definition at line 543 of file G4FastList.hh.

Member Typedef Documentation

◆ _Node

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

Definition at line 547 of file G4FastList.hh.

◆ _Self

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

Definition at line 546 of file G4FastList.hh.

Constructor & Destructor Documentation

◆ G4FastList_const_iterator() [1/4]

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

◆ G4FastList_const_iterator() [2/4]

template<typename OBJECT >
G4FastList_const_iterator< OBJECT >::G4FastList_const_iterator ( const _Node * __x)
inlineexplicit

Definition at line 551 of file G4FastList.hh.

551 :
552 fpNode(__x)
553 {
554 }

◆ G4FastList_const_iterator() [3/4]

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

◆ G4FastList_const_iterator() [4/4]

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

Definition at line 559 of file G4FastList.hh.

559 :
560 fpNode(right.GetNode())
561 {
562 }

Member Function Documentation

◆ operator!=()

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

Definition at line 617 of file G4FastList.hh.

618 {
619 return (fpNode != __x.fpNode);
620 }

◆ operator*()

template<typename OBJECT >
const OBJECT * G4FastList_const_iterator< OBJECT >::operator* ( ) const
inline

Definition at line 571 of file G4FastList.hh.

572 {
573 if(fpNode == nullptr) return nullptr;
574 return fpNode->GetObject();
575 }
OBJECT * GetObject()

◆ operator++() [1/2]

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

Definition at line 585 of file G4FastList.hh.

586 {
587 fpNode = fpNode->GetNext();
588 return *this;
589 }
G4FastListNode< OBJECT > * GetNext()

◆ operator++() [2/2]

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

Definition at line 591 of file G4FastList.hh.

592 {
593 _Self __tmp = *this;
594 fpNode = fpNode->GetNext();
595 return __tmp;
596 }
G4FastList_const_iterator< OBJECT > _Self

◆ operator--() [1/2]

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

Definition at line 599 of file G4FastList.hh.

600 {
602 return *this;
603 }
G4FastListNode< OBJECT > * GetPrevious()

◆ operator--() [2/2]

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

Definition at line 605 of file G4FastList.hh.

606 {
607 _Self __tmp = *this;
609 return __tmp;
610 }

◆ operator->()

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

Definition at line 578 of file G4FastList.hh.

579 {
580 if(fpNode == 0) return 0;
581 return fpNode->GetObject();
582 }

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 564 of file G4FastList.hh.

565 {
566 fpNode = right.GetNode();
567 return *this;
568 }

◆ operator==()

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

Definition at line 612 of file G4FastList.hh.

613 {
614 return (fpNode == __x.fpNode);
615 }

Member Data Documentation

◆ fpNode


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