Generic value implementation for custom types. More...
Inherits Glib::ValueBase_Boxed.
Public Types | |
typedef T | CppType |
typedef T* | CType |
Public Member Functions | |
void | set (const CppType& data) |
CppType | get () const |
Static Public Member Functions | |
static GType | value_type () |
Generic value implementation for custom types.
Any type to be used with this template must implement:
Compiler-generated implementations are OK, provided they do the right thing for the type. In other words, any type that works with std::vector
will work with Glib::Value<>.
typedef T Glib::Value< T >::CppType |
typedef T* Glib::Value< T >::CType |
CppType Glib::Value< T >::get | ( | ) | const [inline] |
void Glib::Value< T >::set | ( | const CppType& | data | ) | [inline] |
static GType Glib::Value< T >::value_type | ( | ) | [static] |
Reimplemented from Glib::ValueBase_Boxed.