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

Helper class for keeping changed value until acknowledged (i.e. acknowledge() is called) More...

#include <_dd_misc.h>

Public Member Functions

 DDPendingValue (T value)
 
 operator T ()
 
get ()
 
void operator= (T value)
 
void set (T value)
 
bool acknowledge ()
 

Detailed Description

template<class T>
class DDPendingValue< T >

Helper class for keeping changed value until acknowledged (i.e. acknowledge() is called)

Member Function Documentation

◆ acknowledge()

template<class T >
bool DDPendingValue< T >::acknowledge ( )
inline

acknowledge pending changed value

Returns
whether there is pending value; if so, acknowledge and make the value not pending