aimstil  5.0.5
til::Incrementor< T > Class Template Reference

A class which returns a value that is increased everytime it is returned. More...

#include <cathier/miscUtils.h>

Public Member Functions

 Incrementor (T i0)
 Initialize with value. More...
 
operator() ()
 Return current value. More...
 

Detailed Description

template<typename T>
class til::Incrementor< T >

A class which returns a value that is increased everytime it is returned.

Definition at line 463 of file miscUtils.h.

Constructor & Destructor Documentation

◆ Incrementor()

template<typename T >
til::Incrementor< T >::Incrementor ( i0)
inline

Initialize with value.

Definition at line 467 of file miscUtils.h.

Member Function Documentation

◆ operator()()

template<typename T >
T til::Incrementor< T >::operator() ( )
inline

Return current value.

Value is increased at each call.

Definition at line 471 of file miscUtils.h.


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