#include <ETL/value>
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) |
Classes | |
| struct | contentholder |
| class | holder |
Modified from ideas for the boost::any type. Added binary compatibility structure
Definition at line 65 of file _value.h.
| value::value | ( | ) | [inline] |
| value& value::operator= | ( | const ValueType & | rhs | ) | [inline] |
| const std::type_info& value::type | ( | ) | const [inline] |
Definition at line 124 of file _value.h.
References content, and value::contentholder::type().
Referenced by value_cast().
| ValueType* value_cast | ( | value * | v | ) | [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.
contentholder* value::content [private] |
1.5.2