| 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 xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">ElementRef</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="ElementRef.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 24. |
| 26 | ElementRef </th> |
| 27 | <td width="20%" align="right"> <a accesskey="n" href="stlElementRefoperator_assign.html">Next</a></td> |
| 28 | </tr> |
| 29 | </table> |
| 30 | <hr /> |
| 31 | </div> |
| 32 | <div class="sect1" lang="en" xml:lang="en"> |
| 33 | <div class="titlepage"> |
| 34 | <div> |
| 35 | <div> |
| 36 | <h2 class="title" style="clear: both"><a id="stlElementRefElementRef"></a>ElementRef</h2> |
| 37 | </div> |
| 38 | </div> |
| 39 | </div> |
| 40 | <div class="sect2" lang="en" xml:lang="en"> |
| 41 | <div class="titlepage"> |
| 42 | <div> |
| 43 | <div> |
| 44 | <h3 class="title"><a id="stlElementRefElementRef_details"></a>Function Details</h3> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | <pre class="programlisting"> |
| 49 | ElementRef(iterator_type *pitr=NULL) |
| 50 | </pre> |
| 51 | <p>Constructor. </p> |
| 52 | <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> |
| 53 | <div class="sect3" lang="en" xml:lang="en"> |
| 54 | <div class="titlepage"> |
| 55 | <div> |
| 56 | <div> |
| 57 | <h4 class="title"><a id="idp51568064"></a>Parameters</h4> |
| 58 | </div> |
| 59 | </div> |
| 60 | </div> |
| 61 | <div class="sect4" lang="en" xml:lang="en"> |
| 62 | <div class="titlepage"> |
| 63 | <div> |
| 64 | <div> |
| 65 | <h5 class="title"><a id="idp51569816"></a>pitr</h5> |
| 66 | </div> |
| 67 | </div> |
| 68 | </div> |
| 69 | <p>The iterator owning this object. </p> |
| 70 | </div> |
| 71 | </div> |
| 72 | <pre class="programlisting"> |
| 73 | ElementRef(const ddt &dt) |
| 74 | </pre> |
| 75 | <p>Constructor. </p> |
| 76 | <p>Initializes an <a class="link" href="ElementRef.html" title="Chapter 24. ElementRef">ElementRef</a> |
| 77 | wrapper without an iterator. It can only be used to wrap a data element in memory, it can't access an unerlying database. </p> |
| 78 | <div class="sect3" lang="en" xml:lang="en"> |
| 79 | <div class="titlepage"> |
| 80 | <div> |
| 81 | <div> |
| 82 | <h4 class="title"><a id="idp51572088"></a>Parameters</h4> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |
| 86 | <div class="sect4" lang="en" xml:lang="en"> |
| 87 | <div class="titlepage"> |
| 88 | <div> |
| 89 | <div> |
| 90 | <h5 class="title"><a id="idp51572280"></a>dt</h5> |
| 91 | </div> |
| 92 | </div> |
| 93 | </div> |
| 94 | <p>The base class object to initialize this object. </p> |
| 95 | </div> |
| 96 | </div> |
| 97 | <pre class="programlisting"> |
| 98 | ElementRef(const self &other) |
| 99 | </pre> |
| 100 | <p>Copy constructor. </p> |
| 101 | <p>The constructor takes a "deep" copy. The created object will be identical to, but independent from the original object. </p> |
| 102 | <div class="sect3" lang="en" xml:lang="en"> |
| 103 | <div class="titlepage"> |
| 104 | <div> |
| 105 | <div> |
| 106 | <h4 class="title"><a id="idp51545928"></a>Parameters</h4> |
| 107 | </div> |
| 108 | </div> |
| 109 | </div> |
| 110 | <div class="sect4" lang="en" xml:lang="en"> |
| 111 | <div class="titlepage"> |
| 112 | <div> |
| 113 | <div> |
| 114 | <h5 class="title"><a id="idp51573376"></a>other</h5> |
| 115 | </div> |
| 116 | </div> |
| 117 | </div> |
| 118 | <p>The object to clone from. </p> |
| 119 | </div> |
| 120 | </div> |
| 121 | </div> |
| 122 | <div class="sect2" lang="en" xml:lang="en"> |
| 123 | <div class="titlepage"> |
| 124 | <div> |
| 125 | <div> |
| 126 | <h3 class="title"><a id="idp51555816"></a>Class</h3> |
| 127 | </div> |
| 128 | </div> |
| 129 | </div> |
| 130 | <p> |
| 131 | <a class="link" href="ElementRef.html" title="Chapter 24. ElementRef">ElementRef</a> |
| 132 | </p> |
| 133 | </div> |
| 134 | </div> |
| 135 | <div class="navfooter"> |
| 136 | <hr /> |
| 137 | <table width="100%" summary="Navigation footer"> |
| 138 | <tr> |
| 139 | <td width="40%" align="left"><a accesskey="p" href="ElementRef.html">Prev</a> </td> |
| 140 | <td width="20%" align="center"> |
| 141 | <a accesskey="u" href="ElementRef.html">Up</a> |
| 142 | </td> |
| 143 | <td width="40%" align="right"> <a accesskey="n" href="stlElementRefoperator_assign.html">Next</a></td> |
| 144 | </tr> |
| 145 | <tr> |
| 146 | <td width="40%" align="left" valign="top">Chapter 24. |
| 147 | ElementRef </td> |
| 148 | <td width="20%" align="center"> |
| 149 | <a accesskey="h" href="index.html">Home</a> |
| 150 | </td> |
| 151 | <td width="40%" align="right" valign="top"> operator=</td> |
| 152 | </tr> |
| 153 | </table> |
| 154 | </div> |
| 155 | </body> |
| 156 | </html> |