Glib::Variant< bool > Class Template Reference
[Variant Datatype]

Specialization of Glib::Variant containing a bool type. More...

#include <glibmm/variant_basictypes.h>

Inheritance diagram for Glib::Variant< bool >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef gboolean CType

Public Member Functions

 Variant ()
 Default constructor.
 Variant (GVariant* castitem)
 GVariant constructor.
bool get () const
 Gets the value of the Glib::Variant<bool>.

Static Public Member Functions

static const GVariantType* variant_type ()
 Gets the GVariantType.
static Variant< bool > create (bool data)
 Creates a new Glib::Variant<bool>.

Detailed Description

template <>
class Glib::Variant< bool >

Specialization of Glib::Variant containing a bool type.

Since glibmm 2.26:

Member Typedef Documentation

typedef gboolean Glib::Variant< bool >::CType

Constructor & Destructor Documentation

Glib::Variant< bool >::Variant (  )  [inline]

Default constructor.

Glib::Variant< bool >::Variant ( GVariant< bool > *  castitem  )  [inline, explicit]

GVariant constructor.

Parameters:
castitem The GVariant to wrap.

Member Function Documentation

static Variant<bool> Glib::Variant< bool >::create ( bool  data  )  [static]

Creates a new Glib::Variant<bool>.

Parameters:
data The value of the new Glib::Variant<bool>.
Returns:
The new Glib::Variant<bool>.
bool Glib::Variant< bool >::get (  )  const

Gets the value of the Glib::Variant<bool>.

Returns:
The bool value of the Glib::Variant<bool>.
static const GVariantType* Glib::Variant< bool >::variant_type (  )  [static]

Gets the GVariantType.

Returns:
The GVariantType.
Generated on Sun Sep 19 21:30:41 2010 for glibmm by  doxygen 1.6.3