Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 04b5d9decd5baea570b59d0bd03cbaab > files > 609

glibmm24-doc-2.28.0-1.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>glibmm: Glib::VariantType Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespaceGlib.html">Glib</a> </li>
      <li><a class="el" href="classGlib_1_1VariantType.html">VariantType</a> </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#related">Related Functions</a> </div>
  <div class="headertitle">
<h1>Glib::VariantType Class Reference<br/>
<small>
[<a class="el" href="group__Variant.html">Variant Data Types</a>]</small>
</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="Glib::VariantType" -->
<p><a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> - The <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> type system. <a href="#_details">More...</a></p>

<p><code>#include &lt;glibmm/varianttype.h&gt;</code></p>

<p><a href="classGlib_1_1VariantType-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a7d05abfd748f0e5917996682eb8d7b3f">VariantType</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#aa9f6a6269718a433540a56b874dd9e93">VariantType</a> (GVariantType* castitem, bool make_a_copy=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#addfa490c6545d0b0a3af409a1890c5b3">VariantType</a> (const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; src)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a0d63c3af32d9c2eeeeea3009207457fe">operator=</a> (const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; src)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a385bd734d00495a4a3fe8a434e216255">~VariantType</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GVariantType*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a911a3cfa7c4fc5e56cca07f0cb765487">gobj</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GVariantType*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a6155f01582363d9d4af944d1445cff17">gobj</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GVariantType*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a9a158b1e3cafd0b351a403937550b341">gobj_copy</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. <a href="#a9a158b1e3cafd0b351a403937550b341"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#af02bb61ceab7e1b8f89c2cbcd39e01de">VariantType</a> (const GVariantType* castitem)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy the C item into a new <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> instance. <a href="#af02bb61ceab7e1b8f89c2cbcd39e01de"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#ae10ea525df2b241b59036de7684ae565">VariantType</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; type_string)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> corresponding to the type string given by <em>type_string</em>. <a href="#ae10ea525df2b241b59036de7684ae565"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a32d8cf9c965f307b1dbabf5d8845e22a">operator=</a> (const GVariantType* castitem)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#ac5c9827283fad7449ba95cd144299924">get_string</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the type string corresponding to the given <em>type</em>. <a href="#ac5c9827283fad7449ba95cd144299924"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a6a87621d2363faf21a6567ef5d902667">is_definite</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is definite (ie: not indefinite). <a href="#a6a87621d2363faf21a6567ef5d902667"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a904f1b6785984c07a52f4a29aa7e6acc">is_container</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is a container type. <a href="#a904f1b6785984c07a52f4a29aa7e6acc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a4f7b40578243457b772e05859ca58aff">is_basic</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is a basic type. <a href="#a4f7b40578243457b772e05859ca58aff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a4eb67b2056e91fb6139ce8c801bb3176">is_maybe</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is a maybe type. <a href="#a4eb67b2056e91fb6139ce8c801bb3176"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a5a05d7d692655b9ae4385c24065da273">is_array</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is an array type. <a href="#a5a05d7d692655b9ae4385c24065da273"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#af6f59e8ae01cac71c836c85cdd30dcb5">is_tuple</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is a tuple type. <a href="#af6f59e8ae01cac71c836c85cdd30dcb5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a843ac24bb78fb1a2fb7d21e62df0177d">is_dict_entry</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is a dictionary entry type. <a href="#a843ac24bb78fb1a2fb7d21e62df0177d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a2c088b0421b0f8613fef8f9fce174c50">is_variant</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the given <em>type</em> is the variant type. <a href="#a2c088b0421b0f8613fef8f9fce174c50"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#abfb9813509f7cd232efe4fe2c811bac0">hash</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hashes <em>type</em>. <a href="#abfb9813509f7cd232efe4fe2c811bac0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a588b922bcd7f44b3aefb4883a883e1df">equal</a> (const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares <em>type1</em> and <em>type2</em> for equality. <a href="#a588b922bcd7f44b3aefb4883a883e1df"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a294a688ba6d3ed2523f25365db4253a3">is_subtype_of</a> (const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; supertype) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if <em>type</em> is a subtype of <em>supertype</em>. <a href="#a294a688ba6d3ed2523f25365db4253a3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#ae3b6667496af1b92a4ef6eeedea68062">element</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the element type of an array or maybe type. <a href="#ae3b6667496af1b92a4ef6eeedea68062"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a2d67b5cbfce5a23a9bab43a45a6b3501">first</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the first item type of a tuple or dictionary entry type. <a href="#a2d67b5cbfce5a23a9bab43a45a6b3501"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a516269f291efca8e57f2dea6ac0875a1">next</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the next item type of a tuple or dictionary entry type. <a href="#a516269f291efca8e57f2dea6ac0875a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">gsize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a38b33a104b64fdc40cd01adcfea8a5a5">n_items</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the number of items contained in a tuple or dictionary entry type. <a href="#a38b33a104b64fdc40cd01adcfea8a5a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#af96fc9046121be33ec629763466fd658">key</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the key type of a dictionary entry type. <a href="#af96fc9046121be33ec629763466fd658"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a04d066ac063480d86da8e2f6af80d11d">value</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the value type of a dictionary entry type. <a href="#a04d066ac063480d86da8e2f6af80d11d"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a75cdb696a91c6fbc3cc9042bb20e66d0">create_array</a> (const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; element)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs the type corresponding to an array of elements of the type <em>type</em>. <a href="#a75cdb696a91c6fbc3cc9042bb20e66d0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#aeac7660b174a80c9ae1ade6da36fac15">create_maybe</a> (const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; element)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs the type corresponding to a maybe instance containing type <em>type</em> or Nothing. <a href="#aeac7660b174a80c9ae1ade6da36fac15"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#ae491f86f5ebda97b1a6aae8cb96c6251">create_dict_entry</a> (const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; key, const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs the type corresponding to a dictionary entry with a key of type <em>key</em> and a value of type <em>value</em>. <a href="#ae491f86f5ebda97b1a6aae8cb96c6251"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GVariantType*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a9ca6d5b63454a54702ad5e890ec95d75">gobject_</a></td></tr>
<tr><td colspan="2"><h2><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1VariantType.html">Glib::VariantType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1VariantType.html#a7ab0237355a6c562fa30b3afc4a10332">wrap</a> (GVariantType* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a7ab0237355a6c562fa30b3afc4a10332"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> - The <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> type system. </p>
<p>The <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> type system is based, in large part, on the D-Bus type system, with two major changes and some minor lifting of restrictions. <a href="http://dbus.freedesktop.org/doc/dbus-specification.html">The D-Bus specification</a>, therefore, provides a significant amount of information that is useful when working with <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a>.</p>
<p>The first major change with respect to the D-Bus type system is the introduction of maybe (or "nullable") types. Any type in <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> can be converted to a maybe type, in which case, "nothing" (or "null") becomes a valid value. Maybe types have been added by introducing the character "m" to type strings.</p>
<p>The second major change is that the <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> type system supports the concept of "indefinite types" -- types that are less specific than the normal types found in D-Bus. For example, it is possible to speak of "an
 array of any type" in <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a>, where the D-Bus type system would require you to speak of "an array of integers" or "an array of strings". Indefinite types have been added by introducing the characters "*", "?" and "r" to type strings.</p>
<p>Finally, all arbitrary restrictions relating to the complexity of types are lifted along with the restriction that dictionary entries may only appear nested inside of arrays.</p>
<p>Just as in D-Bus, <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> types are described with strings ("type
 strings"). Subject to the differences mentioned above, these strings are of the same form as those found in D-Bus. Note, however: D-Bus always works in terms of messages and therefore individual type strings appear nowhere in its interface. Instead, "signatures" are a concatenation of the strings of the type of each argument in a message. <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> deals with single values directly so <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> type strings always describe the type of exactly one value. This means that a D-Bus signature string is generally not a valid <a class="el" href="classGlib_1_1VariantBase.html" title="This is the base class for all Variant types.">VariantBase</a> type string -- except in the case that it is the signature of a message containing exactly one argument.</p>
<p>An indefinite type is similar in spirit to what may be called an abstract type in other type systems. No value can exist that has an indefinite type as its type, but values can exist that have types that are subtypes of indefinite types. That is to say, <a class="el" href="classGlib_1_1VariantBase.html#a3c80e6f06c6e521313becc282abc8c3c" title="Determines the type of value.">VariantBase::get_type()</a> will never return an indefinite type, but calling <a class="el" href="classGlib_1_1VariantBase.html#add8f349a4b28bcaa2f371ff0a1e2e156" title="Checks if a value has a type matching the provided type.">VariantBase::is_of_type()</a> with an indefinite type may return <code>true</code>. For example, you cannot have a value that represents "an array of no particular type", but you can have an "array of integers" which certainly matches the type of "an array of no
 particular type", since "array of integers" is a subtype of "array of no
 particular type".</p>
<p>This is similar to how instances of abstract classes may not directly exist in other type systems, but instances of their non-abstract subtypes may. For example, in gtkmm, no object that has the type of Gtk::Bin can exist (since Gtk::Bin is an abstract class), but a Gtk::Window can certainly be instantiated, and you would say that the Gtk::Window is a Gtk::Bin (since Gtk::Window is a subclass of Gtk::Bin).</p>
<p>See the underlying GVariantType documentation for <a href="http://library.gnome.org/devel/glib/unstable/glib-GVariantType.html#gvariant-typestrings">detailed description of the VariantBase type strings</a>.</p>
<dl class="since_2_28"><dt><b><a class="el" href="since_2_28.html#_since_2_28000052">Since glibmm 2.28:</a></b></dt><dd></dd></dl>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a7d05abfd748f0e5917996682eb8d7b3f"></a><!-- doxytag: member="Glib::VariantType::VariantType" ref="a7d05abfd748f0e5917996682eb8d7b3f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::VariantType::VariantType </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa9f6a6269718a433540a56b874dd9e93"></a><!-- doxytag: member="Glib::VariantType::VariantType" ref="aa9f6a6269718a433540a56b874dd9e93" args="(GVariantType *castitem, bool make_a_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::VariantType::VariantType </td>
          <td>(</td>
          <td class="paramtype">GVariantType *&#160;</td>
          <td class="paramname"> <em>castitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>make_a_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="addfa490c6545d0b0a3af409a1890c5b3"></a><!-- doxytag: member="Glib::VariantType::VariantType" ref="addfa490c6545d0b0a3af409a1890c5b3" args="(const VariantType &amp;src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::VariantType::VariantType </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>src</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a385bd734d00495a4a3fe8a434e216255"></a><!-- doxytag: member="Glib::VariantType::~VariantType" ref="a385bd734d00495a4a3fe8a434e216255" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::VariantType::~VariantType </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af02bb61ceab7e1b8f89c2cbcd39e01de"></a><!-- doxytag: member="Glib::VariantType::VariantType" ref="af02bb61ceab7e1b8f89c2cbcd39e01de" args="(const GVariantType *castitem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::VariantType::VariantType </td>
          <td>(</td>
          <td class="paramtype">const GVariantType *&#160;</td>
          <td class="paramname"> <em>castitem</em>&#160;)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy the C item into a new <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> instance. </p>

</div>
</div>
<a class="anchor" id="ae10ea525df2b241b59036de7684ae565"></a><!-- doxytag: member="Glib::VariantType::VariantType" ref="ae10ea525df2b241b59036de7684ae565" args="(const std::string &amp;type_string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::VariantType::VariantType </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>type_string</em>&#160;)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> corresponding to the type string given by <em>type_string</em>. </p>
<p>It is a programmer error to call this function with an invalid type string. Use string_is_valid() if you are unsure. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a75cdb696a91c6fbc3cc9042bb20e66d0"></a><!-- doxytag: member="Glib::VariantType::create_array" ref="a75cdb696a91c6fbc3cc9042bb20e66d0" args="(const VariantType &amp;element)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::create_array </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>element</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs the type corresponding to an array of elements of the type <em>type</em>. </p>
<p>It is appropriate to call g_variant_type_free() on the return value.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new array <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ae491f86f5ebda97b1a6aae8cb96c6251"></a><!-- doxytag: member="Glib::VariantType::create_dict_entry" ref="ae491f86f5ebda97b1a6aae8cb96c6251" args="(const VariantType &amp;key, const VariantType &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::create_dict_entry </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs the type corresponding to a dictionary entry with a key of type <em>key</em> and a value of type <em>value</em>. </p>
<p>It is appropriate to call g_variant_type_free() on the return value.</p>
<p>Since 2.24 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>A <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new dictionary entry <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="aeac7660b174a80c9ae1ade6da36fac15"></a><!-- doxytag: member="Glib::VariantType::create_maybe" ref="aeac7660b174a80c9ae1ade6da36fac15" args="(const VariantType &amp;element)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::create_maybe </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>element</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs the type corresponding to a maybe instance containing type <em>type</em> or Nothing. </p>
<p>It is appropriate to call g_variant_type_free() on the return value.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new maybe <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ae3b6667496af1b92a4ef6eeedea68062"></a><!-- doxytag: member="Glib::VariantType::element" ref="ae3b6667496af1b92a4ef6eeedea68062" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::element </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines the element type of an array or maybe type. </p>
<p>This function may only be used with array or maybe types.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The element type of <em>type</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a588b922bcd7f44b3aefb4883a883e1df"></a><!-- doxytag: member="Glib::VariantType::equal" ref="a588b922bcd7f44b3aefb4883a883e1df" args="(const VariantType &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::equal </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>other</em>&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares <em>type1</em> and <em>type2</em> for equality. </p>
<p>Only returns <code>true</code> if the types are exactly equal. Even if one type is an indefinite type and the other is a subtype of it, <code>false</code> will be returned if they are not exactly equal. If you want to check for subtypes, use g_variant_type_is_subtype_of().</p>
<p>The argument types of <em>type1</em> and <em>type2</em> are only gconstpointer to allow use with HashTable without function pointer casting. For both arguments, a valid <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> must be provided.</p>
<p>Since 2.24 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type1</td><td>A <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </td></tr>
    <tr><td class="paramname">type2</td><td>A <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type1</em> and <em>type2</em> are exactly equal. </dd></dl>

</div>
</div>
<a class="anchor" id="a2d67b5cbfce5a23a9bab43a45a6b3501"></a><!-- doxytag: member="Glib::VariantType::first" ref="a2d67b5cbfce5a23a9bab43a45a6b3501" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::first </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines the first item type of a tuple or dictionary entry type. </p>
<p>This function may only be used with tuple or dictionary entry types, but must not be used with the generic tuple type VARIANT_TYPE_TUPLE.</p>
<p>In the case of a dictionary entry type, this returns the type of the key.</p>
<p><code>0</code> is returned in case of <em>type</em> being VARIANT_TYPE_UNIT.</p>
<p>This call, together with g_variant_type_next() provides an iterator interface over tuple and dictionary entry types.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The first item type of <em>type</em>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="ac5c9827283fad7449ba95cd144299924"></a><!-- doxytag: member="Glib::VariantType::get_string" ref="ac5c9827283fad7449ba95cd144299924" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01202.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> Glib::VariantType::get_string </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the type string corresponding to the given <em>type</em>. </p>
<p>The result is not nul-terminated; in order to determine its length you must call g_variant_type_get_string_length().</p>
<p>To get a nul-terminated string, see g_variant_type_dup_string().</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The corresponding type string (not nul-terminated). </dd></dl>

</div>
</div>
<a class="anchor" id="a6155f01582363d9d4af944d1445cff17"></a><!-- doxytag: member="Glib::VariantType::gobj" ref="a6155f01582363d9d4af944d1445cff17" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GVariantType* Glib::VariantType::gobj </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a911a3cfa7c4fc5e56cca07f0cb765487"></a><!-- doxytag: member="Glib::VariantType::gobj" ref="a911a3cfa7c4fc5e56cca07f0cb765487" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GVariantType* Glib::VariantType::gobj </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9a158b1e3cafd0b351a403937550b341"></a><!-- doxytag: member="Glib::VariantType::gobj_copy" ref="a9a158b1e3cafd0b351a403937550b341" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GVariantType* Glib::VariantType::gobj_copy </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="abfb9813509f7cd232efe4fe2c811bac0"></a><!-- doxytag: member="Glib::VariantType::hash" ref="abfb9813509f7cd232efe4fe2c811bac0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint Glib::VariantType::hash </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Hashes <em>type</em>. </p>
<p>The argument type of <em>type</em> is only gconstpointer to allow use with HashTable without function pointer casting. A valid <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> must be provided.</p>
<p>Since 2.24 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>A <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The hash value. </dd></dl>

</div>
</div>
<a class="anchor" id="a5a05d7d692655b9ae4385c24065da273"></a><!-- doxytag: member="Glib::VariantType::is_array" ref="a5a05d7d692655b9ae4385c24065da273" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_array </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is an array type. </p>
<p>This is true if the type string for <em>type</em> starts with an 'a'.</p>
<p>This function returns <code>true</code> for any indefinite type for which every definite subtype is an array type -- VARIANT_TYPE_ARRAY, for example.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is an array type. </dd></dl>

</div>
</div>
<a class="anchor" id="a4f7b40578243457b772e05859ca58aff"></a><!-- doxytag: member="Glib::VariantType::is_basic" ref="a4f7b40578243457b772e05859ca58aff" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_basic </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is a basic type. </p>
<p>Basic types are booleans, bytes, integers, doubles, strings, object paths and signatures.</p>
<p>Only a basic type may be used as the key of a dictionary entry.</p>
<p>This function returns <code>false</code> for all indefinite types except VARIANT_TYPE_BASIC.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is a basic type. </dd></dl>

</div>
</div>
<a class="anchor" id="a904f1b6785984c07a52f4a29aa7e6acc"></a><!-- doxytag: member="Glib::VariantType::is_container" ref="a904f1b6785984c07a52f4a29aa7e6acc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_container </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is a container type. </p>
<p>Container types are any array, maybe, tuple, or dictionary entry types plus the variant type.</p>
<p>This function returns <code>true</code> for any indefinite type for which every definite subtype is a container -- VARIANT_TYPE_ARRAY, for example.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is a container type. </dd></dl>

</div>
</div>
<a class="anchor" id="a6a87621d2363faf21a6567ef5d902667"></a><!-- doxytag: member="Glib::VariantType::is_definite" ref="a6a87621d2363faf21a6567ef5d902667" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_definite </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is definite (ie: not indefinite). </p>
<p>A type is definite if its type string does not contain any indefinite type characters ('*', '?', or 'r').</p>
<p>A <a class="el" href="classGlib_1_1Variant.html" title="Template class used for the specialization of the Variant&lt;&gt; classes.">Variant</a> instance may not have an indefinite type, so calling this function on the result of g_variant_get_type() will always result in <code>true</code> being returned. Calling this function on an indefinite type like VARIANT_TYPE_ARRAY, however, will result in <code>false</code> being returned.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is definite. </dd></dl>

</div>
</div>
<a class="anchor" id="a843ac24bb78fb1a2fb7d21e62df0177d"></a><!-- doxytag: member="Glib::VariantType::is_dict_entry" ref="a843ac24bb78fb1a2fb7d21e62df0177d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_dict_entry </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is a dictionary entry type. </p>
<p>This is true if the type string for <em>type</em> starts with a '{'.</p>
<p>This function returns <code>true</code> for any indefinite type for which every definite subtype is a dictionary entry type -- VARIANT_TYPE_DICT_ENTRY, for example.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is a dictionary entry type. </dd></dl>

</div>
</div>
<a class="anchor" id="a4eb67b2056e91fb6139ce8c801bb3176"></a><!-- doxytag: member="Glib::VariantType::is_maybe" ref="a4eb67b2056e91fb6139ce8c801bb3176" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_maybe </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is a maybe type. </p>
<p>This is true if the type string for <em>type</em> starts with an 'm'.</p>
<p>This function returns <code>true</code> for any indefinite type for which every definite subtype is a maybe type -- VARIANT_TYPE_MAYBE, for example.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is a maybe type. </dd></dl>

</div>
</div>
<a class="anchor" id="a294a688ba6d3ed2523f25365db4253a3"></a><!-- doxytag: member="Glib::VariantType::is_subtype_of" ref="a294a688ba6d3ed2523f25365db4253a3" args="(const VariantType &amp;supertype) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_subtype_of </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>supertype</em>&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks if <em>type</em> is a subtype of <em>supertype</em>. </p>
<p>This function returns <code>true</code> if <em>type</em> is a subtype of <em>supertype</em>. All types are considered to be subtypes of themselves. Aside from that, only indefinite types can have subtypes.</p>
<p>Since 2.24 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">supertype</td><td>A <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is a subtype of <em>supertype</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="af6f59e8ae01cac71c836c85cdd30dcb5"></a><!-- doxytag: member="Glib::VariantType::is_tuple" ref="af6f59e8ae01cac71c836c85cdd30dcb5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_tuple </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is a tuple type. </p>
<p>This is true if the type string for <em>type</em> starts with a '(' or if <em>type</em> is VARIANT_TYPE_TUPLE.</p>
<p>This function returns <code>true</code> for any indefinite type for which every definite subtype is a tuple type -- VARIANT_TYPE_TUPLE, for example.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is a tuple type. </dd></dl>

</div>
</div>
<a class="anchor" id="a2c088b0421b0f8613fef8f9fce174c50"></a><!-- doxytag: member="Glib::VariantType::is_variant" ref="a2c088b0421b0f8613fef8f9fce174c50" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::VariantType::is_variant </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given <em>type</em> is the variant type. </p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>type</em> is the variant type. </dd></dl>

</div>
</div>
<a class="anchor" id="af96fc9046121be33ec629763466fd658"></a><!-- doxytag: member="Glib::VariantType::key" ref="af96fc9046121be33ec629763466fd658" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::key </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines the key type of a dictionary entry type. </p>
<p>This function may only be used with a dictionary entry type. Other than the additional restriction, this call is equivalent to g_variant_type_first().</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The key type of the dictionary entry. </dd></dl>

</div>
</div>
<a class="anchor" id="a38b33a104b64fdc40cd01adcfea8a5a5"></a><!-- doxytag: member="Glib::VariantType::n_items" ref="a38b33a104b64fdc40cd01adcfea8a5a5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gsize Glib::VariantType::n_items </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines the number of items contained in a tuple or dictionary entry type. </p>
<p>This function may only be used with tuple or dictionary entry types, but must not be used with the generic tuple type VARIANT_TYPE_TUPLE.</p>
<p>In the case of a dictionary entry type, this function will always return 2.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of items in <em>type</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a516269f291efca8e57f2dea6ac0875a1"></a><!-- doxytag: member="Glib::VariantType::next" ref="a516269f291efca8e57f2dea6ac0875a1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::next </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines the next item type of a tuple or dictionary entry type. </p>
<p><em>type</em> must be the result of a previous call to g_variant_type_first() or g_variant_type_next().</p>
<p>If called on the key type of a dictionary entry then this call returns the value type. If called on the value type of a dictionary entry then this call returns <code>0</code>.</p>
<p>For tuples, <code>0</code> is returned when <em>type</em> is the last item in a tuple.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The next <a class="el" href="classGlib_1_1VariantType.html" title="VariantType - The VariantBase type system.">VariantType</a> after <em>type</em>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a0d63c3af32d9c2eeeeea3009207457fe"></a><!-- doxytag: member="Glib::VariantType::operator=" ref="a0d63c3af32d9c2eeeeea3009207457fe" args="(const VariantType &amp;src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; Glib::VariantType::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp;&#160;</td>
          <td class="paramname"> <em>src</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a32d8cf9c965f307b1dbabf5d8845e22a"></a><!-- doxytag: member="Glib::VariantType::operator=" ref="a32d8cf9c965f307b1dbabf5d8845e22a" args="(const GVariantType *castitem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a>&amp; Glib::VariantType::operator= </td>
          <td>(</td>
          <td class="paramtype">const GVariantType *&#160;</td>
          <td class="paramname"> <em>castitem</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a04d066ac063480d86da8e2f6af80d11d"></a><!-- doxytag: member="Glib::VariantType::value" ref="a04d066ac063480d86da8e2f6af80d11d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">VariantType</a> Glib::VariantType::value </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines the value type of a dictionary entry type. </p>
<p>This function may only be used with a dictionary entry type.</p>
<p>Since 2.24 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value type of the dictionary entry. </dd></dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a7ab0237355a6c562fa30b3afc4a10332"></a><!-- doxytag: member="Glib::VariantType::wrap" ref="a7ab0237355a6c562fa30b3afc4a10332" args="(GVariantType *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1VariantType.html">Glib::VariantType</a> wrap </td>
          <td>(</td>
          <td class="paramtype">GVariantType *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
    <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a9ca6d5b63454a54702ad5e890ec95d75"></a><!-- doxytag: member="Glib::VariantType::gobject_" ref="a9ca6d5b63454a54702ad5e890ec95d75" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GVariantType* <a class="el" href="classGlib_1_1VariantType.html#a9ca6d5b63454a54702ad5e890ec95d75">Glib::VariantType::gobject_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Apr 5 2011 16:07:14 for glibmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>