1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
|
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>glibmm: Glib::ValueBase Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">glibmm
 <span id="projectnumber">2.42.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<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>
<li><a href="examples.html"><span>Examples</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="namespaceGlib.html">Glib</a></li><li class="navelem"><a class="el" href="classGlib_1_1ValueBase.html">ValueBase</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="classGlib_1_1ValueBase-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Glib::ValueBase Class Reference<div class="ingroups"><a class="el" href="group__glibmmValue.html">Generic Values</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <glibmm/value.h></code></p>
<div class="dynheader">
Inheritance diagram for Glib::ValueBase:</div>
<div class="dyncontent">
<div class="center"><img src="classGlib_1_1ValueBase__inherit__graph.png" border="0" usemap="#Glib_1_1ValueBase_inherit__map" alt="Inheritance graph"/></div>
<map name="Glib_1_1ValueBase_inherit__map" id="Glib_1_1ValueBase_inherit__map">
<area shape="rect" id="node2" href="classGlib_1_1Value_3_01bool_01_4.html" title="Glib::Value\< bool \>" alt="" coords="192,5,339,32"/><area shape="rect" id="node3" href="classGlib_1_1Value_3_01char_01_4.html" title="Glib::Value\< char \>" alt="" coords="192,56,339,83"/><area shape="rect" id="node4" href="classGlib_1_1Value_3_01double_01_4.html" title="Glib::Value\< double \>" alt="" coords="184,107,347,133"/><area shape="rect" id="node5" href="classGlib_1_1Value_3_01float_01_4.html" title="Glib::Value\< float \>" alt="" coords="192,157,339,184"/><area shape="rect" id="node6" href="classGlib_1_1Value_3_01int_01_4.html" title="Glib::Value\< int \>" alt="" coords="198,208,333,235"/><area shape="rect" id="node7" href="classGlib_1_1Value_3_01long_01_4.html" title="Glib::Value\< long \>" alt="" coords="192,259,339,285"/><area shape="rect" id="node8" href="classGlib_1_1Value_3_01long_01long_01_4.html" title="Glib::Value\< long long \>" alt="" coords="177,309,354,336"/><area shape="rect" id="node9" href="classGlib_1_1Value_3_01unsigned_01char_01_4.html" title="Glib::Value\< unsigned\l char \>" alt="" coords="184,361,347,402"/><area shape="rect" id="node10" href="classGlib_1_1Value_3_01unsigned_01int_01_4.html" title="Glib::Value\< unsigned\l int \>" alt="" coords="184,426,347,467"/><area shape="rect" id="node11" href="classGlib_1_1Value_3_01unsigned_01long_01_4.html" title="Glib::Value\< unsigned\l long \>" alt="" coords="184,491,347,533"/><area shape="rect" id="node12" href="classGlib_1_1Value_3_01unsigned_01long_01long_01_4.html" title="Glib::Value\< unsigned\l long long \>" alt="" coords="184,557,347,598"/><area shape="rect" id="node13" href="classGlib_1_1Value_3_01void_01_5_01_4.html" title="Glib::Value\< void * \>" alt="" coords="187,623,343,649"/><area shape="rect" id="node14" href="classGlib_1_1ValueBase__Boxed.html" title="Glib::ValueBase_Boxed" alt="" coords="181,673,349,700"/><area shape="rect" id="node17" href="classGlib_1_1ValueBase__Enum.html" title="Glib::ValueBase_Enum" alt="" coords="183,724,348,751"/><area shape="rect" id="node19" href="classGlib_1_1ValueBase__Flags.html" title="Glib::ValueBase_Flags" alt="" coords="185,775,346,801"/><area shape="rect" id="node21" href="classGlib_1_1ValueBase__Object.html" title="Glib::ValueBase_Object" alt="" coords="181,932,350,959"/><area shape="rect" id="node29" href="classGlib_1_1ValueBase__String.html" title="Glib::ValueBase_String" alt="" coords="182,1160,349,1187"/><area shape="rect" id="node15" href="classGlib_1_1Value.html" title="Generic value implementation for custom types. " alt="" coords="431,623,558,649"/><area shape="rect" id="node16" href="classGlib_1_1Value__Boxed.html" title="Glib::Value_Boxed\< T \>" alt="" coords="408,673,581,700"/><area shape="rect" id="node18" href="classGlib_1_1Value__Enum.html" title="Base class of Glib::Value<T> specializations for enum types. " alt="" coords="409,724,580,751"/><area shape="rect" id="node20" href="classGlib_1_1Value__Flags.html" title="Base class of Glib::Value<T> specializations for flags types. " alt="" coords="411,775,578,801"/><area shape="rect" id="node22" href="classGlib_1_1Value_3_01Glib_1_1RefPtr_3_01const_01T_01_4_01_4.html" title="Partial specialization for RefPtr<> to const Glib::Object. " alt="" coords="419,826,570,867"/><area shape="rect" id="node23" href="classGlib_1_1Value_3_01Glib_1_1RefPtr_3_01T_01_4_01_4.html" title="Partial specialization for RefPtr<> to Glib::Object. " alt="" coords="427,891,563,933"/><area shape="rect" id="node24" href="classGlib_1_1Value__Pointer.html" title="Glib::Value_Pointer\l\< T, PtrT \>" alt="" coords="424,957,565,998"/><area shape="rect" id="node25" href="classGlib_1_1Value__Pointer.html" title="Glib::Value_Pointer\l\< T, const T * \>" alt="" coords="424,1022,565,1063"/><area shape="rect" id="node27" href="classGlib_1_1Value__Pointer.html" title="Glib::Value_Pointer\l\< T, T * \>" alt="" coords="424,1087,565,1129"/><area shape="rect" id="node26" href="classGlib_1_1Value_3_01const_01T_01_5_01_4.html" title="Specialization for pointers to const instances of any type. " alt="" coords="635,1022,773,1063"/><area shape="rect" id="node28" href="classGlib_1_1Value_3_01T_01_5_01_4.html" title="Specialization for pointers to instances of any type. " alt="" coords="635,1095,773,1121"/><area shape="rect" id="node30" href="classGlib_1_1Value_3_01Glib_1_1ustring_01_4.html" title="Specialization for UTF-8 strings. " alt="" coords="427,1153,563,1194"/><area shape="rect" id="node31" href="classGlib_1_1Value_3_01std_1_1string_01_4.html" title="Specialization for strings. " alt="" coords="403,1219,586,1245"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a066cc345d62be564ff53b25bd11e62e5"><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 class="memdesc:a066cc345d62be564ff53b25bd11e62e5"><td class="mdescLeft"> </td><td class="mdescRight">Initializes the GValue, but without a type. <a href="#a066cc345d62be564ff53b25bd11e62e5">More...</a><br /></td></tr>
<tr class="separator:a066cc345d62be564ff53b25bd11e62e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1af751f0ac927df5ccba7d584cb9e63f"><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 class="separator:a1af751f0ac927df5ccba7d584cb9e63f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a73ceadee7e4d2298b31d1dbe4bcd35e5"><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 class="separator:a73ceadee7e4d2298b31d1dbe4bcd35e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afc9306c3f8331458eaa66de6d352bf01"><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 class="separator:afc9306c3f8331458eaa66de6d352bf01"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1659121f15f5e840cc1eba2b0aaefbb1"><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 class="memdesc:a1659121f15f5e840cc1eba2b0aaefbb1"><td class="mdescLeft"> </td><td class="mdescRight">Setup the GValue for storing the specified <em>type</em>. <a href="#a1659121f15f5e840cc1eba2b0aaefbb1">More...</a><br /></td></tr>
<tr class="separator:a1659121f15f5e840cc1eba2b0aaefbb1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1d31168845e6bb144a66904e813240e2"><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* value)</td></tr>
<tr class="memdesc:a1d31168845e6bb144a66904e813240e2"><td class="mdescLeft"> </td><td class="mdescRight">Setup the GValue storing the type and value of the specified <em>value</em>. <a href="#a1d31168845e6bb144a66904e813240e2">More...</a><br /></td></tr>
<tr class="separator:a1d31168845e6bb144a66904e813240e2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30c7bde0d772b87dc890da7a197c4494"><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 class="memdesc:a30c7bde0d772b87dc890da7a197c4494"><td class="mdescLeft"> </td><td class="mdescRight">Reset contents to the default value of its type. <a href="#a30c7bde0d772b87dc890da7a197c4494">More...</a><br /></td></tr>
<tr class="separator:a30c7bde0d772b87dc890da7a197c4494"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a33253264f47c41526ede3f78afdbe1e4"><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 class="separator:a33253264f47c41526ede3f78afdbe1e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab8050dbb94b1708d7786d797a4657d2f"><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 class="separator:ab8050dbb94b1708d7786d797a4657d2f"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a3472d8f4c0bd6513c939ee3a4633be0f"><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>
<tr class="separator:a3472d8f4c0bd6513c939ee3a4633be0f"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="a066cc345d62be564ff53b25bd11e62e5"></a>
<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 <a class="elRef" doxygen="/opt/gnome/share/mm-common/doctags/libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01616.html#a9dc2432a50c69a8c7a2b46b99baec08f">set()</a>, 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>
<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>
<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>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a33253264f47c41526ede3f78afdbe1e4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">GValue* Glib::ValueBase::gobj </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab8050dbb94b1708d7786d797a4657d2f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const GValue* Glib::ValueBase::gobj </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a1659121f15f5e840cc1eba2b0aaefbb1"></a>
<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 class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">type</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="a1d31168845e6bb144a66904e813240e2"></a>
<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 class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>The existing GValue. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a73ceadee7e4d2298b31d1dbe4bcd35e5"></a>
<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>
<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>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a3472d8f4c0bd6513c939ee3a4633be0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">GValue Glib::ValueBase::gobject_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Sep 22 2014 21:38:33 for glibmm by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>
|