Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
IterDynLinArr< T > Class Template Reference

#include <AbsArr.h>

Public Member Functions

 IterDynLinArr (DynLinArr< T > *fdar)
 
T * more (void)
 
T * current (void)
 
T * less (void)
 
long get_ncur (void)
 

Detailed Description

template<class T>
class IterDynLinArr< T >

Definition at line 1582 of file AbsArr.h.

Constructor & Destructor Documentation

◆ IterDynLinArr()

template<class T >
IterDynLinArr< T >::IterDynLinArr ( DynLinArr< T > *  fdar)
inline

Definition at line 1584 of file AbsArr.h.

1584: dar(fdar), ncur(-1) { ; }

Member Function Documentation

◆ current()

template<class T >
T * IterDynLinArr< T >::current ( void  )
inline

Definition at line 1592 of file AbsArr.h.

1592 {
1593 if (ncur >= 0 || ncur < dar->get_qel())
1594 return &((*dar)[ncur]);
1595 else
1596 return NULL;
1597 }

◆ get_ncur()

template<class T >
long IterDynLinArr< T >::get_ncur ( void  )
inline

Definition at line 1606 of file AbsArr.h.

1606{ return ncur; }

◆ less()

template<class T >
T * IterDynLinArr< T >::less ( void  )
inline

Definition at line 1598 of file AbsArr.h.

1599 {
1600 if (ncur >= 1)
1601 return &((*dar)[--ncur]);
1602 else
1603 ncur = -1;
1604 return NULL;
1605 }

◆ more()

template<class T >
T * IterDynLinArr< T >::more ( void  )
inline

Definition at line 1585 of file AbsArr.h.

1585 {
1586 if (ncur < dar->get_qel() - 1)
1587 return &((*dar)[++ncur]);
1588 else
1589 ncur = dar->get_qel();
1590 return NULL;
1591 }

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