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 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!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/html; charset=UTF-8" />
<title>Chapter 23. ElementHolder</title>
<link rel="stylesheet" href="apiReference.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
<link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" />
<link rel="up" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" />
<link rel="prev" href="Element_wrappers.html" title="Chapter 22. ElementRef and ElementHolder Wappers" />
<link rel="next" href="stlElementHolderdstr_ElementHolder.html" title="~ElementHolder" />
</head>
<body>
<div xmlns="" class="navheader">
<div class="libver">
<p>Library Version 11.2.5.3</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Chapter 23. ElementHolder </th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="Element_wrappers.html">Prev</a> </td>
<th width="60%" align="center"> </th>
<td width="20%" align="right"> <a accesskey="n" href="stlElementHolderdstr_ElementHolder.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a id="ElementHolder"></a>Chapter 23. ElementHolder </h2>
</div>
</div>
</div>
<p>A wrapper class for primitive types. </p>
<p>It has identical usage and public interface to the <a class="link" href="ElementRef.html" title="Chapter 24. ElementRef">ElementRef</a>
class. </p>
<h4><a id="idp51437880"></a>
See Also
</h4>
<p> </p>
<p><a class="link" href="ElementRef.html" title="Chapter 24. ElementRef">ElementRef</a>
. </p>
<p>
</p>
<h4><a id="idp51452096"></a> Public Members </h4>
<div class="informaltable">
<table border="1" width="80%">
<colgroup>
<col />
<col />
</colgroup>
<thead>
<tr>
<th>Member</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a class="xref" href="ElementHolder.html#stlElementHolderElementHolder" title="ElementHolder">ElementHolder</a>
</td>
<td>
<p>Constructor. </p>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderdstr_ElementHolder.html" title="~ElementHolder">~ElementHolder</a>
</td>
<td>
<p>Destructor. </p>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_ia.html" title="operator+=">operator+=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_sa.html" title="operator-=">operator-=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator__ma.html" title="operator *=">operator *=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_da.html" title="operator/=">operator/=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_modasg.html" title="operator%=">operator%=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator__aa.html" title="operator &=">operator &=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_oa.html" title="operator|=">operator|=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_xa.html" title="operator^=">operator^=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_gt_ge.html" title="operator>>=">operator>>=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_lt_le.html" title="operator<<=">operator<<=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_incr.html" title="operator++">operator++</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_decr.html" title="operator--">operator--</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_assign.html" title="operator=">operator=</a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolderoperator_ptype.html" title="operator ptype">operator ptype</a>
</td>
<td>
<p>This operator is a type converter. </p>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolder_DB_STL_value.html" title="_DB_STL_value">_DB_STL_value</a>
</td>
<td>
<p>Returns the data element this wrapper object wraps;. </p>
</td>
</tr>
<tr>
<td>
<a class="xref" href="stlElementHolder_DB_STL_StoreElement.html" title="_DB_STL_StoreElement">_DB_STL_StoreElement</a>
</td>
<td>
<p>Function to store the data element. </p>
</td>
</tr>
</tbody>
</table>
</div>
<h4><a id="idp51357544"></a>
Group</h4>
<p>
<a class="xref" href="Element_wrappers.html" title="Chapter 22. ElementRef and ElementHolder Wappers">
ElementRef and ElementHolder Wappers </a>
</p>
<p>
</p>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="stlElementHolderElementHolder"></a>ElementHolder</h2>
</div>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="stlElementHolderElementHolder_details"></a>Function Details</h3>
</div>
</div>
</div>
<pre class="programlisting">
ElementHolder(iterator_type *pitr=NULL)
</pre>
<p>Constructor. </p>
<p>If the pitr parameter is NULL or the default value is used, the object created is a simple wrapper and not connected to a container. If a valid iterator parameter is passed in, the wrapped element will be associated with the matching key/data pair in the underlying container. </p>
<div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="idp51417248"></a>Parameters</h4>
</div>
</div>
</div>
<div class="sect4" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h5 class="title"><a id="idp51479864"></a>pitr</h5>
</div>
</div>
</div>
<p>The iterator owning this object. </p>
</div>
</div>
<pre class="programlisting">
ElementHolder(const ptype &dt)
</pre>
<p>Constructor. </p>
<p>Initializes an <a class="link" href="ElementRef.html" title="Chapter 24. ElementRef">ElementRef</a>
wrapper without an iterator. It can only be used to wrap a data element in memory, it can't access an unerlying database. </p>
<div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="idp51482136"></a>Parameters</h4>
</div>
</div>
</div>
<div class="sect4" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h5 class="title"><a id="idp51482328"></a>dt</h5>
</div>
</div>
</div>
<p>The base class object to initialize this object. </p>
</div>
</div>
<pre class="programlisting">
ElementHolder(const self &other)
</pre>
<p>Copy constructor. </p>
<p>The constructor takes a "deep" copy. The created object will be identical to, but independent from the original object. </p>
<div class="sect3" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="idp51483296"></a>Parameters</h4>
</div>
</div>
</div>
<div class="sect4" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h5 class="title"><a id="idp51483488"></a>other</h5>
</div>
</div>
</div>
<p>The object to clone from. </p>
</div>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idp51449696"></a>Class</h3>
</div>
</div>
</div>
<p>
<a class="link" href="ElementHolder.html" title="Chapter 23. ElementHolder">
ElementHolder</a>
</p>
</div>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="Element_wrappers.html">Prev</a> </td>
<td width="20%" align="center"> </td>
<td width="40%" align="right"> <a accesskey="n" href="stlElementHolderdstr_ElementHolder.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Chapter 22.
ElementRef and ElementHolder Wappers </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> ~ElementHolder</td>
</tr>
</table>
</div>
</body>
</html>
|