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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>scim: scim::MethodSlot1< T, R, P1 > Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="classes.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="classes.html"><span>Alphabetical List</span></a></li>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="a00157.html">scim</a>::<a class="el" href="a00057.html">MethodSlot1</a></div>
<h1>scim::MethodSlot1< T, R, P1 > Class Template Reference<br>
<small>
[<a class="el" href="a00159.html">SignalSlot</a>, <a class="el" href="a00159.html">SignalSlot</a>]</small>
</h1><!-- doxytag: class="scim::MethodSlot1" --><!-- doxytag: inherits="scim::Slot1" -->A slot template for methods in a class of type T taking one argument of type P1 and returning a value of type R.
<a href="#_details">More...</a>
<p>
<code>#include <scim_slot.h></code>
<p>
Inheritance diagram for scim::MethodSlot1< T, R, P1 >:<p><center><img src="a00541.png" border="0" usemap="#a00542" alt="Inheritance graph"></center>
<map name="a00542">
<area href="a00097.html" shape="rect" coords="37,157,192,181" alt="">
<area href="a00095.html" shape="rect" coords="71,83,159,107" alt="">
<area href="a00072.html" shape="rect" coords="29,8,200,32" alt="">
</map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for scim::MethodSlot1< T, R, P1 >:<p><center><img src="a00543.png" border="0" usemap="#a00544" alt="Collaboration graph"></center>
<map name="a00544">
<area href="a00097.html" shape="rect" coords="15,163,169,187" alt="">
<area href="a00095.html" shape="rect" coords="48,85,136,109" alt="">
<area href="a00072.html" shape="rect" coords="7,8,177,32" alt="">
</map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="a00545.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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00057.html#b86eb42f7ef8e348185690f796b37f0f">MethodSlot1</a> (T *object, PMF function)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual R </td><td class="memItemRight" valign="bottom"><a class="el" href="a00057.html#564ece0a8da47d259b5cbbb3b95276fc">call</a> (P1 p1) const</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<typename T, typename R, typename P1><br>
class scim::MethodSlot1< T, R, P1 ></h3>
A slot template for methods in a class of type T taking one argument of type P1 and returning a value of type R.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="b86eb42f7ef8e348185690f796b37f0f"></a><!-- doxytag: member="scim::MethodSlot1::MethodSlot1" ref="b86eb42f7ef8e348185690f796b37f0f" args="(T *object, PMF function)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T, typename R, typename P1> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00057.html">scim::MethodSlot1</a>< T, R, P1 >::<a class="el" href="a00057.html">MethodSlot1</a> </td>
<td>(</td>
<td class="paramtype">T * </td>
<td class="paramname"> <em>object</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">PMF </td>
<td class="paramname"> <em>function</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Construct a new method slot for a class member function. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>- a pointer to an object of type T. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>function</em> </td><td>- a class method with the signature R (T::*PMF)(P1). </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="564ece0a8da47d259b5cbbb3b95276fc"></a><!-- doxytag: member="scim::MethodSlot1::call" ref="564ece0a8da47d259b5cbbb3b95276fc" args="(P1 p1) const" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T, typename R, typename P1> </div>
<table class="memname">
<tr>
<td class="memname">virtual R <a class="el" href="a00057.html">scim::MethodSlot1</a>< T, R, P1 >::call </td>
<td>(</td>
<td class="paramtype">P1 </td>
<td class="paramname"> <em>p1</em> </td>
<td> ) </td>
<td width="100%"> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Calls the class method connected to this slot passing it argument p1. <dl class="return" compact><dt><b>Returns:</b></dt><dd>a value of type R returned by the called method. </dd></dl>
<p>
Implements <a class="el" href="a00097.html#e9f21ec35607cc9f76b5fc2a3c0e0a09">scim::Slot1< R, P1 ></a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00150.html">scim_slot.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Jun 28 14:12:45 2007 for scim by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body>
</html>
|