<!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>libgdamm: Gnome::Gda::Row 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.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libgdamm <span id="projectnumber">4.1.3</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related 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 id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGnome.html">Gnome</a> </li> <li class="navelem"><a class="el" href="namespaceGnome_1_1Gda.html">Gda</a> </li> <li class="navelem"><a class="el" href="classGnome_1_1Gda_1_1Row.html">Row</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gnome::Gda::Row Class Reference<div class="ingroups"><a class="el" href="group__DataHandlers.html">Data Handlers</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gnome::Gda::Row" --><!-- doxytag: inherits="Glib::Object" --> <p><a class="el" href="classGnome_1_1Gda_1_1Row.html" title="Row for a Gda::DataModelArray object.">Row</a> for a <a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html" title="An implementation of DataModel based on an array.">Gda::DataModelArray</a> object. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gnome::Gda::Row:</div> <div class="dyncontent"> <div class="center"><img src="classGnome_1_1Gda_1_1Row__inherit__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1Row_inherit__map" alt="Inheritance graph"/></div> <map name="Gnome_1_1Gda_1_1Row_inherit__map" id="Gnome_1_1Gda_1_1Row_inherit__map"> <area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="24,166,115,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="9,86,129,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="16,6,123,37"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gnome::Gda::Row:</div> <div class="dyncontent"> <div class="center"><img src="classGnome_1_1Gda_1_1Row__coll__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1Row_coll__map" alt="Collaboration graph"/></div> <map name="Gnome_1_1Gda_1_1Row_coll__map" id="Gnome_1_1Gda_1_1Row_coll__map"> <area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="24,166,115,197"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="9,86,129,117"/><area shape="rect" id="node6" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="16,6,123,37"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGnome_1_1Gda_1_1Row-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">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#a6a365ed4f4c590502b18b59727a0660e">~Row</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdaRow* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#a65683c8298b6edc85e57c0a05ea79290">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a65683c8298b6edc85e57c0a05ea79290"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GdaRow* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#aacd3534a398a64f91f5bf817c5423b97">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aacd3534a398a64f91f5bf817c5423b97"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdaRow* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#a28054216aaf7b3c2d06c6f2fea2771b2">gobj_copy</a> ()</td></tr> <tr><td class="mdescLeft"> </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="#a28054216aaf7b3c2d06c6f2fea2771b2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#a0186bce217d9f1a6bbf149d700837d07">get_value</a> (int <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01565.html#ga789f5d091ec6558c00e83a858a85a50f">num</a>)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets a pointer to a <a class="el" href="classGnome_1_1Gda_1_1Value.html" title="Use value_type() to identify the value type at runtime.">Value</a> stored in a <a class="el" href="classGnome_1_1Gda_1_1Row.html" title="Row for a Gda::DataModelArray object.">Gda::Row</a>. <a href="#a0186bce217d9f1a6bbf149d700837d07"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#aa03691cf4120174981c29b52f1618c43">get_length</a> ()</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="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGnome_1_1Gda_1_1Row.html">Row</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#aaac5a8a0ad796ae90ede5446f4d09787">create</a> (int <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01571.html#ga81511cd7112567fa262b05bb22e69874">count</a>)</td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGnome_1_1Gda_1_1Row.html">Gnome::Gda::Row</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Row.html#a0d827becc03df28cb900b09d3c730c9b">wrap</a> (GdaRow* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a0d827becc03df28cb900b09d3c730c9b"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classGnome_1_1Gda_1_1Row.html" title="Row for a Gda::DataModelArray object.">Row</a> for a <a class="el" href="classGnome_1_1Gda_1_1DataModelArray.html" title="An implementation of DataModel based on an array.">Gda::DataModelArray</a> object. </p> <p>The GdaDataModelArray object uses GdaRow to store each row of data. Each GdaRow has the same number of GValue values (equal to the number of columns of the data model).</p> <p>As a side note, the GdaRow object is also used internally by the implementation of the data models returned when executing a SELECT statement. </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a6a365ed4f4c590502b18b59727a0660e"></a><!-- doxytag: member="Gnome::Gda::Row::~Row" ref="a6a365ed4f4c590502b18b59727a0660e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gnome::Gda::Row::~Row </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aaac5a8a0ad796ae90ede5446f4d09787"></a><!-- doxytag: member="Gnome::Gda::Row::create" ref="aaac5a8a0ad796ae90ede5446f4d09787" args="(int count)" --> <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><<a class="el" href="classGnome_1_1Gda_1_1Row.html">Row</a>> Gnome::Gda::Row::create </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>count</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aa03691cf4120174981c29b52f1618c43"></a><!-- doxytag: member="Gnome::Gda::Row::get_length" ref="aa03691cf4120174981c29b52f1618c43" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Gnome::Gda::Row::get_length </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>The number of columns that the <em>row</em> has. </dd></dl> </div> </div> <a class="anchor" id="a0186bce217d9f1a6bbf149d700837d07"></a><!-- doxytag: member="Gnome::Gda::Row::get_value" ref="a0186bce217d9f1a6bbf149d700837d07" args="(int num)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> Gnome::Gda::Row::get_value </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>num</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Gets a pointer to a <a class="el" href="classGnome_1_1Gda_1_1Value.html" title="Use value_type() to identify the value type at runtime.">Value</a> stored in a <a class="el" href="classGnome_1_1Gda_1_1Row.html" title="Row for a Gda::DataModelArray object.">Gda::Row</a>. </p> <p>This is a pointer to the internal array of values. Don't try to free or modify it (modifying is reserved to database provider's implementations). </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">num</td><td>Field index. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the <a class="el" href="classGnome_1_1Gda_1_1Value.html" title="Use value_type() to identify the value type at runtime.">Value</a> in the position <em>num</em> of <em>row</em>. </dd></dl> </div> </div> <a class="anchor" id="aacd3534a398a64f91f5bf817c5423b97"></a><!-- doxytag: member="Gnome::Gda::Row::gobj" ref="aacd3534a398a64f91f5bf817c5423b97" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GdaRow* Gnome::Gda::Row::gobj </td> <td>(</td> <td class="paramname"></td><td>)</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="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p> </div> </div> <a class="anchor" id="a65683c8298b6edc85e57c0a05ea79290"></a><!-- doxytag: member="Gnome::Gda::Row::gobj" ref="a65683c8298b6edc85e57c0a05ea79290" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdaRow* Gnome::Gda::Row::gobj </td> <td>(</td> <td class="paramname"></td><td>)</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="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p> </div> </div> <a class="anchor" id="a28054216aaf7b3c2d06c6f2fea2771b2"></a><!-- doxytag: member="Gnome::Gda::Row::gobj_copy" ref="a28054216aaf7b3c2d06c6f2fea2771b2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdaRow* Gnome::Gda::Row::gobj_copy </td> <td>(</td> <td class="paramname"></td><td>)</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> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a0d827becc03df28cb900b09d3c730c9b"></a><!-- doxytag: member="Gnome::Gda::Row::wrap" ref="a0d827becc03df28cb900b09d3c730c9b" args="(GdaRow *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>< <a class="el" href="classGnome_1_1Gda_1_1Row.html">Gnome::Gda::Row</a> > wrap </td> <td>(</td> <td class="paramtype">GdaRow * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <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#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/>The documentation for this class was generated from the following file:<ul> <li>libgdamm/row.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Sep 22 2011 11:20:03 for libgdamm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>