1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48 <title>nw::ut::MovePtr</title> 49 </head> 50 <body> 51 <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/ut/Overview.html">ut</a>::MovePtr</CODE> Class</h1> 52 <h2>Syntax</h2> 53 <div class="section"> 54 <pre class="definition">template <typename TObject, typename TDeleter> 55class MovePtr</pre> 56 </div> 57 <h2>Template Arguments</h2> 58 <div class="section"> 59 <table class="arguments"> 60 <thead> 61 <tr> 62 <th>Name</th> 63 <td>Description</td> 64 </tr> 65 </thead> 66 <tr> 67 <th><CODE>TObject</CODE></th> 68 <td>Object type.</td> 69 </tr> 70 <tr> 71 <th>TDeleter</th> 72 <td>The deleter type.</td> 73 </tr> </table> 74 </div> 75 <h2>Description</h2> 76 <div class="section"> 77 <p>Smart pointer with movable ownership.</p><p>This is auto_ptr extended so that ownership can be moved. This function can specify any deleter.</p></div> 78 <a name="typedef" id="typedef"> 79 <h2><CODE>typedef</CODE> Definitions</h2> 80 <div class="section"> 81 <table class="members"> 82 <tr> 83 <td width="100" /> 84 <th> 85 <a href="../../../nw/ut/MovePtr/element_type.html"><CODE>element_type</CODE></a> 86 </th> 87 <td>The type of this class's elements.</td> 88 </tr> 89 <tr> 90 <td width="100" /> 91 <th> 92 <a href="../../../nw/ut/MovePtr/deleter_type.html"><CODE>deleter_type</CODE></a> 93 </th> 94 <td>Deleter type for deleting objects.</td> 95 </tr> 96 <tr> 97 <td width="100" /> 98 <th> 99 <a href="../../../nw/ut/MovePtr/deleter_reference.html"><CODE>deleter_reference</CODE></a> 100 </th> 101 <td>Deleter reference for deleting objects.</td> 102 </tr> 103 <tr> 104 <td width="100" /> 105 <th> 106 <a href="../../../nw/ut/MovePtr/deleter_const_reference.html"><CODE>deleter_const_reference</CODE></a> 107 </th> 108 <td>Deleter const reference for deleting objects.</td> 109 </tr> </table> 110 </div> 111 </a> <a name="function" id="function"> 112 <h2>Member Functions</h2> 113 <div class="section"> 114 <table class="members"> 115 <tr> 116 <td width="100"> </td> 117 <th> 118 <a href="../../../nw/ut/MovePtr/MovePtr.html">MovePtr</a> 119 </th> 120 <td>Constructor.</td> 121 </tr> 122 <tr> 123 <td width="100"> </td> 124 <th> 125 <a href="../../../nw/ut/MovePtr/~MovePtr.html">~MovePtr</a> 126 </th> 127 <td>Destructor.</td> 128 </tr> 129 <tr> 130 <td width="100"> </td> 131 <th> 132 <a href="../../../nw/ut/MovePtr/operator=.html"><CODE>operator=</CODE></a> 133 </th> 134 <td>Assigns a <a href="../../../nw/ut/MovePtr/Overview.html">MovePtr</a>.</td> 135 </tr> 136 <tr> 137 <td width="100"> </td> 138 <th> 139 <a href="../../../nw/ut/MovePtr/Get.html"><CODE>Get</CODE></a> 140 </th> 141 <td>Gets the pointer to a stored object.</td> 142 </tr> 143 <tr> 144 <td width="100"> </td> 145 <th> 146 <a href="../../../nw/ut/MovePtr/operator-2a.html">operator *</a> 147 </th> 148 <td>Gets the reference to a stored object.</td> 149 </tr> 150 <tr> 151 <td width="100"> </td> 152 <th> 153 <a href="../../../nw/ut/MovePtr/operator-2d-3e.html"><CODE>operator-></CODE></a> 154 </th> 155 <td>Manipulates stored objects.</td> 156 </tr> 157 <tr> 158 <td width="100"> </td> 159 <th> 160 <a href="../../../nw/ut/MovePtr/operator[].html"><CODE>operator[]</CODE></a> 161 </th> 162 <td>Gets the reference to the an array element stored in the specified index.</td> 163 </tr> 164 <tr> 165 <td width="100"> </td> 166 <th> 167 <a href="../../../nw/ut/MovePtr/Release.html"><CODE>Release</CODE></a> 168 </th> 169 <td>Destroys management of a stored object.</td> 170 </tr> 171 <tr> 172 <td width="100"> </td> 173 <th> 174 <a href="../../../nw/ut/MovePtr/Reset.html"><CODE>Reset</CODE></a> 175 </th> 176 <td>Deletes stored objects and resets status.</td> 177 </tr> 178 <tr> 179 <td width="100"> </td> 180 <th> 181 <a href="../../../nw/ut/MovePtr/operator SafeBool.html"><CODE>operator SafeBool</CODE></a> 182 </th> 183 <td>Checks ownership of an object.</td> 184 </tr> 185 <tr> 186 <td width="100"> </td> 187 <th> 188 <a href="../../../nw/ut/MovePtr/Swap.html"><CODE>Swap</CODE></a> 189 </th> 190 <td>Swaps <a href="../../../nw/ut/MovePtr/Overview.html">MovePtr</a>.</td> 191 </tr> 192 <tr> 193 <td width="100"> </td> 194 <th> 195 <a href="../../../nw/ut/MovePtr/GetDeleter.html"><CODE>GetDeleter</CODE></a> 196 </th> 197 <td>Gets a deleter.</td> 198 </tr> </table> 199 </div> 200 </a> 201 <hr><p>CONFIDENTIAL</p></body> 202</html> 203