// This is a generated file, do not edit.  Generated from variant_basictypes.cc.m4

#include <glibmm/variant.h>

namespace Glib
{


/**** Glib::Variant<bool> ****************************************************/

// static
const GVariantType* Variant<bool>::variant_type()
{
  return G_VARIANT_TYPE_BOOLEAN;
}

Variant<bool> Variant<bool>::create(bool data)
{
  Variant<bool> result = Variant<bool>(g_variant_new_boolean(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

bool Variant<bool>::get() const
{
  return g_variant_get_boolean(gobject_);
}


/**** Glib::Variant<unsigned char> *******************************************/

// static
const GVariantType* Variant<unsigned char>::variant_type()
{
  return G_VARIANT_TYPE_BYTE;
}

Variant<unsigned char> Variant<unsigned char>::create(unsigned char data)
{
  Variant<unsigned char> result = Variant<unsigned char>(g_variant_new_byte(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

unsigned char Variant<unsigned char>::get() const
{
  return g_variant_get_byte(gobject_);
}


/**** Glib::Variant<gint16> **************************************************/

// static
const GVariantType* Variant<gint16>::variant_type()
{
  return G_VARIANT_TYPE_INT16;
}

Variant<gint16> Variant<gint16>::create(gint16 data)
{
  Variant<gint16> result = Variant<gint16>(g_variant_new_int16(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

gint16 Variant<gint16>::get() const
{
  return g_variant_get_int16(gobject_);
}


/**** Glib::Variant<guint16> *************************************************/

// static
const GVariantType* Variant<guint16>::variant_type()
{
  return G_VARIANT_TYPE_UINT16;
}

Variant<guint16> Variant<guint16>::create(guint16 data)
{
  Variant<guint16> result = Variant<guint16>(g_variant_new_uint16(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

guint16 Variant<guint16>::get() const
{
  return g_variant_get_uint16(gobject_);
}


/**** Glib::Variant<gint32> **************************************************/

// static
const GVariantType* Variant<gint32>::variant_type()
{
  return G_VARIANT_TYPE_INT32;
}

Variant<gint32> Variant<gint32>::create(gint32 data)
{
  Variant<gint32> result = Variant<gint32>(g_variant_new_int32(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

gint32 Variant<gint32>::get() const
{
  return g_variant_get_int32(gobject_);
}


/**** Glib::Variant<guint32> *************************************************/

// static
const GVariantType* Variant<guint32>::variant_type()
{
  return G_VARIANT_TYPE_UINT32;
}

Variant<guint32> Variant<guint32>::create(guint32 data)
{
  Variant<guint32> result = Variant<guint32>(g_variant_new_uint32(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

guint32 Variant<guint32>::get() const
{
  return g_variant_get_uint32(gobject_);
}


/**** Glib::Variant<gint64> **************************************************/

// static
const GVariantType* Variant<gint64>::variant_type()
{
  return G_VARIANT_TYPE_INT64;
}

Variant<gint64> Variant<gint64>::create(gint64 data)
{
  Variant<gint64> result = Variant<gint64>(g_variant_new_int64(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

gint64 Variant<gint64>::get() const
{
  return g_variant_get_int64(gobject_);
}


/**** Glib::Variant<guint64> *************************************************/

// static
const GVariantType* Variant<guint64>::variant_type()
{
  return G_VARIANT_TYPE_UINT64;
}

Variant<guint64> Variant<guint64>::create(guint64 data)
{
  Variant<guint64> result = Variant<guint64>(g_variant_new_uint64(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

guint64 Variant<guint64>::get() const
{
  return g_variant_get_uint64(gobject_);
}


/**** Glib::Variant<double> **************************************************/

// static
const GVariantType* Variant<double>::variant_type()
{
  return G_VARIANT_TYPE_DOUBLE;
}

Variant<double> Variant<double>::create(double data)
{
  Variant<double> result = Variant<double>(g_variant_new_double(data));

  // Remove the floating reference (since it is newly created).
  g_variant_ref_sink(result.gobj());

  return result;
}

double Variant<double>::get() const
{
  return g_variant_get_double(gobject_);
}


} // namespace Glib
