Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 2058

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WSignalMapper&lt; T, A1 &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WSignalMapper.html">WSignalMapper</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WSignalMapper&lt; T, A1 &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__signalslot.html">Signal/slot system</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WSignalMapper" --><!-- doxytag: inherits="Wt::WObject" -->
<p>A utility class to connect multiple senders to a single slot.  
 <a href="classWt_1_1WSignalMapper.html#details">More...</a></p>

<p><code>#include &lt;Wt/WSignalMapper&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WSignalMapper&lt; T, A1 &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WSignalMapper__inherit__graph.png" border="0" usemap="#Wt_1_1WSignalMapper_3_01T_00_01A1_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WSignalMapper_3_01T_00_01A1_01_4_inherit__map" id="Wt_1_1WSignalMapper_3_01T_00_01A1_01_4_inherit__map">
<area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="53,5,149,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WSignalMapper-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c23094be042e549bb54a09c14fd5bd2"></a><!-- doxytag: member="Wt::WSignalMapper::WSignalMapper" ref="a5c23094be042e549bb54a09c14fd5bd2" args="(WObject *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#a5c23094be042e549bb54a09c14fd5bd2">WSignalMapper</a> (<a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new WSignalMapper. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#a89ccb4bde41e6e326072077214756ccc">setMapping</a> (<a class="el" href="classWt_1_1WObject.html">WObject</a> *sender, const T &amp;data)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Associates data with a sender.  <a href="#a89ccb4bde41e6e326072077214756ccc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boost::signals::connection&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#a1d2c6572bf0b8dbd21e2f0d0b19dfc30">mapConnect</a> (<a class="el" href="classWt_1_1SignalBase.html">SignalBase</a> &amp;signal, const T &amp;data)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps a signal without arguments.  <a href="#a1d2c6572bf0b8dbd21e2f0d0b19dfc30"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename S &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">boost::signals::connection&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#a8507b91052dff4103dd74b6ac9b8738e">mapConnect1</a> (S &amp;signal, const T &amp;data)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps a signal with one argument.  <a href="#a8507b91052dff4103dd74b6ac9b8738e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; T, A1 &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb">mapped</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emitted in response to a signal sent to <a class="el" href="classWt_1_1WSignalMapper.html#af4bc239e4f47ae25e6544be3dd1676de" title="Slot to which to connect the source signal.">map()</a> or <a class="el" href="classWt_1_1WSignalMapper.html#a236a9f2bfa71fd1f990f04e105782976" title="Slot to which to connect the source signal, passing the argument to the receiver.">map1()</a>.  <a href="#abd2fae2a26c9f89928d32f6e209671eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#af4bc239e4f47ae25e6544be3dd1676de">map</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to which to connect the source signal.  <a href="#af4bc239e4f47ae25e6544be3dd1676de"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#a236a9f2bfa71fd1f990f04e105782976">map1</a> (A1 a)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Slot to which to connect the source signal, passing the argument to the receiver.  <a href="#a236a9f2bfa71fd1f990f04e105782976"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSignalMapper.html#a395e321c3c545225a3669608044b2454">removeMapping</a> (<a class="el" href="classWt_1_1WObject.html">WObject</a> *sender)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the mapping of an object.  <a href="#a395e321c3c545225a3669608044b2454"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T, typename A1 = NoClass&gt;<br/>
class Wt::WSignalMapper&lt; T, A1 &gt;</h3>

<p>A utility class to connect multiple senders to a single slot. </p>
<p>This class is useful if you would like to respond to signals of many objects or widgets within a single slot, but need to identify the particular sender through some property.</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> Test::createWidgets()
 {
   <a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;WText *&gt;</a> *MyMap = <span class="keyword">new</span> <a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;Wt::WText *&gt;</a>(<span class="keyword">this</span>);
   <span class="comment">// connect mapped() to our target slot</span>
   MyMap-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb" title="Signal emitted in response to a signal sent to map() or map1().">mapped</a>().connect(<span class="keyword">this</span>, &amp;Test::onClick);

   <span class="comment">// connect and map every source signal to the mapper</span>
   MyMap-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#a1d2c6572bf0b8dbd21e2f0d0b19dfc30" title="Maps a signal without arguments.">mapConnect</a>(text1-&gt;clicked(), text1);
   MyMap-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#a1d2c6572bf0b8dbd21e2f0d0b19dfc30" title="Maps a signal without arguments.">mapConnect</a>(text2-&gt;clicked(), text2);
   MyMap-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#a1d2c6572bf0b8dbd21e2f0d0b19dfc30" title="Maps a signal without arguments.">mapConnect</a>(text3-&gt;clicked(), text3);
 }

 <span class="keywordtype">void</span> Test::onClick(WText* source)
 {
   <span class="comment">// source is where it is coming from</span>
   <span class="comment">// ...</span>
 }
</pre></div><p>The type <em>T</em> may be any type that has proper copy semantics and a default constructor. The mapper may pass one extra argument (type <em>A1</em>) from the original signal to the <a class="el" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb" title="Signal emitted in response to a signal sent to map() or map1().">mapped()</a> signal. In that case, you must connect the original signal to the <a class="el" href="classWt_1_1WSignalMapper.html#a236a9f2bfa71fd1f990f04e105782976" title="Slot to which to connect the source signal, passing the argument to the receiver.">map1()</a> slot, or use <a class="el" href="classWt_1_1WSignalMapper.html#a8507b91052dff4103dd74b6ac9b8738e" title="Maps a signal with one argument.">mapConnect1()</a>.</p>
<p>The mapper uses signal.sender() to attribute ownership of a signal to a sender.</p>
<p>You may want to consider to boost::bind() (or std::bind()) instead, which is simpler and achieves the same in a more direct way: </p>
<div class="fragment"><pre class="fragment">  text1-&gt;clicked().connect(boost::bind(&amp;Test::onClick, <span class="keyword">this</span>, text1));
  text2-&gt;clicked().connect(boost::bind(&amp;Test::onClick, <span class="keyword">this</span>, text2));
  text3-&gt;clicked().connect(boost::bind(&amp;Test::onClick, <span class="keyword">this</span>, text3));
</pre></div> </div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af4bc239e4f47ae25e6544be3dd1676de"></a><!-- doxytag: member="Wt::WSignalMapper::map" ref="af4bc239e4f47ae25e6544be3dd1676de" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename A1 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classWt_1_1WSignalMapper.html">Wt::WSignalMapper</a>&lt; T, A1 &gt;::map </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to which to connect the source signal. </p>
<p>When a signal triggers the slot, the sender is identified and used to find corresponding data set with <a class="el" href="classWt_1_1WSignalMapper.html#a89ccb4bde41e6e326072077214756ccc" title="Associates data with a sender.">setMapping()</a>, which is then use to propagate further in the <a class="el" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb" title="Signal emitted in response to a signal sent to map() or map1().">mapped()</a> signal. </p>

</div>
</div>
<a class="anchor" id="a236a9f2bfa71fd1f990f04e105782976"></a><!-- doxytag: member="Wt::WSignalMapper::map1" ref="a236a9f2bfa71fd1f990f04e105782976" args="(A1 a)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename A1&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classWt_1_1WSignalMapper.html">Wt::WSignalMapper</a>&lt; T, A1 &gt;::map1 </td>
          <td>(</td>
          <td class="paramtype">A1&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Slot to which to connect the source signal, passing the argument to the receiver. </p>
<p>When a signal triggers the slot, the sender is identified and used to find corresponding data set with <a class="el" href="classWt_1_1WSignalMapper.html#a89ccb4bde41e6e326072077214756ccc" title="Associates data with a sender.">setMapping()</a>, which is then use to propagate further in the <a class="el" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb" title="Signal emitted in response to a signal sent to map() or map1().">mapped()</a> signal. The additional argument <code>a</code> is passed as the second argument to the <a class="el" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb" title="Signal emitted in response to a signal sent to map() or map1().">mapped()</a> signal. </p>

</div>
</div>
<a class="anchor" id="a1d2c6572bf0b8dbd21e2f0d0b19dfc30"></a><!-- doxytag: member="Wt::WSignalMapper::mapConnect" ref="a1d2c6572bf0b8dbd21e2f0d0b19dfc30" args="(SignalBase &amp;signal, const T &amp;data)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename A1 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">boost::signals::connection <a class="el" href="classWt_1_1WSignalMapper.html">Wt::WSignalMapper</a>&lt; T, A1 &gt;::mapConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1SignalBase.html">SignalBase</a> &amp;&#160;</td>
          <td class="paramname"><em>signal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Maps a signal without arguments. </p>
<p>Connect the given signal with the slot, and associate the data when it is triggered.</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;T&gt;</a> *mapper = ...

 mapper-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#a1d2c6572bf0b8dbd21e2f0d0b19dfc30" title="Maps a signal without arguments.">mapConnect</a>(widget-&gt;clicked(), data);
</pre></div><p> is equivalent to: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;T&gt;</a> *mapper = ...

 widget-&gt;clicked().connect(mapper, &amp;<a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;T&gt;::map</a>);
 mapper-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#a89ccb4bde41e6e326072077214756ccc" title="Associates data with a sender.">setMapping</a>(widget, data);
</pre></div> 
</div>
</div>
<a class="anchor" id="a8507b91052dff4103dd74b6ac9b8738e"></a><!-- doxytag: member="Wt::WSignalMapper::mapConnect1" ref="a8507b91052dff4103dd74b6ac9b8738e" args="(S &amp;signal, const T &amp;data)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename A1 &gt; </div>
<div class="memtemplate">
template&lt;typename S &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">boost::signals::connection <a class="el" href="classWt_1_1WSignalMapper.html">Wt::WSignalMapper</a>&lt; T, A1 &gt;::mapConnect1 </td>
          <td>(</td>
          <td class="paramtype">S &amp;&#160;</td>
          <td class="paramname"><em>signal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Maps a signal with one argument. </p>
<p>Connect the given signal with the slot, and associate the data when it is triggered. The signal argument will be passed to the <a class="el" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb" title="Signal emitted in response to a signal sent to map() or map1().">mapped()</a> signal.</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;T, Wt::WMouseEvent&gt;</a> *mapper = ...

 mapper-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#a1d2c6572bf0b8dbd21e2f0d0b19dfc30" title="Maps a signal without arguments.">mapConnect</a>(widget-&gt;clicked(), data);
</pre></div><p> is equivalent to: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;T, Wt::WMouseEvent&gt;</a> *mapper = ...

 widget-&gt;clicked().connect(mapper, &amp;<a class="code" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">Wt::WSignalMapper&lt;T, Wt::WMouseEvent&gt;::map1</a>);
 mapper-&gt;<a class="code" href="classWt_1_1WSignalMapper.html#a89ccb4bde41e6e326072077214756ccc" title="Associates data with a sender.">setMapping</a>(widget, data);
</pre></div> 
</div>
</div>
<a class="anchor" id="abd2fae2a26c9f89928d32f6e209671eb"></a><!-- doxytag: member="Wt::WSignalMapper::mapped" ref="abd2fae2a26c9f89928d32f6e209671eb" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename A1 = NoClass&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt;T, A1&gt;&amp; <a class="el" href="classWt_1_1WSignalMapper.html">Wt::WSignalMapper</a>&lt; T, A1 &gt;::mapped </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal emitted in response to a signal sent to <a class="el" href="classWt_1_1WSignalMapper.html#af4bc239e4f47ae25e6544be3dd1676de" title="Slot to which to connect the source signal.">map()</a> or <a class="el" href="classWt_1_1WSignalMapper.html#a236a9f2bfa71fd1f990f04e105782976" title="Slot to which to connect the source signal, passing the argument to the receiver.">map1()</a>. </p>
<p>The first argument propagated is the data that is associated with the specific sender, set in <a class="el" href="classWt_1_1WSignalMapper.html#a89ccb4bde41e6e326072077214756ccc" title="Associates data with a sender.">setMapping()</a> or <a class="el" href="classWt_1_1WSignalMapper.html#a1d2c6572bf0b8dbd21e2f0d0b19dfc30" title="Maps a signal without arguments.">mapConnect()</a>. The second argument is an argument passed from the originating signal. </p>

</div>
</div>
<a class="anchor" id="a395e321c3c545225a3669608044b2454"></a><!-- doxytag: member="Wt::WSignalMapper::removeMapping" ref="a395e321c3c545225a3669608044b2454" args="(WObject *sender)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename A1 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classWt_1_1WSignalMapper.html">Wt::WSignalMapper</a>&lt; T, A1 &gt;::removeMapping </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WObject.html">WObject</a> *&#160;</td>
          <td class="paramname"><em>sender</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes the mapping of an object. </p>
<p>This method does not disconnect any signals; that is the responsability of the user of <a class="el" href="classWt_1_1WSignalMapper.html" title="A utility class to connect multiple senders to a single slot.">WSignalMapper</a>. If no mapping of for an object exits, the mapper will ignore the signal, and not emit the mapped signal. </p>

</div>
</div>
<a class="anchor" id="a89ccb4bde41e6e326072077214756ccc"></a><!-- doxytag: member="Wt::WSignalMapper::setMapping" ref="a89ccb4bde41e6e326072077214756ccc" args="(WObject *sender, const T &amp;data)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, typename A1 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classWt_1_1WSignalMapper.html">Wt::WSignalMapper</a>&lt; T, A1 &gt;::setMapping </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WObject.html">WObject</a> *&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Associates data with a sender. </p>
<p>Associate data with a sender, which wel emitted by the <a class="el" href="classWt_1_1WSignalMapper.html#abd2fae2a26c9f89928d32f6e209671eb" title="Signal emitted in response to a signal sent to map() or map1().">mapped()</a> signal, when the corresponding sender signal triggers <a class="el" href="classWt_1_1WSignalMapper.html#af4bc239e4f47ae25e6544be3dd1676de" title="Slot to which to connect the source signal.">map()</a> or <a class="el" href="classWt_1_1WSignalMapper.html#a236a9f2bfa71fd1f990f04e105782976" title="Slot to which to connect the source signal, passing the argument to the receiver.">map1()</a>. </p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>