Geant4  10.02.p03
G4FastList_iterator< OBJECT > Struct Template Reference

#include <G4FastList.hh>

Collaboration diagram for G4FastList_iterator< OBJECT >:

Public Types

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

Public Member Functions

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

Public Attributes

_NodefpNode
 

Detailed Description

template<typename OBJECT>
struct G4FastList_iterator< OBJECT >

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

Definition at line 62 of file G4FastList.hh.

Member Typedef Documentation

◆ _Node

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

Definition at line 463 of file G4FastList.hh.

◆ _Self

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

Definition at line 462 of file G4FastList.hh.

Constructor & Destructor Documentation

◆ G4FastList_iterator() [1/3]

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

Definition at line 465 of file G4FastList.hh.

465  :
466  fpNode(0)
467  {
468  }

◆ G4FastList_iterator() [2/3]

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

Definition at line 470 of file G4FastList.hh.

470  :
471  fpNode(__x)
472  {
473  }

◆ G4FastList_iterator() [3/3]

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

Definition at line 475 of file G4FastList.hh.

475  :
476  fpNode(right.fpNode)
477  {
478  }

Member Function Documentation

◆ GetNode() [1/2]

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

Definition at line 480 of file G4FastList.hh.

481  {
482  return fpNode;
483  }
Here is the caller graph for this function:

◆ GetNode() [2/2]

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

Definition at line 485 of file G4FastList.hh.

486  {
487  return fpNode;
488  }
Here is the call graph for this function:

◆ operator!=()

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

Definition at line 535 of file G4FastList.hh.

536  {
537  return (fpNode != __x.fpNode);
538  }

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

504  {
505  fpNode = fpNode->GetNext();
506  return *this;
507  }
G4FastListNode< OBJECT > * GetNext()
Definition: G4FastList.hh:164

◆ operator++() [2/2]

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

Definition at line 509 of file G4FastList.hh.

510  {
511  _Self __tmp = *this;
512  fpNode = fpNode->GetNext();
513  return __tmp;
514  }
G4FastListNode< OBJECT > * GetNext()
Definition: G4FastList.hh:164
G4FastList_iterator< OBJECT > _Self
Definition: G4FastList.hh:462

◆ operator--() [1/2]

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

Definition at line 517 of file G4FastList.hh.

518  {
520  return *this;
521  }
G4FastListNode< OBJECT > * GetPrevious()
Definition: G4FastList.hh:172

◆ operator--() [2/2]

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

Definition at line 523 of file G4FastList.hh.

524  {
525  _Self __tmp = *this;
527  return __tmp;
528  }
G4FastListNode< OBJECT > * GetPrevious()
Definition: G4FastList.hh:172
G4FastList_iterator< OBJECT > _Self
Definition: G4FastList.hh:462

◆ 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>
bool G4FastList_iterator< OBJECT >::operator== ( const _Self __x) const
inline

Definition at line 530 of file G4FastList.hh.

531  {
532  return (fpNode == __x.fpNode);
533  }

Member Data Documentation

◆ fpNode

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

Definition at line 542 of file G4FastList.hh.


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