Imported Upstream version 2.99.2
[platform/upstream/libsigc++.git] / docs / reference / html / group__signal.html
index 78bb913..4f702d7 100644 (file)
@@ -19,7 +19,7 @@
  <tr style="height: 56px;">
   <td style="padding-left: 0.5em;">
    <div id="projectname">libsigc++
-   &#160;<span id="projectnumber">2.99.1</span>
+   &#160;<span id="projectnumber">2.99.2</span>
    </div>
   </td>
  </tr>
@@ -46,7 +46,7 @@
 </div><!--header-->
 <div class="contents">
 
-<p>Use <a class="el" href="classsigc_1_1signal__with__accumulator.html#a5db7407d1b5c605c1197fcf6f78fda4a" title="Add a slot to the list of slots. ">sigc::signal::connect()</a> with <a class="el" href="group__mem__fun.html#ga6ed5c519845b36eb7c6461ebd2a073c9" title="Creates a functor of type sigc::mem_functor which wraps a method. ">sigc::mem_fun()</a> and <a class="el" href="group__ptr__fun.html#ga6a373493892e21ba59b2d998036d7886" title="Creates a functor of type sigc::pointer_functor which wraps an existing non-member function...">sigc::ptr_fun()</a> to connect a method or function with a signal.  
+<p>Use sigc::signal::connect() with <a class="el" href="group__mem__fun.html#ga6ed5c519845b36eb7c6461ebd2a073c9" title="Creates a functor of type sigc::mem_functor which wraps a method. ">sigc::mem_fun()</a> and <a class="el" href="group__ptr__fun.html#ga203dd1ac5747cf2f3d2b2d590ad32e82" title="Creates a functor of type sigc::pointer_functor which wraps an existing non-member function...">sigc::ptr_fun()</a> to connect a method or function with a signal.  
 <a href="#details">More...</a></p>
 <table class="memberdecls">
 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
@@ -55,13 +55,13 @@ Classes</h2></td></tr>
 <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convinience class for safe disconnection.  <a href="structsigc_1_1connection.html#details">More...</a><br /></td></tr>
 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1signal.html">sigc::signal&lt; T_return, T_arg &gt;</a></td></tr>
-<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience wrapper for the numbered <a class="el" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates. ">sigc::signal</a># templates.  <a href="classsigc_1_1signal.html#details">More...</a><br /></td></tr>
+<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">signal can be used to connect() slots that are invoked during subsequent calls to emit().  <a href="classsigc_1_1signal.html#details">More...</a><br /></td></tr>
 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
-<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1signal_1_1accumulated.html">sigc::signal&lt; T_return, T_arg &gt;::accumulated&lt; T_accumulator &gt;</a></td></tr>
-<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience wrapper for the numbered <a class="el" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates. ">sigc::signal</a># templates.  <a href="classsigc_1_1signal_1_1accumulated.html#details">More...</a><br /></td></tr>
+<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1signal_3_01T__return_07T__arg_8_8_8_08_4_1_1accumulated.html">sigc::signal&lt; T_return(T_arg...)&gt;::accumulated&lt; T_accumulator &gt;</a></td></tr>
+<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Like <a class="el" href="classsigc_1_1signal.html" title="signal can be used to connect() slots that are invoked during subsequent calls to emit()...">sigc::signal</a> but the additional template parameter <em>T_accumulator</em> defines the accumulator type that should be used.  <a href="classsigc_1_1signal_3_01T__return_07T__arg_8_8_8_08_4_1_1accumulated.html#details">More...</a><br /></td></tr>
 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1signal__base.html">sigc::signal_base</a></td></tr>
-<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Base class for the <a class="el" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates. ">sigc::signal</a># templates.  <a href="structsigc_1_1signal__base.html#details">More...</a><br /></td></tr>
+<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Base class for the <a class="el" href="classsigc_1_1signal.html" title="signal can be used to connect() slots that are invoked during subsequent calls to emit()...">sigc::signal</a># templates.  <a href="structsigc_1_1signal__base.html#details">More...</a><br /></td></tr>
 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1signal__with__accumulator.html">sigc::signal_with_accumulator&lt; T_return, T_accumulator, T_arg &gt;</a></td></tr>
 <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal declaration.  <a href="classsigc_1_1signal__with__accumulator.html#details">More...</a><br /></td></tr>
@@ -73,32 +73,32 @@ Classes</h2></td></tr>
 <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL-style iterator for <a class="el" href="structsigc_1_1slot__list.html" title="STL-style list interface for sigc::signal#. ">slot_list</a>.  <a href="structsigc_1_1slot__iterator.html#details">More...</a><br /></td></tr>
 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1slot__list.html">sigc::slot_list&lt; T_slot &gt;</a></td></tr>
-<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL-style list interface for <a class="el" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates. ">sigc::signal</a>#.  <a href="structsigc_1_1slot__list.html#details">More...</a><br /></td></tr>
+<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL-style list interface for <a class="el" href="classsigc_1_1signal.html" title="signal can be used to connect() slots that are invoked during subsequent calls to emit()...">sigc::signal</a>#.  <a href="structsigc_1_1slot__list.html#details">More...</a><br /></td></tr>
 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1trackable.html">sigc::trackable</a></td></tr>
 <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Base class for objects with auto-disconnection.  <a href="structsigc_1_1trackable.html#details">More...</a><br /></td></tr>
 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
 </table>
 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
-<p>Use <a class="el" href="classsigc_1_1signal__with__accumulator.html#a5db7407d1b5c605c1197fcf6f78fda4a" title="Add a slot to the list of slots. ">sigc::signal::connect()</a> with <a class="el" href="group__mem__fun.html#ga6ed5c519845b36eb7c6461ebd2a073c9" title="Creates a functor of type sigc::mem_functor which wraps a method. ">sigc::mem_fun()</a> and <a class="el" href="group__ptr__fun.html#ga6a373493892e21ba59b2d998036d7886" title="Creates a functor of type sigc::pointer_functor which wraps an existing non-member function...">sigc::ptr_fun()</a> to connect a method or function with a signal. </p>
+<p>Use sigc::signal::connect() with <a class="el" href="group__mem__fun.html#ga6ed5c519845b36eb7c6461ebd2a073c9" title="Creates a functor of type sigc::mem_functor which wraps a method. ">sigc::mem_fun()</a> and <a class="el" href="group__ptr__fun.html#ga203dd1ac5747cf2f3d2b2d590ad32e82" title="Creates a functor of type sigc::pointer_functor which wraps an existing non-member function...">sigc::ptr_fun()</a> to connect a method or function with a signal. </p>
 <div class="fragment"><div class="line">signal_clicked.connect( <a class="code" href="group__mem__fun.html#ga6ed5c519845b36eb7c6461ebd2a073c9">sigc::mem_fun</a>(*<span class="keyword">this</span>, &amp;MyWindow::on_clicked) );</div>
 </div><!-- fragment --><p>When the signal is emitted your method will be called.</p>
-<p><a class="el" href="classsigc_1_1signal__with__accumulator.html#a5db7407d1b5c605c1197fcf6f78fda4a" title="Add a slot to the list of slots. ">signal::connect()</a> returns a connection, which you can later use to disconnect your method. If the type of your object inherits from <a class="el" href="structsigc_1_1trackable.html" title="Base class for objects with auto-disconnection. ">sigc::trackable</a> the method is disconnected automatically when your object is destroyed.</p>
-<p>When signals are copied they share the underlying information, so you can have a protected/private <a class="el" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates. ">sigc::signal</a> member and a public accessor method. A <a class="el" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates. ">sigc::signal</a> is a kind of reference-counting pointer. It's similar to std::shared_ptr&lt;&gt;, although <a class="el" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates. ">sigc::signal</a> is restricted to holding a pointer to a sigc::internal::signal_impl object that contains the implementation of the signal.</p>
+<p>signal::connect() returns a connection, which you can later use to disconnect your method. If the type of your object inherits from <a class="el" href="structsigc_1_1trackable.html" title="Base class for objects with auto-disconnection. ">sigc::trackable</a> the method is disconnected automatically when your object is destroyed.</p>
+<p>When signals are copied they share the underlying information, so you can have a protected/private <a class="el" href="classsigc_1_1signal.html" title="signal can be used to connect() slots that are invoked during subsequent calls to emit()...">sigc::signal</a> member and a public accessor method. A <a class="el" href="classsigc_1_1signal.html" title="signal can be used to connect() slots that are invoked during subsequent calls to emit()...">sigc::signal</a> is a kind of reference-counting pointer. It's similar to std::shared_ptr&lt;&gt;, although <a class="el" href="classsigc_1_1signal.html" title="signal can be used to connect() slots that are invoked during subsequent calls to emit()...">sigc::signal</a> is restricted to holding a pointer to a sigc::internal::signal_impl object that contains the implementation of the signal.</p>
 <div class="fragment"><div class="line"><span class="keyword">class </span>MyClass</div>
 <div class="line">{</div>
 <div class="line"><span class="keyword">public</span>:</div>
-<div class="line">  <span class="keyword">using</span> MySignalType = <a class="code" href="classsigc_1_1signal.html">sigc::signal&lt;void&gt;</a>;</div>
+<div class="line">  <span class="keyword">using</span> MySignalType = <a class="code" href="classsigc_1_1signal.html">sigc::signal&lt;void()&gt;</a>;</div>
 <div class="line">  MySignalType get_my_signal() { <span class="keywordflow">return</span> m_my_signal; }</div>
 <div class="line"><span class="keyword">private</span>:</div>
 <div class="line">  MySignalType m_my_signal;</div>
 <div class="line">};</div>
 </div><!-- fragment --><p>signal and slot objects provide the core functionality of this library. A slot is a container for an arbitrary functor. A signal is a list of slots that are executed on emission. For compile time type safety a list of template arguments must be provided for the signal template that determines the parameter list for emission. Functors and closures are converted into slots implicitly on connection, triggering compiler errors if the given functor or closure cannot be invoked with the parameter list of the signal to connect to.</p>
-<p>Almost any functor with the correct signature can be converted to a <a class="el" href="classsigc_1_1slot.html" title="Converts an arbitrary functor to a unified type which is opaque. ">sigc::slot</a> and connected to a signal. See <a class="el" href="group__slot.html">Slots</a> and <a class="el" href="classsigc_1_1signal__with__accumulator.html#a5db7407d1b5c605c1197fcf6f78fda4a" title="Add a slot to the list of slots. ">sigc::signal::connect()</a>. </p>
+<p>Almost any functor with the correct signature can be converted to a <a class="el" href="classsigc_1_1slot.html" title="Converts an arbitrary functor to a unified type which is opaque. ">sigc::slot</a> and connected to a signal. See <a class="el" href="group__slot.html">Slots</a> and sigc::signal::connect(). </p>
 </div><!-- contents -->
 <!-- start footer part -->
 <hr class="footer"/><address class="footer"><small>
-Generated on Mon Mar 7 2016 11:43:49 for libsigc++ by &#160;<a href="http://www.doxygen.org/index.html">
+Generated on Wed Mar 16 2016 20:53:27 for libsigc++ by &#160;<a href="http://www.doxygen.org/index.html">
 <img class="footer" src="doxygen.png" alt="doxygen"/>
 </a> 1.8.9.1
 </small></address>