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    <title>CreateAndConnect</title>
8  </head>
9  <body>
10    <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/ut/Overview.html">ut</a>::<a href="../../../nw/ut/Signal10/Overview.html">Signal10</a>::CreateAndConnect</CODE> Member Function</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14template &lt;typename TFunction&gt;
15<a href="../../../nw/ut/Signal10/SlotType.html">SlotType</a> * CreateAndConnect(
16     TFunction function
17);
18</pre>
19    </div>
20    <h2>Template Arguments</h2>
21    <div class="section">
22      <table class="arguments">
23        <thead>
24          <tr>
25            <th>Name</th>
26            <td>Description</td>
27          </tr>
28        </thead>
29        <tr>
30          <th><CODE>TFunction</CODE></th>
31          <td>Type of function pointer or function object.</td>
32        </tr> </table>
33    </div>
34    <h2>Arguments</h2>
35    <div class="section">
36      <table class="arguments">
37        <thead>
38          <tr>
39            <td width="15" />
40            <th>Name</th>
41            <td>Description</td>
42          </tr>
43        </thead>
44        <tr>
45          <td>in</td>
46          <th>function</th>
47          <td>Function pointer or function object</td>
48        </tr> </table>
49    </div>
50    <h2>Return Values</h2>
51    <div class="section">The slot that was created. </div>
52    <h2>Description</h2>
53    <div class="section">
54      <p>Creates a slot and connects to it.</p><p>Allocates memory within the function.</p><p>When the &quot;NW_SIGNAL_MULTI_SLOT_ENABLED&quot; definition for &quot;nw/ut/ut_Config.h&quot; is disabled, the number of slots that can be connected to the signal is one.</p><p>When the &quot;NW_SIGNAL_MULTI_SLOT_ENABLED&quot; is disabled, be sure to Disconnect before Connecting. If not Disconnected, it will stop with an assert.</p></div>
55  <hr><p>CONFIDENTIAL</p></body>
56</html>
57