Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Heed::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 Heed::IterDynLinArr< T >

Definition at line 1257 of file AbsArr.h.

Constructor & Destructor Documentation

◆ IterDynLinArr()

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

Definition at line 1259 of file AbsArr.h.

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

Member Function Documentation

◆ current()

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

Definition at line 1267 of file AbsArr.h.

1267 {
1268 if (ncur >= 0 || ncur < dar->get_qel())
1269 return &((*dar)[ncur]);
1270 else
1271 return NULL;
1272 }

◆ get_ncur()

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

Definition at line 1281 of file AbsArr.h.

1281{ return ncur; }

◆ less()

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

Definition at line 1273 of file AbsArr.h.

1274 {
1275 if (ncur >= 1)
1276 return &((*dar)[--ncur]);
1277 else
1278 ncur = -1;
1279 return NULL;
1280 }

◆ more()

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

Definition at line 1260 of file AbsArr.h.

1260 {
1261 if (ncur < dar->get_qel() - 1)
1262 return &((*dar)[++ncur]);
1263 else
1264 ncur = dar->get_qel();
1265 return NULL;
1266 }

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