ETL
0.04.19
|
Abstraction of the concept of a generic value. More...
#include <ETL/value>
Classes | |
struct | contentholder |
class | holder |
Public Member Functions | |
value () | |
value (const value &v) | |
template<typename T > | |
value (const T &v) | |
value & | swap (value &rhs) |
template<typename ValueType > | |
value & | operator= (const ValueType &rhs) |
value & | operator= (const value &rhs) |
bool | empty () const |
const std::type_info & | type () const |
Private Attributes | |
contentholder * | content |
Friends | |
template<typename ValueType > | |
ValueType * | value_cast (value *v) |
Abstraction of the concept of a generic value.
Modified from ideas for the boost::any type. Added binary compatibility structure
|
inline |
Definition at line 78 of file _value.h.
Referenced by operator=().
|
inline |
|
inline |
Definition at line 125 of file _value.h.
References content, and value::contentholder::type().
Referenced by value_cast().
|
friend |
Returns a pointer to the desired value type if the value_type and the internal binary format agree (mediated by using the value_store_type class), otherwise it returns 0.
|
private |