AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
Bouncer< T > Class Template Reference

A handy class that makes it easy to "bounce" an unsigned integer value between a minimum and maximum value using sequential calls to its Next method. More...

#include <ntv2democommon.h>

Public Member Functions

 Bouncer (const T inUpperLimit, const T inLowerLimit=T(0), const T inStartValue=T(0), const bool inStartAscend=(!(0)))
 
Next (void)
 
void SetIncrement (const T inValue)
 
Value (void) const
 

Detailed Description

template<typename T>
class Bouncer< T >

A handy class that makes it easy to "bounce" an unsigned integer value between a minimum and maximum value using sequential calls to its Next method.

Definition at line 167 of file ntv2democommon.h.

Constructor & Destructor Documentation

◆ Bouncer()

template<typename T >
Bouncer< T >::Bouncer ( const T  inUpperLimit,
const T  inLowerLimit = T(0),
const T  inStartValue = T(0),
const bool  inStartAscend = (! (0) ) 
)
inline

Definition at line 170 of file ntv2democommon.h.

Member Function Documentation

◆ Next()

template<typename T >
T Bouncer< T >::Next ( void  )
inline

Definition at line 193 of file ntv2democommon.h.

◆ SetIncrement()

template<typename T >
void Bouncer< T >::SetIncrement ( const T  inValue)
inline

Definition at line 212 of file ntv2democommon.h.

◆ Value()

template<typename T >
T Bouncer< T >::Value ( void  ) const
inline

Definition at line 213 of file ntv2democommon.h.


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