ArduinoDumbDisplay v0.9.9-r40
DumbDisplay Arduino Library -- https://github.com/trevorwslee/Arduino-DumbDisplay
 
Loading...
Searching...
No Matches
DDValueRecord< T > Class Template Reference

Helper class for keeping changed value, until recorded (i.e. record() is called) to make the value known. More...

#include <_dd_misc.h>

Public Member Functions

 DDValueRecord (T value)
 initial value and known value will be set to the same
 
 DDValueRecord (T value, T knownValue)
 can set initial known value to be different from value
 
 operator T ()
 
get ()
 
void operator= (T value)
 
void set (T value)
 
getRecorded ()
 
bool record ()
 

Detailed Description

template<class T>
class DDValueRecord< T >

Helper class for keeping changed value, until recorded (i.e. record() is called) to make the value known.

Member Function Documentation

◆ record()

template<class T >
bool DDValueRecord< T >::record ( )
inline

make value set previously known; i.e. set known value to be the same as value

Returns
whether known value as different from value