1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>ElementRef</title> 7 <link rel="stylesheet" href="apiReference.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> 10 <link rel="up" href="ElementRef.html" title="Chapter��24.�� ElementRef" /> 11 <link rel="prev" href="ElementRef.html" title="Chapter��24.�� ElementRef" /> 12 <link rel="next" href="stlElementRefoperator_assign.html" title="operator=" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center"> 19ElementRef 20</th> 21 </tr> 22 <tr> 23 <td width="20%" align="left"><a accesskey="p" href="ElementRef.html">Prev</a>��</td> 24 <th width="60%" align="center">Chapter��24.�� 25 ElementRef </th> 26 <td width="20%" align="right">��<a accesskey="n" href="stlElementRefoperator_assign.html">Next</a></td> 27 </tr> 28 </table> 29 <hr /> 30 </div> 31 <div class="sect1" lang="en" xml:lang="en"> 32 <div class="titlepage"> 33 <div> 34 <div> 35 <h2 class="title" style="clear: both"><a id="stlElementRefElementRef"></a> 36ElementRef 37</h2> 38 </div> 39 </div> 40 </div> 41 <div class="sect2" lang="en" xml:lang="en"> 42 <div class="titlepage"> 43 <div> 44 <div> 45 <h3 class="title"><a id="func_details"></a> 46Function Details</h3> 47 </div> 48 </div> 49 </div> 50 <pre class="programlisting"> 51ElementRef(iterator_type��*pitr=NULL) 52 </pre> 53 <div class="sect3" lang="en" xml:lang="en"> 54 <div class="titlepage"></div> 55 <p>Constructor. </p> 56 <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> 57 </div> 58 <div class="sect3" lang="en" xml:lang="en"> 59 <div class="titlepage"> 60 <div> 61 <div> 62 <h4 class="title"><a id="id1570434"></a> 63Parameters</h4> 64 </div> 65 </div> 66 </div> 67 <div class="sect4" lang="en" xml:lang="en"> 68 <div class="titlepage"> 69 <div> 70 <div> 71 <h5 class="title"><a id="id1570357"></a> 72 pitr </h5> 73 </div> 74 </div> 75 </div> 76 <p>The iterator owning this object. </p> 77 </div> 78 </div> 79 <pre class="programlisting"> 80ElementRef(const��ddt��&dt) 81 </pre> 82 <div class="sect3" lang="en" xml:lang="en"> 83 <div class="titlepage"></div> 84 <p>Constructor. </p> 85 <p>Initializes an <a class="link" href="ElementRef.html" title="Chapter��24.�� ElementRef">ElementRef</a> 86 wrapper without an iterator. It can only be used to wrap a data element in memory, it can't access an unerlying database. </p> 87 </div> 88 <div class="sect3" lang="en" xml:lang="en"> 89 <div class="titlepage"> 90 <div> 91 <div> 92 <h4 class="title"><a id="id1570035"></a> 93Parameters</h4> 94 </div> 95 </div> 96 </div> 97 <div class="sect4" lang="en" xml:lang="en"> 98 <div class="titlepage"> 99 <div> 100 <div> 101 <h5 class="title"><a id="id1570221"></a> 102 dt </h5> 103 </div> 104 </div> 105 </div> 106 <p>The base class object to initialize this object. </p> 107 </div> 108 </div> 109 <pre class="programlisting"> 110ElementRef(const��self��&other) 111 </pre> 112 <div class="sect3" lang="en" xml:lang="en"> 113 <div class="titlepage"></div> 114 <p>Copy constructor. </p> 115 <p>The constructor takes a "deep" copy. The created object will be identical to, but independent from the original object. </p> 116 </div> 117 <div class="sect3" lang="en" xml:lang="en"> 118 <div class="titlepage"> 119 <div> 120 <div> 121 <h4 class="title"><a id="id1570464"></a> 122Parameters</h4> 123 </div> 124 </div> 125 </div> 126 <div class="sect4" lang="en" xml:lang="en"> 127 <div class="titlepage"> 128 <div> 129 <div> 130 <h5 class="title"><a id="id1570529"></a> 131 other </h5> 132 </div> 133 </div> 134 </div> 135 <p>The object to clone from. </p> 136 </div> 137 </div> 138 </div> 139 <div class="sect2" lang="en" xml:lang="en"> 140 <div class="titlepage"> 141 <div> 142 <div> 143 <h3 class="title"><a id="id1570540"></a> 144Class</h3> 145 </div> 146 </div> 147 </div> 148 <p> 149 <a class="link" href="ElementRef.html" title="Chapter��24.�� ElementRef"> 150 ElementRef</a> 151 </p> 152 </div> 153 </div> 154 <div class="navfooter"> 155 <hr /> 156 <table width="100%" summary="Navigation footer"> 157 <tr> 158 <td width="40%" align="left"><a accesskey="p" href="ElementRef.html">Prev</a>��</td> 159 <td width="20%" align="center"> 160 <a accesskey="u" href="ElementRef.html">Up</a> 161 </td> 162 <td width="40%" align="right">��<a accesskey="n" href="stlElementRefoperator_assign.html">Next</a></td> 163 </tr> 164 <tr> 165 <td width="40%" align="left" valign="top">Chapter��24.�� 166 ElementRef ��</td> 167 <td width="20%" align="center"> 168 <a accesskey="h" href="index.html">Home</a> 169 </td> 170 <td width="40%" align="right" valign="top">�� 171operator= 172</td> 173 </tr> 174 </table> 175 </div> 176 </body> 177</html> 178