Garfield++ v2r0
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 1260 of file AbsArr.h.

Constructor & Destructor Documentation

◆ IterDynLinArr()

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

Definition at line 1262 of file AbsArr.h.

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

Member Function Documentation

◆ current()

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

Definition at line 1270 of file AbsArr.h.

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

◆ get_ncur()

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

Definition at line 1284 of file AbsArr.h.

1284{ return ncur; }

◆ less()

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

Definition at line 1276 of file AbsArr.h.

1277 {
1278 if (ncur >= 1)
1279 return &((*dar)[--ncur]);
1280 else
1281 ncur = -1;
1282 return NULL;
1283 }

◆ more()

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

Definition at line 1263 of file AbsArr.h.

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

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