#include <Value.hpp>
Public Member Functions | |
operator T () const | |
cast to the internal type More... | |
operator T & () | |
cast to the writable refernce of internal type More... | |
T & | operator() () |
Gets a reference to the internal data. More... | |
T | operator() () const |
Gets a copy of the data. More... | |
Value< T > & | operator= (const Value< T > &rhs)=default |
Copy assignment operator. More... | |
Value< T > & | operator= (const T rhs) |
Assignment operator for non-Value objects. More... | |
bool | set () const |
Queries if the data has been set. More... | |
bool & | set () |
Gets a reference to the data valid flag. More... | |
Private Attributes | |
std::pair< T, bool > | data |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
Copy assignment operator.
|
inline |
|
inline |
|
inline |
|
private |