File: structmysqlpp_1_1RefCountedPointerDestroyer.html

package info (click to toggle)
mysql%2B%2B 3.0.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 10,328 kB
  • ctags: 9,487
  • sloc: cpp: 33,486; sh: 3,091; perl: 809; makefile: 683
file content (52 lines) | stat: -rw-r--r-- 3,185 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>MySQL++ Reference Manual</title>
	<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1">
	<link href="doxygen.css" rel="stylesheet" type="text/css">
	<link href="refman.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<b>mysqlpp</b>::<a class="el" href="structmysqlpp_1_1RefCountedPointerDestroyer.html">RefCountedPointerDestroyer</a></div>
<h1>mysqlpp::RefCountedPointerDestroyer&lt; T &gt; Struct Template Reference</h1><!-- doxytag: class="mysqlpp::RefCountedPointerDestroyer" -->Functor to call delete on the pointer you pass to it.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="refcounted_8h-source.html">refcounted.h</a>&gt;</code>
<p>
<a href="structmysqlpp_1_1RefCountedPointerDestroyer-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6009c03320583a0f3c89a8819b15e0a4"></a><!-- doxytag: member="mysqlpp::RefCountedPointerDestroyer::operator()" ref="6009c03320583a0f3c89a8819b15e0a4" args="(T *doomed) const " -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmysqlpp_1_1RefCountedPointerDestroyer.html#6009c03320583a0f3c89a8819b15e0a4">operator()</a> (T *doomed) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Functor implementation. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class T&gt;<br>
 struct mysqlpp::RefCountedPointerDestroyer&lt; T &gt;</h3>

Functor to call delete on the pointer you pass to it. 
<p>
The default "destroyer" for <a class="el" href="classmysqlpp_1_1RefCountedPointer.html">RefCountedPointer</a>. You won't use this directly, you'll pass a functor of your own devising for the second parameter to the <a class="el" href="classmysqlpp_1_1RefCountedPointer.html">RefCountedPointer</a> template to override this. Or simpler, just specialize this template for your type if possible: see ResUse::result_. 
<p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="refcounted_8h-source.html">refcounted.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 16:26:46 2008 for MySQL++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>