BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::Incomplete< T, CompleteTest, Complete > Class Template Reference

#include <Incomplete.h>

Public Member Functions

 Incomplete ()
 
 Incomplete (const T &value)
 
bool isComplete () const
 
deriveComplete (const Complete &complete) const
 
IncompletecompleteSelf (const Complete &complete)
 
T & value ()
 
const T & value () const
 
 operator T & ()
 
 operator const T & () const
 
Incompleteassign (const T &value)
 
Incompleteassign (const Incomplete &other)
 
Incompleteoperator= (const Incomplete &other)
 
Incompleteoperator= (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
 

Detailed Description

template<typename T, typename CompleteTest, typename Complete>
class BeeeOn::Incomplete< T, CompleteTest, Complete >

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.

Constructor & Destructor Documentation

template<typename T, typename CompleteTest, typename Complete>
BeeeOn::Incomplete< T, CompleteTest, Complete >::Incomplete ( )
inline

Construct an implicit value of T, thus T is expected to have an empty constructor.

Member Function Documentation

template<typename T, typename CompleteTest, typename Complete>
bool BeeeOn::Incomplete< T, CompleteTest, Complete >::isComplete ( ) const
inline

Test whether the given value is complete. Utilize the template argument CompleteTest providing operator (const T &) for testing the completeness.


The documentation for this class was generated from the following file: