Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > 7f3e5f74d754b480ec33648905c4afae > files > 354

glibmm2.4-doc-2.22.1-1mdv2010.0.x86_64.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::ValueArray 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.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <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="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</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"><a class="el" href="namespaceGlib.html">Glib</a>::<a class="el" href="classGlib_1_1ValueArray.html">ValueArray</a>
  </div>
</div>
<div class="contents">
<h1>Glib::ValueArray Class Reference</h1><!-- doxytag: class="Glib::ValueArray" -->
<p>A container structure to maintain an array of generic values. <a href="#_details">More...</a></p>

<p><a href="classGlib_1_1ValueArray-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef sigc::slot&lt; int, const <br class="typebreak"/>
<a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;, const <br class="typebreak"/>
<a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#ad4c19ec101b806a29cc3ab3f2c8ddd41">SlotCompare</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For example, int on_compare(const Glib::ValueBase&amp; v1, const Glib::ValueBase&amp; v2);. <a href="#ad4c19ec101b806a29cc3ab3f2c8ddd41"></a><br/></td></tr>
<tr><td colspan="2"><h2>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_1ValueArray.html#aa403923648ca619054e4c8b8be1bb801">ValueArray</a> (GValueArray* gobject, bool make_a_copy=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a5edd2ac638c259f60fd99bb48b95bdc6">ValueArray</a> (const <a class="el" href="classGlib_1_1ValueArray.html">ValueArray</a>&amp; other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ValueArray.html">ValueArray</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#aff63102ffe3754919ac79b0dcb8588bf">operator=</a> (const <a class="el" href="classGlib_1_1ValueArray.html">ValueArray</a>&amp; other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a5faaac10ee8876d546e4c86e5c37db7e">~ValueArray</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#ad273ae0b8f05b91c78f0d372cf273bb3">swap</a> (<a class="el" href="classGlib_1_1ValueArray.html">ValueArray</a>&amp; other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GValueArray*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a5ba764739af03092ea3bfebdf3bdc079">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a5ba764739af03092ea3bfebdf3bdc079"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GValueArray*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a5c9dfbd4b5088750a7d141621122f348">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a5c9dfbd4b5088750a7d141621122f348"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GValueArray*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a55215a65d59dfeff744b4cdc1695a37b">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="#a55215a65d59dfeff744b4cdc1695a37b"></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_1ValueArray.html#a8bdecaaa39e7f8159637768e495bfa5c">ValueArray</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <a href="#a8bdecaaa39e7f8159637768e495bfa5c"></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_1ValueArray.html#a836e8fb2bc4e0c5dd4030599ae7f1ffa">ValueArray</a> (guint n_preallocated)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new array with pre-allocation. <a href="#a836e8fb2bc4e0c5dd4030599ae7f1ffa"></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_1ValueArray.html#a2c32fe81f5d6cdf3040b8e621b02b02d">get_nth</a> (guint index, <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01009.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the value at <em>index</em> contained in the value array. <a href="#a2c32fe81f5d6cdf3040b8e621b02b02d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#abe238a2bc7c967a0941a416f1caa650d">append</a> (const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01009.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a copy of <em>value</em> as last element of <em>value_array</em>. <a href="#abe238a2bc7c967a0941a416f1caa650d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#af7c30ee85c708e917cb4f0779a0ca31c">prepend</a> (const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01009.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a copy of <em>value</em> as first element of <em>value_array</em>. <a href="#af7c30ee85c708e917cb4f0779a0ca31c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a14fa8d4fa2bba2386ae79bbe816f1c42">insert</a> (guint index, const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01009.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a copy of <em>value</em> at specified position into <em>value_array</em>. <a href="#a14fa8d4fa2bba2386ae79bbe816f1c42"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a30dd7f25f52351968e88c545bbf911c8">remove</a> (guint index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the value at position <em>index</em> from <em>value_array</em>. <a href="#a30dd7f25f52351968e88c545bbf911c8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#aa62247fd9a4574141f09814affe8ab8f">sort</a> (const <a class="el" href="classGlib_1_1ValueArray.html#ad4c19ec101b806a29cc3ab3f2c8ddd41">SlotCompare</a>&amp; compare_func)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sort <em>value_array</em> using <em>compare_func</em> to compare the elements accoring to the semantics of CompareFunc. <a href="#aa62247fd9a4574141f09814affe8ab8f"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GValueArray*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#a9b4925a477575dacae2507e5c57ed6bd">gobject_</a></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueArray.html#ad7bd84e60b7a67eb393a76b7da88d937">wrap</a> (GValueArray* 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="#ad7bd84e60b7a67eb393a76b7da88d937"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A container structure to maintain an array of generic values. </p>
<p>The prime purpose of a <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a> is for it to be used as an object property that holds an array of values. A <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a> wraps an array of <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a> elements.</p>
<dl class="since_2_22"><dt><b><a class="el" href="since_2_22.html#_since_2_22000004">Since glibmm 2.22:</a></b></dt><dd></dd></dl>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="ad4c19ec101b806a29cc3ab3f2c8ddd41"></a><!-- doxytag: member="Glib::ValueArray::SlotCompare" ref="ad4c19ec101b806a29cc3ab3f2c8ddd41" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef sigc::slot&lt;int, const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;, const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;&gt; <a class="el" href="classGlib_1_1ValueArray.html#ad4c19ec101b806a29cc3ab3f2c8ddd41">Glib::ValueArray::SlotCompare</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For example, int on_compare(const Glib::ValueBase&amp; v1, const Glib::ValueBase&amp; v2);. </p>
<p>The compare function should return -1 if v1 &lt; v2, 0 if v1 == v2, and 1 if v1 &gt; v2. </p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa403923648ca619054e4c8b8be1bb801"></a><!-- doxytag: member="Glib::ValueArray::ValueArray" ref="aa403923648ca619054e4c8b8be1bb801" args="(GValueArray *gobject, bool make_a_copy=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::ValueArray::ValueArray </td>
          <td>(</td>
          <td class="paramtype">GValueArray *&#160;</td>
          <td class="paramname"> <em>gobject</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>true</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

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

<p>Default constructor. </p>
<p>Constructs a new array with no pre-allocation. </p>

</div>
</div>
<a class="anchor" id="a836e8fb2bc4e0c5dd4030599ae7f1ffa"></a><!-- doxytag: member="Glib::ValueArray::ValueArray" ref="a836e8fb2bc4e0c5dd4030599ae7f1ffa" args="(guint n_preallocated)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::ValueArray::ValueArray </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"> <em>n_preallocated</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a new array with pre-allocation. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abe238a2bc7c967a0941a416f1caa650d"></a><!-- doxytag: member="Glib::ValueArray::append" ref="abe238a2bc7c967a0941a416f1caa650d" args="(const Glib::ValueBase &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp; Glib::ValueArray::append </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;&#160;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Insert a copy of <em>value</em> as last element of <em>value_array</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&#160;</td><td><a class="el" href="classGlib_1_1Value.html" title="Generic value implementation for custom types.">Value</a> to copy into <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a> passed in as <em>value_array</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a2c32fe81f5d6cdf3040b8e621b02b02d"></a><!-- doxytag: member="Glib::ValueArray::get_nth" ref="a2c32fe81f5d6cdf3040b8e621b02b02d" args="(guint index, Glib::ValueBase &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::ValueArray::get_nth </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;&#160;</td>
          <td class="paramname"> <em>value</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the value at <em>index</em> contained in the value array. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&#160;</td><td>Index of the value of interest. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&#160;</td><td>An uninitialized <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a> in which to store the result. If the get is successful, <em>value</em> will be valid, otherwise it will remain uninitialized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>whether the get was successful or not. </dd></dl>

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

<p>Provides access to the underlying C instance. </p>

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

<p>Provides access to the underlying C instance. </p>

</div>
</div>
<a class="anchor" id="a55215a65d59dfeff744b4cdc1695a37b"></a><!-- doxytag: member="Glib::ValueArray::gobj_copy" ref="a55215a65d59dfeff744b4cdc1695a37b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GValueArray* Glib::ValueArray::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#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="a14fa8d4fa2bba2386ae79bbe816f1c42"></a><!-- doxytag: member="Glib::ValueArray::insert" ref="a14fa8d4fa2bba2386ae79bbe816f1c42" args="(guint index, const Glib::ValueBase &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp; Glib::ValueArray::insert </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;&#160;</td>
          <td class="paramname"> <em>value</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Insert a copy of <em>value</em> at specified position into <em>value_array</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&#160;</td><td>Insertion position, must be &lt;= value_array-&gt;n_values. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&#160;</td><td><a class="el" href="classGlib_1_1Value.html" title="Generic value implementation for custom types.">Value</a> to copy into <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a> passed in as <em>value_array</em>. </dd></dl>

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

</div>
</div>
<a class="anchor" id="af7c30ee85c708e917cb4f0779a0ca31c"></a><!-- doxytag: member="Glib::ValueArray::prepend" ref="af7c30ee85c708e917cb4f0779a0ca31c" args="(const Glib::ValueBase &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp; Glib::ValueArray::prepend </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1ValueBase.html">Glib::ValueBase</a>&amp;&#160;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Insert a copy of <em>value</em> as first element of <em>value_array</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&#160;</td><td><a class="el" href="classGlib_1_1Value.html" title="Generic value implementation for custom types.">Value</a> to copy into <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a> passed in as <em>value_array</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a30dd7f25f52351968e88c545bbf911c8"></a><!-- doxytag: member="Glib::ValueArray::remove" ref="a30dd7f25f52351968e88c545bbf911c8" args="(guint index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp; Glib::ValueArray::remove </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"> <em>index</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove the value at position <em>index</em> from <em>value_array</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&#160;</td><td>Position of value to remove, must be &lt; value_array-&gt;n_values. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a> passed in as <em>value_array</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="aa62247fd9a4574141f09814affe8ab8f"></a><!-- doxytag: member="Glib::ValueArray::sort" ref="aa62247fd9a4574141f09814affe8ab8f" args="(const SlotCompare &amp;compare_func)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a>&amp; Glib::ValueArray::sort </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1ValueArray.html#ad4c19ec101b806a29cc3ab3f2c8ddd41">SlotCompare</a>&amp;&#160;</td>
          <td class="paramname"> <em>compare_func</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sort <em>value_array</em> using <em>compare_func</em> to compare the elements accoring to the semantics of CompareFunc. </p>
<p>The current implementation uses Quick-Sort as sorting algorithm. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>compare_func</em>&#160;</td><td>Function to compare elements. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGlib_1_1ValueArray.html" title="A container structure to maintain an array of generic values.">ValueArray</a> passed in as <em>value_array</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="ad273ae0b8f05b91c78f0d372cf273bb3"></a><!-- doxytag: member="Glib::ValueArray::swap" ref="ad273ae0b8f05b91c78f0d372cf273bb3" args="(ValueArray &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::ValueArray::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGlib_1_1ValueArray.html">ValueArray</a>&amp;&#160;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="ad7bd84e60b7a67eb393a76b7da88d937"></a><!-- doxytag: member="Glib::ValueArray::wrap" ref="ad7bd84e60b7a67eb393a76b7da88d937" args="(GValueArray *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ValueArray.html">Glib::ValueArray</a> wrap </td>
          <td>(</td>
          <td class="paramtype">GValueArray *&#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></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <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 border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</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="a9b4925a477575dacae2507e5c57ed6bd"></a><!-- doxytag: member="Glib::ValueArray::gobject_" ref="a9b4925a477575dacae2507e5c57ed6bd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GValueArray* <a class="el" href="classGlib_1_1ValueArray.html#a9b4925a477575dacae2507e5c57ed6bd">Glib::ValueArray::gobject_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>glibmm/valuearray.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 11:07:25 2009 for glibmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>