Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4FastList_const_iterator< OBJECT > Struct Template Reference

#include <G4FastList.hh>

Collaboration diagram for G4FastList_const_iterator< OBJECT >:

Public Types

typedef
G4FastList_const_iterator
< OBJECT > 
_Self
 
typedef G4FastListNode< OBJECT > _Node
 

Public Member Functions

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

const _NodefpNode
 

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

Member Typedef Documentation

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

Definition at line 555 of file G4FastList.hh.

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

Definition at line 554 of file G4FastList.hh.

Constructor & Destructor Documentation

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

Definition at line 557 of file G4FastList.hh.

557  :
558  fpNode(0)
559  {
560  }
template<typename OBJECT >
G4FastList_const_iterator< OBJECT >::G4FastList_const_iterator ( const _Node __x)
inlineexplicit

Definition at line 562 of file G4FastList.hh.

562  :
563  fpNode(__x)
564  {
565  }
template<typename OBJECT >
G4FastList_const_iterator< OBJECT >::G4FastList_const_iterator ( const G4FastList_const_iterator< OBJECT > &  right)
inline

Definition at line 567 of file G4FastList.hh.

567  :
568  fpNode(right.fpNode)
569  {
570  }
template<typename OBJECT >
G4FastList_const_iterator< OBJECT >::G4FastList_const_iterator ( const G4FastList_iterator< OBJECT > &  right)
inline

Definition at line 572 of file G4FastList.hh.

572  :
573  fpNode(right.GetNode())
574  {
575  }

Member Function Documentation

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

Definition at line 624 of file G4FastList.hh.

625  {
626  return (fpNode != __x.fpNode);
627  }
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  }
OBJECT * GetObject()
Definition: G4FastList.hh:154

Here is the call graph for this function:

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

Definition at line 592 of file G4FastList.hh.

593  {
594  fpNode = fpNode->GetNext();
595  return *this;
596  }
G4FastListNode< OBJECT > * GetNext()
Definition: G4FastList.hh:164

Here is the call graph for this function:

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

Definition at line 598 of file G4FastList.hh.

599  {
600  _Self __tmp = *this;
601  fpNode = fpNode->GetNext();
602  return __tmp;
603  }
G4FastList_const_iterator< OBJECT > _Self
Definition: G4FastList.hh:554
G4FastListNode< OBJECT > * GetNext()
Definition: G4FastList.hh:164

Here is the call graph for this function:

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

Definition at line 606 of file G4FastList.hh.

607  {
609  return *this;
610  }
G4FastListNode< OBJECT > * GetPrevious()
Definition: G4FastList.hh:172

Here is the call graph for this function:

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

Definition at line 612 of file G4FastList.hh.

613  {
614  _Self __tmp = *this;
616  return __tmp;
617  }
G4FastList_const_iterator< OBJECT > _Self
Definition: G4FastList.hh:554
G4FastListNode< OBJECT > * GetPrevious()
Definition: G4FastList.hh:172

Here is the call graph for this function:

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

Definition at line 585 of file G4FastList.hh.

586  {
587  if(fpNode == 0) return 0;
588  return fpNode->GetObject();
589  }
OBJECT * GetObject()
Definition: G4FastList.hh:154

Here is the call graph for this function:

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

Definition at line 619 of file G4FastList.hh.

620  {
621  return (fpNode == __x.fpNode);
622  }

Member Data Documentation

template<typename OBJECT >
const _Node* G4FastList_const_iterator< OBJECT >::fpNode

Definition at line 631 of file G4FastList.hh.


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