Template Class Flushable

Class Documentation

template<typename T>
class Flushable

Utility that caches changes to an object and applies them on command.

Public Functions

inline explicit Flushable(T &obj)

Create a new flushable.

Parameters:

obj – The original object

inline T *operator->()

Access the object copy where changes can be made.

inline void operator=(T newDat)

Overwrite the object copy with new data.

inline void Flush()

Write the changes back to the original object.