#include <uhd/utils/dirty_tracked.hpp>
Public Member Functions | |
dirty_tracked () | |
dirty_tracked (const data_t &value) | |
dirty_tracked (const dirty_tracked &source) | |
const data_t & | get () const |
bool | is_dirty () const |
void | mark_clean () |
void | force_dirty () |
dirty_tracked & | operator= (const data_t &value) |
dirty_tracked & | operator= (const dirty_tracked &source) |
operator const data_t & () const | |
A class that wraps a data value with a dirty flag When the client uses the assignment operator on this object, the object automatically dirties itself if the assigned type is not equal the underlying data. Data can be cleaned using the mark_clean entry-point.
Requirements for data_t
|
inline |
Default ctor: Initialize to default value and dirty
|
inline |
Initialize to specified value and dirty
|
inline |
Copy ctor: Assign source to this type
|
inline |
Mark the underlying data as dirty
|
inline |
Get underlying data
|
inline |
Has the underlying data changed since the last time it was cleaned?
|
inline |
Mark the underlying data as clean
|
inline |
Explicit conversion from this type to data_t
|
inline |
Assignment with data. Store the specified value and mark it as dirty if it is not equal to the underlying data.
|
inline |
Assignment with dirty tracked type. Store the specified value from dirty type and mark it as dirty if it is not equal to the underlying data. This exists to optimize out an implicit cast from dirty_tracked type to data type.