Garfield++ 5.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 1253 of file AbsArr.h.

Constructor & Destructor Documentation

◆ IterDynLinArr()

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

Definition at line 1255 of file AbsArr.h.

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

Member Function Documentation

◆ current()

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

Definition at line 1263 of file AbsArr.h.

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

◆ get_ncur()

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

Definition at line 1277 of file AbsArr.h.

1277{ return ncur; }

◆ less()

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

Definition at line 1269 of file AbsArr.h.

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

◆ more()

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

Definition at line 1256 of file AbsArr.h.

1256 {
1257 if (ncur < dar->get_qel() - 1)
1258 return &((*dar)[++ncur]);
1259 else
1260 ncur = dar->get_qel();
1261 return NULL;
1262 }

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