<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>glibmm 2.4: Glib::ValueBase Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../../../gtkmm-2.4/docs/index.html">Main Page</a> <a href="../../../../gtkmm-2.4/docs/reference/html/group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html">glibmm Namespaces</a> <a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- begin main content --> <div id="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="nav"> <a class="el" href="namespaceGlib.html">Glib</a>::<a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a></div> <h1>Glib::ValueBase Class Reference<br> <small> [<a class="el" href="group__glibmmValue.html">Generic Values</a>]</small> </h1><!-- doxytag: class="Glib::ValueBase" --><div class="dynheader"> Inheritance diagram for Glib::ValueBase:</div> <div class="dynsection"> <p><center><img src="classGlib_1_1ValueBase__inherit__graph.png" border="0" usemap="#Glib_1_1ValueBase__inherit__map" alt="Inheritance graph"></center> <map name="Glib_1_1ValueBase__inherit__map"> <area shape="rect" href="classGlib_1_1Value_3_01bool_01_4.html" title="Glib::Value\< bool \>" alt="" coords="223,5,367,32"><area shape="rect" href="classGlib_1_1Value_3_01char_01_4.html" title="Glib::Value\< char \>" alt="" coords="221,56,368,83"><area shape="rect" href="classGlib_1_1Value_3_01double_01_4.html" title="Glib::Value\< double \>" alt="" coords="215,107,375,133"><area shape="rect" href="classGlib_1_1Value_3_01float_01_4.html" title="Glib::Value\< float \>" alt="" coords="221,157,368,184"><area shape="rect" href="classGlib_1_1Value_3_01int_01_4.html" title="Glib::Value\< int \>" alt="" coords="228,208,361,235"><area shape="rect" href="classGlib_1_1Value_3_01long_01_4.html" title="Glib::Value\< long \>" alt="" coords="223,259,367,285"><area shape="rect" href="classGlib_1_1Value_3_01long_01long_01_4.html" title="Glib::Value\< long long \>" alt="" coords="207,309,383,336"><area shape="rect" href="classGlib_1_1Value_3_01unsigned_01char_01_4.html" title="Glib::Value\< unsigned char \>" alt="" coords="191,360,399,387"><area shape="rect" href="classGlib_1_1Value_3_01unsigned_01int_01_4.html" title="Glib::Value\< unsigned int \>" alt="" coords="197,411,392,437"><area shape="rect" href="classGlib_1_1Value_3_01unsigned_01long_01_4.html" title="Glib::Value\< unsigned long \>" alt="" coords="192,461,397,488"><area shape="rect" href="classGlib_1_1Value_3_01unsigned_01long_01long_01_4.html" title="Glib::Value\< unsigned long long \>" alt="" coords="176,512,413,539"><area shape="rect" href="classGlib_1_1Value_3_01void_01_5_01_4.html" title="Glib::Value\< void * \>" alt="" coords="217,563,372,589"><area shape="rect" href="classGlib_1_1ValueBase__Boxed.html" title="Glib::ValueBase_Boxed" alt="" coords="211,613,379,640"><area shape="rect" href="classGlib_1_1ValueBase__Enum.html" title="Glib::ValueBase_Enum" alt="" coords="212,664,377,691"><area shape="rect" href="classGlib_1_1ValueBase__Flags.html" title="Glib::ValueBase_Flags" alt="" coords="215,715,375,741"><area shape="rect" href="classGlib_1_1ValueBase__Object.html" title="Glib::ValueBase_Object" alt="" coords="211,791,379,817"><area shape="rect" href="classGlib_1_1ValueBase__String.html" title="Glib::ValueBase_String" alt="" coords="212,917,377,944"><area shape="rect" href="classGlib_1_1Value.html" title="Generic value implementation for custom types." alt="" coords="520,563,645,589"><area shape="rect" href="classGlib_1_1Value__Boxed.html" title="Glib::Value_Boxed\< T \>" alt="" coords="496,613,669,640"><area shape="rect" href="classGlib_1_1Value__Enum.html" title="Base class of Glib::Value<T> specializations for enum types." alt="" coords="497,664,668,691"><area shape="rect" href="classGlib_1_1Value__Flags.html" title="Base class of Glib::Value<T> specializations for flags types." alt="" coords="500,715,665,741"><area shape="rect" href="classGlib_1_1Value__Pointer.html" title="Glib::Value_Pointer\< T, PtrT \>" alt="" coords="476,765,689,792"><area shape="rect" href="classGlib_1_1Value__Pointer.html" title="Glib::Value_Pointer\< const T, T * \>" alt="" coords="461,816,704,843"><area shape="rect" href="classGlib_1_1Value__Pointer.html" title="Glib::Value_Pointer\< T, T * \>" alt="" coords="481,867,684,893"><area shape="rect" href="classGlib_1_1Value_3_01const_01T_01_5_01_4.html" title="Specialization for pointers to const instances of any type." alt="" coords="753,765,927,792"><area shape="rect" href="classGlib_1_1Value_3_01T_01_5_01_4.html" title="Specialization for pointers to instances of any type." alt="" coords="772,867,908,893"><area shape="rect" href="classGlib_1_1Value_3_01Glib_1_1ustring_01_4.html" title="Specialization for UTF-8 strings." alt="" coords="485,917,680,944"><area shape="rect" href="classGlib_1_1Value_3_01std_1_1string_01_4.html" title="Specialization for strings." alt="" coords="492,968,673,995"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classGlib_1_1ValueBase-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#066cc345d62be564ff53b25bd11e62e5">ValueBase</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes the GValue, but without a type. <a href="#066cc345d62be564ff53b25bd11e62e5"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#1af751f0ac927df5ccba7d584cb9e63f">ValueBase</a> (const <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& other)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#73ceadee7e4d2298b31d1dbe4bcd35e5">operator=</a> (const <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& other)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#fc9306c3f8331458eaa66de6d352bf01">~ValueBase</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#1659121f15f5e840cc1eba2b0aaefbb1">init</a> (GType type)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Setup the GValue for storing the specified <em>type</em>. <a href="#1659121f15f5e840cc1eba2b0aaefbb1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#1d31168845e6bb144a66904e813240e2">init</a> (const GValue* value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Setup the GValue storing the type and value of the specified <em>value</em>. <a href="#1d31168845e6bb144a66904e813240e2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#30c7bde0d772b87dc890da7a197c4494">reset</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Reset contents to the default value of its type. <a href="#30c7bde0d772b87dc890da7a197c4494"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">GValue* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#33253264f47c41526ede3f78afdbe1e4">gobj</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const GValue* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#b8050dbb94b1708d7786d797a4657d2f">gobj</a> () const </td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">GValue </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#3472d8f4c0bd6513c939ee3a4633be0f">gobject_</a></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="066cc345d62be564ff53b25bd11e62e5"></a><!-- doxytag: member="Glib::ValueBase::ValueBase" ref="066cc345d62be564ff53b25bd11e62e5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Glib::ValueBase::ValueBase </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Initializes the GValue, but without a type. <p> You have to call <a class="el" href="classGlib_1_1ValueBase.html#1659121f15f5e840cc1eba2b0aaefbb1" title="Setup the GValue for storing the specified type.">init()</a> before using the set(), get(), or <a class="el" href="classGlib_1_1ValueBase.html#30c7bde0d772b87dc890da7a197c4494" title="Reset contents to the default value of its type.">reset()</a> methods. </div> </div><p> <a class="anchor" name="1af751f0ac927df5ccba7d584cb9e63f"></a><!-- doxytag: member="Glib::ValueBase::ValueBase" ref="1af751f0ac927df5ccba7d584cb9e63f" args="(const ValueBase &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Glib::ValueBase::ValueBase </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& </td> <td class="paramname"> <em>other</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="fc9306c3f8331458eaa66de6d352bf01"></a><!-- doxytag: member="Glib::ValueBase::~ValueBase" ref="fc9306c3f8331458eaa66de6d352bf01" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Glib::ValueBase::~ValueBase </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="73ceadee7e4d2298b31d1dbe4bcd35e5"></a><!-- doxytag: member="Glib::ValueBase::operator=" ref="73ceadee7e4d2298b31d1dbe4bcd35e5" args="(const ValueBase &other)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& Glib::ValueBase::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& </td> <td class="paramname"> <em>other</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="1659121f15f5e840cc1eba2b0aaefbb1"></a><!-- doxytag: member="Glib::ValueBase::init" ref="1659121f15f5e840cc1eba2b0aaefbb1" args="(GType type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Glib::ValueBase::init </td> <td>(</td> <td class="paramtype">GType </td> <td class="paramname"> <em>type</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Setup the GValue for storing the specified <em>type</em>. <p> The contents will be initialized to the default value for this type. Note that <a class="el" href="classGlib_1_1ValueBase.html#1659121f15f5e840cc1eba2b0aaefbb1" title="Setup the GValue for storing the specified type.">init()</a> should never be called twice.<p> <a class="el" href="classGlib_1_1ValueBase.html#1659121f15f5e840cc1eba2b0aaefbb1" title="Setup the GValue for storing the specified type.">init()</a> is not implemented as constructor, to avoid the necessity to implement a forward constructor in each derived class.<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>type</em> </td><td>The type that the <a class="el" href="classGlib_1_1Value.html" title="Generic value implementation for custom types.">Value</a> should hold. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="1d31168845e6bb144a66904e813240e2"></a><!-- doxytag: member="Glib::ValueBase::init" ref="1d31168845e6bb144a66904e813240e2" args="(const GValue *value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Glib::ValueBase::init </td> <td>(</td> <td class="paramtype">const GValue * </td> <td class="paramname"> <em>value</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Setup the GValue storing the type and value of the specified <em>value</em>. <p> Note that <a class="el" href="classGlib_1_1ValueBase.html#1659121f15f5e840cc1eba2b0aaefbb1" title="Setup the GValue for storing the specified type.">init()</a> should never be called twice.<p> <a class="el" href="classGlib_1_1ValueBase.html#1659121f15f5e840cc1eba2b0aaefbb1" title="Setup the GValue for storing the specified type.">init()</a> is not implemented as constructor, to avoid the necessity to implement a forward constructor in each derived class.<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>value</em> </td><td>The existing GValue. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="30c7bde0d772b87dc890da7a197c4494"></a><!-- doxytag: member="Glib::ValueBase::reset" ref="30c7bde0d772b87dc890da7a197c4494" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Glib::ValueBase::reset </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Reset contents to the default value of its type. <p> </div> </div><p> <a class="anchor" name="33253264f47c41526ede3f78afdbe1e4"></a><!-- doxytag: member="Glib::ValueBase::gobj" ref="33253264f47c41526ede3f78afdbe1e4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GValue* Glib::ValueBase::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="b8050dbb94b1708d7786d797a4657d2f"></a><!-- doxytag: member="Glib::ValueBase::gobj" ref="b8050dbb94b1708d7786d797a4657d2f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GValue* Glib::ValueBase::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="3472d8f4c0bd6513c939ee3a4633be0f"></a><!-- doxytag: member="Glib::ValueBase::gobject_" ref="3472d8f4c0bd6513c939ee3a4633be0f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GValue <a class="el" href="classGlib_1_1ValueBase.html#3472d8f4c0bd6513c939ee3a4633be0f">Glib::ValueBase::gobject_</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="value_8h.html">value.h</a></ul> </div> <!-- end main content --> <hr><address><small> Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.5.3 © 1997-2001</small></address> </body> </html>