BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
#include <Incomplete.h>
Public Member Functions | |
Incomplete () | |
Incomplete (const T &value) | |
bool | isComplete () const |
T | deriveComplete (const Complete &complete) const |
Incomplete & | completeSelf (const Complete &complete) |
T & | value () |
const T & | value () const |
operator T & () | |
operator const T & () const | |
Incomplete & | assign (const T &value) |
Incomplete & | assign (const Incomplete &other) |
Incomplete & | operator= (const Incomplete &other) |
Incomplete & | operator= (const T &other) |
bool | operator== (const Incomplete &other) const |
bool | operator== (const T &other) const |
bool | operator!= (const Incomplete &other) const |
bool | operator!= (const T &other) const |
bool | operator< (const Incomplete &other) const |
bool | operator< (const T &other) const |
bool | operator> (const Incomplete &other) const |
Any value, that can be in state "incomplete" for some time and then completed by supplying some value, can be wrapped by this template to avoid polluting of its code by the solving the completeness.
|
inline |
Construct an implicit value of T, thus T is expected to have an empty constructor.
|
inline |
Test whether the given value is complete. Utilize the template argument CompleteTest providing operator (const T &) for testing the completeness.