Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 8d90331d2ecb84d76208e0114aebc325 > files > 125

lib64gdamm4.0-devel-3.99.17.1-1mdv2010.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libgdamm: Gnome::Gda::DataModelArray 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.5.8 -->
<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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <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"><a class="el" href="namespaceGnome.html">Gnome</a>::<a class="el" href="namespaceGnome_1_1Gda.html">Gda</a>::<a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html">DataModelArray</a>
  </div>
</div>
<div class="contents">
<h1>Gnome::Gda::DataModelArray Class Reference<br>
<small>
[<a class="el" href="group__DataModels.html">Data Models</a>]</small>
</h1><!-- doxytag: class="Gnome::Gda::DataModelArray" --><!-- doxytag: inherits="Glib::Object,Gnome::Gda::DataModel" -->An implementation of <a class="el" href="classGnome_1_1Gda_1_1DataModel.html" title="Abstract DataModel (Base class for all DataModels).">DataModel</a> based on an array. <a href="#_details">More...</a>
<p>
Inherits <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html">Glib::Object</a>, and <a class="el" href="classGnome_1_1Gda_1_1DataModel.html">Gnome::Gda::DataModel</a>.
<p>
<div class="dynheader">
Collaboration diagram for Gnome::Gda::DataModelArray:</div>
<div class="dynsection">
<p><center><img src="classGnome_1_1Gda_1_1DataModelArray__coll__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1DataModelArray__coll__map" alt="Collaboration graph"></center>
<map name="Gnome_1_1Gda_1_1DataModelArray__coll__map">
<area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="5,229,96,256"><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="51,80,171,107"><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="135,155,239,181"><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="57,5,164,32"><area shape="rect" href="classGnome_1_1Gda_1_1DataModel.html" title="Abstract DataModel (Base class for all DataModels)." alt="" coords="120,229,285,256"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classGnome_1_1Gda_1_1DataModelArray-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#cf6b97c46c4f1f40cee77e8559a02122">~DataModelArray</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaDataModelArray*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#0cf8a628099c6b3b23e114458bb1b16b">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#0cf8a628099c6b3b23e114458bb1b16b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GdaDataModelArray*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#7e017ea29516df7b3c3ce587d04743f3">gobj</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#7e017ea29516df7b3c3ce587d04743f3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaDataModelArray*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#91fc6818a5690a2fd982658b04f162ff">gobj_copy</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#91fc6818a5690a2fd982658b04f162ff"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#51edeb99f7cc1ac3b3989ee02b6c8eb5">set_column_g_type</a> (int col, GType type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#631fb85f9013380bfc2c60871387e689">set_n_columns</a> (int cols)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the number of columns for rows inserted in this model. <a href="#631fb85f9013380bfc2c60871387e689"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#f5a315c84b408caf65f2fba70209a3e8">clear</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees all the rows in <em>model</em>. <a href="#f5a315c84b408caf65f2fba70209a3e8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1Row.html">Row</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#292fc96fbcbe03b3151ee3a7ff855e3b">get_row</a> (int row)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to a row in <em>model</em>. <a href="#292fc96fbcbe03b3151ee3a7ff855e3b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGnome_1_1Gda_1_1Row.html">Row</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#7036691a6820ead8e70b16f788b6068b">get_row</a> (int row) const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to a row in <em>model</em>. <a href="#7036691a6820ead8e70b16f788b6068b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; guint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#d7b7c5dbf7c69ff80c8cd23a1382dd9a">property_n_columns</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of columns in the model. <a href="#d7b7c5dbf7c69ff80c8cd23a1382dd9a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak">
&lt; guint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#d1836e4277f13c3577a835dc284e4f73">property_n_columns</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of columns in the model. <a href="#d1836e4277f13c3577a835dc284e4f73"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak">
&lt; <a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html">DataModelArray</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#5a702e69fef67d561291dea6f2c6351d">create</a> (int cols)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#a9e2cc2e69d66c6ba5476a2864be08e9">DataModelArray</a> (int cols)</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak">
&lt; <a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html">Gnome::Gda::DataModelArray</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html#f82135792c065fc0ffaa9519d8915efc">wrap</a> (GdaDataModelArray* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#f82135792c065fc0ffaa9519d8915efc"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An implementation of <a class="el" href="classGnome_1_1Gda_1_1DataModel.html" title="Abstract DataModel (Base class for all DataModels).">DataModel</a> based on an array. <p>
The <a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html" title="An implementation of DataModel based on an array.">Gda::DataModelArray</a> object is a data model which internally uses a GArray to index all its rows (represented as <a class="el" href="classGnome_1_1Gda_1_1Row.html" title="Row for a Gda::DataModelArray object.">Gda::Row</a> objects). In this data model, all the data is stored in memory, which can be a memory limitation if the number of rows is huge. This type of data model is easy to use to store some temporary data, and has a random access mode (any value can be accessed at any time without the need for an iterator). <hr><h2>Constructor&amp; Destructor Documentation</h2>
<a class="anchor" name="cf6b97c46c4f1f40cee77e8559a02122"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::~DataModelArray" ref="cf6b97c46c4f1f40cee77e8559a02122" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gnome::Gda::DataModelArray::~DataModelArray </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="a9e2cc2e69d66c6ba5476a2864be08e9"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::DataModelArray" ref="a9e2cc2e69d66c6ba5476a2864be08e9" args="(int cols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gnome::Gda::DataModelArray::DataModelArray </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>cols</em> </td>
          <td>&#160;)&#160;</td>
          <td><code> [explicit, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="f5a315c84b408caf65f2fba70209a3e8"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::clear" ref="f5a315c84b408caf65f2fba70209a3e8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataModelArray::clear </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Frees all the rows in <em>model</em>. <p>

</div>
</div><p>
<a class="anchor" name="5a702e69fef67d561291dea6f2c6351d"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::create" ref="5a702e69fef67d561291dea6f2c6351d" args="(int cols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html">DataModelArray</a>&gt; Gnome::Gda::DataModelArray::create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>cols</em> </td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="7036691a6820ead8e70b16f788b6068b"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::get_row" ref="7036691a6820ead8e70b16f788b6068b" args="(int row) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGnome_1_1Gda_1_1Row.html">Row</a>&gt; Gnome::Gda::DataModelArray::get_row </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>row</em> </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a pointer to a row in <em>model</em>. <p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGnome_1_1Gda_1_1Row.html" title="Row for a Gda::DataModelArray object.">Gda::Row</a>, or <code>0</code> if an error occurred. </dd></dl>

</div>
</div><p>
<a class="anchor" name="292fc96fbcbe03b3151ee3a7ff855e3b"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::get_row" ref="292fc96fbcbe03b3151ee3a7ff855e3b" args="(int row)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1Row.html">Row</a>&gt; Gnome::Gda::DataModelArray::get_row </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>row</em> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a pointer to a row in <em>model</em>. <p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGnome_1_1Gda_1_1Row.html" title="Row for a Gda::DataModelArray object.">Gda::Row</a>, or <code>0</code> if an error occurred. </dd></dl>

</div>
</div><p>
<a class="anchor" name="7e017ea29516df7b3c3ce587d04743f3"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::gobj" ref="7e017ea29516df7b3c3ce587d04743f3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdaDataModelArray* Gnome::Gda::DataModelArray::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 GObject. <p>

<p>Reimplemented from <a class="el" href="classGnome_1_1Gda_1_1DataModel.html#f06bc95c0e33adf8a3faca1870190a7f">Gnome::Gda::DataModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="0cf8a628099c6b3b23e114458bb1b16b"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::gobj" ref="0cf8a628099c6b3b23e114458bb1b16b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaDataModelArray* Gnome::Gda::DataModelArray::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 GObject. <p>

<p>Reimplemented from <a class="el" href="classGnome_1_1Gda_1_1DataModel.html#63b551e8308d050dbd5ab8964b405e76">Gnome::Gda::DataModel</a>.</p>

</div>
</div><p>
<a class="anchor" name="91fc6818a5690a2fd982658b04f162ff"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::gobj_copy" ref="91fc6818a5690a2fd982658b04f162ff" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaDataModelArray* Gnome::Gda::DataModelArray::gobj_copy </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="d1836e4277f13c3577a835dc284e4f73"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::property_n_columns" ref="d1836e4277f13c3577a835dc284e4f73" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;guint&gt; Gnome::Gda::DataModelArray::property_n_columns </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The number of columns in the model. <p>
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div><p>
<a class="anchor" name="d7b7c5dbf7c69ff80c8cd23a1382dd9a"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::property_n_columns" ref="d7b7c5dbf7c69ff80c8cd23a1382dd9a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt;guint&gt; Gnome::Gda::DataModelArray::property_n_columns </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The number of columns in the model. <p>
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div><p>
<a class="anchor" name="51edeb99f7cc1ac3b3989ee02b6c8eb5"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::set_column_g_type" ref="51edeb99f7cc1ac3b3989ee02b6c8eb5" args="(int col, GType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataModelArray::set_column_g_type </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GType&#160;</td>
          <td class="paramname"> <em>type</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="631fb85f9013380bfc2c60871387e689"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::set_n_columns" ref="631fb85f9013380bfc2c60871387e689" args="(int cols)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataModelArray::set_n_columns </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>cols</em> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the number of columns for rows inserted in this model. <p>
<em>cols</em> must be greated than or equal to 0.<p>
Also clears <em>model's</em> contents. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cols</em>&#160;</td><td>Number of columns for rows this data model should use. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="f82135792c065fc0ffaa9519d8915efc"></a><!-- doxytag: member="Gnome::Gda::DataModelArray::wrap" ref="f82135792c065fc0ffaa9519d8915efc" args="(GdaDataModelArray *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html">Gnome::Gda::DataModelArray</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdaDataModelArray *&#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="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <p>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>libgdamm/datamodelarray.h</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 20:01:55 2009 for libgdamm by&#160;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>