<!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::ValueBase 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 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> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceGlib.html">Glib</a>::<a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a> </div> </div> <div class="contents"> <h1>Glib::ValueBase Class Reference<br/> <small> [<a class="el" href="group__glibmmValue.html">Generic Values</a>]</small> </h1><!-- doxytag: class="Glib::ValueBase" --> <p>Inherited by <a class="el" href="classGlib_1_1Value_3_01bool_01_4.html">Glib::Value< bool ></a>, <a class="el" href="classGlib_1_1Value_3_01char_01_4.html">Glib::Value< char ></a>, <a class="el" href="classGlib_1_1Value_3_01double_01_4.html">Glib::Value< double ></a>, <a class="el" href="classGlib_1_1Value_3_01float_01_4.html">Glib::Value< float ></a>, <a class="el" href="classGlib_1_1Value_3_01int_01_4.html">Glib::Value< int ></a>, <a class="el" href="classGlib_1_1Value_3_01long_01_4.html">Glib::Value< long ></a>, <a class="el" href="classGlib_1_1Value_3_01long_01long_01_4.html">Glib::Value< long long ></a>, <a class="el" href="classGlib_1_1Value_3_01unsigned_01char_01_4.html">Glib::Value< unsigned char ></a>, <a class="el" href="classGlib_1_1Value_3_01unsigned_01int_01_4.html">Glib::Value< unsigned int ></a>, <a class="el" href="classGlib_1_1Value_3_01unsigned_01long_01_4.html">Glib::Value< unsigned long ></a>, <a class="el" href="classGlib_1_1Value_3_01unsigned_01long_01long_01_4.html">Glib::Value< unsigned long long ></a>, <a class="el" href="classGlib_1_1Value_3_01void_01_5_01_4.html">Glib::Value< void* ></a>, <a class="el" href="classGlib_1_1ValueBase__Boxed.html">Glib::ValueBase_Boxed</a>, <a class="el" href="classGlib_1_1ValueBase__Enum.html">Glib::ValueBase_Enum</a>, <a class="el" href="classGlib_1_1ValueBase__Flags.html">Glib::ValueBase_Flags</a>, <a class="el" href="classGlib_1_1ValueBase__Object.html">Glib::ValueBase_Object</a>, and <a class="el" href="classGlib_1_1ValueBase__String.html">Glib::ValueBase_String</a>.</p> <p><a href="classGlib_1_1ValueBase-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#a066cc345d62be564ff53b25bd11e62e5">ValueBase</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes the GValue, but without a type. <a href="#a066cc345d62be564ff53b25bd11e62e5"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#a1af751f0ac927df5ccba7d584cb9e63f">ValueBase</a> (const <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& other)</td></tr> <tr><td class="memItemLeft" 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#a73ceadee7e4d2298b31d1dbe4bcd35e5">operator=</a> (const <a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a>& other)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#afc9306c3f8331458eaa66de6d352bf01">~ValueBase</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#a1659121f15f5e840cc1eba2b0aaefbb1">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="#a1659121f15f5e840cc1eba2b0aaefbb1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#a1d31168845e6bb144a66904e813240e2">init</a> (const GValue*<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01009.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</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="#a1d31168845e6bb144a66904e813240e2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#a30c7bde0d772b87dc890da7a197c4494">reset</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Reset contents to the default value of its type. <a href="#a30c7bde0d772b87dc890da7a197c4494"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GValue* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#a33253264f47c41526ede3f78afdbe1e4">gobj</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GValue* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#ab8050dbb94b1708d7786d797a4657d2f">gobj</a> () const </td></tr> <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GValue </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ValueBase.html#a3472d8f4c0bd6513c939ee3a4633be0f">gobject_</a></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a066cc345d62be564ff53b25bd11e62e5"></a><!-- doxytag: member="Glib::ValueBase::ValueBase" ref="a066cc345d62be564ff53b25bd11e62e5" 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></td> </tr> </table> </div> <div class="memdoc"> <p>Initializes the GValue, but without a type. </p> <p>You have to call <a class="el" href="classGlib_1_1ValueBase.html#a1659121f15f5e840cc1eba2b0aaefbb1" 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#a30c7bde0d772b87dc890da7a197c4494" title="Reset contents to the default value of its type.">reset()</a> methods. </p> </div> </div> <a class="anchor" id="a1af751f0ac927df5ccba7d584cb9e63f"></a><!-- doxytag: member="Glib::ValueBase::ValueBase" ref="a1af751f0ac927df5ccba7d584cb9e63f" 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></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="afc9306c3f8331458eaa66de6d352bf01"></a><!-- doxytag: member="Glib::ValueBase::~ValueBase" ref="afc9306c3f8331458eaa66de6d352bf01" 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></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ab8050dbb94b1708d7786d797a4657d2f"></a><!-- doxytag: member="Glib::ValueBase::gobj" ref="ab8050dbb94b1708d7786d797a4657d2f" 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> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a33253264f47c41526ede3f78afdbe1e4"></a><!-- doxytag: member="Glib::ValueBase::gobj" ref="a33253264f47c41526ede3f78afdbe1e4" 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><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a1d31168845e6bb144a66904e813240e2"></a><!-- doxytag: member="Glib::ValueBase::init" ref="a1d31168845e6bb144a66904e813240e2" 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></td> </tr> </table> </div> <div class="memdoc"> <p>Setup the GValue storing the type and value of the specified <em>value</em>. </p> <p>Note that <a class="el" href="classGlib_1_1ValueBase.html#a1659121f15f5e840cc1eba2b0aaefbb1" title="Setup the GValue for storing the specified type.">init()</a> should never be called twice.</p> <p><a class="el" href="classGlib_1_1ValueBase.html#a1659121f15f5e840cc1eba2b0aaefbb1" 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><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> </dd> </dl> </div> </div> <a class="anchor" id="a1659121f15f5e840cc1eba2b0aaefbb1"></a><!-- doxytag: member="Glib::ValueBase::init" ref="a1659121f15f5e840cc1eba2b0aaefbb1" 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></td> </tr> </table> </div> <div class="memdoc"> <p>Setup the GValue for storing the specified <em>type</em>. </p> <p>The contents will be initialized to the default value for this type. Note that <a class="el" href="classGlib_1_1ValueBase.html#a1659121f15f5e840cc1eba2b0aaefbb1" title="Setup the GValue for storing the specified type.">init()</a> should never be called twice.</p> <p><a class="el" href="classGlib_1_1ValueBase.html#a1659121f15f5e840cc1eba2b0aaefbb1" 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><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> </dd> </dl> </div> </div> <a class="anchor" id="a73ceadee7e4d2298b31d1dbe4bcd35e5"></a><!-- doxytag: member="Glib::ValueBase::operator=" ref="a73ceadee7e4d2298b31d1dbe4bcd35e5" 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></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a30c7bde0d772b87dc890da7a197c4494"></a><!-- doxytag: member="Glib::ValueBase::reset" ref="a30c7bde0d772b87dc890da7a197c4494" 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></td> </tr> </table> </div> <div class="memdoc"> <p>Reset contents to the default value of its type. </p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a3472d8f4c0bd6513c939ee3a4633be0f"></a><!-- doxytag: member="Glib::ValueBase::gobject_" ref="a3472d8f4c0bd6513c939ee3a4633be0f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GValue <a class="el" href="classGlib_1_1ValueBase.html#a3472d8f4c0bd6513c939ee3a4633be0f">Glib::ValueBase::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/value.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 11:07:27 2009 for glibmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>