Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Glib::Value< T > Class Template Reference
[Generic Values]

#include <value_custom.h>

Inheritance diagram for Glib::Value< T >:

List of all members.


Detailed Description

template<class T>
class Glib::Value< T >

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<>.

Note:
None of the operations listed above are allowed to throw. If you cannot ensure that no exceptions will be thrown, consider using either a normal pointer or a smart pointer to hold your objects indirectly.

Definition at line 109 of file value_custom.h.


Public Types

typedef T CppType
typedef T * CType

Public Member Functions

GParamSpec * create_param_spec (const Glib::ustring &name) const
CppType get () const
const GValue * gobj () const
GValue * gobj ()
void init (GType type)
void reset ()
void set (const CppType &data)

Static Public Member Functions

static GType value_type () G_GNUC_CONST

Protected Member Functions

void * get_boxed () const
void set_boxed (const void *data)

Protected Attributes

GValue gobject_

Static Private Member Functions

static void value_copy_func (const GValue *src_value, GValue *dest_value)
static void value_free_func (GValue *value)
static void value_init_func (GValue *value)

Static Private Attributes

static GType custom_type_ = 0

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

Generated by  Doxygen 1.6.0   Back to index