<!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>libsigc++: sigc::slot_base Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.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 class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</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="navpath"> <ul> <li><a class="el" href="namespacesigc.html">sigc</a> </li> <li><a class="el" href="classsigc_1_1slot__base.html">slot_base</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> </div> <div class="headertitle"> <h1>sigc::slot_base Class Reference<br/> <small> [<a class="el" href="group__slot.html">Slots</a>]</small> </h1> </div> </div> <div class="contents"> <!-- doxytag: class="sigc::slot_base" --><!-- doxytag: inherits="sigc::functor_base" --> <p>Base type for slots. <a href="#_details">More...</a></p> <p><code>#include <sigc++/functors/slot_base.h></code></p> <!-- startSectionHeader --><div class="dynheader"> Inheritance diagram for sigc::slot_base:<!-- endSectionHeader --></div> <!-- startSectionSummary --><!-- endSectionSummary --><!-- startSectionContent --><div class="dyncontent"> <div class="center"><img src="classsigc_1_1slot__base__inherit__graph.png" border="0" usemap="#sigc_1_1slot__base_inherit__map" alt="Inheritance graph"/></div> <map name="sigc_1_1slot__base_inherit__map" id="sigc_1_1slot__base_inherit__map"> <area shape="rect" id="node5" href="classsigc_1_1slot0.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="537,5,705,35"/><area shape="rect" id="node9" href="classsigc_1_1slot1.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="512,59,731,88"/><area shape="rect" id="node13" href="classsigc_1_1slot2.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="487,112,756,141"/><area shape="rect" id="node17" href="classsigc_1_1slot3.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="460,165,783,195"/><area shape="rect" id="node21" href="classsigc_1_1slot4.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="435,219,808,248"/><area shape="rect" id="node25" href="classsigc_1_1slot5.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="409,272,833,301"/><area shape="rect" id="node29" href="classsigc_1_1slot6.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="384,325,859,355"/><area shape="rect" id="node33" href="classsigc_1_1slot7.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="359,379,884,408"/><area shape="rect" id="node2" href="structsigc_1_1functor__base.html" title="A hint to the compiler." alt="" coords="5,192,144,221"/><area shape="rect" id="node7" href="classsigc_1_1slot_3_01T__return_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html" title="Convenience wrapper for the numbered sigc::slot0 template." alt="" coords="1036,5,1351,35"/><area shape="rect" id="node11" href="classsigc_1_1slot_3_01T__return_00_01T__arg1_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html" title="Convenience wrapper for the numbered sigc::slot1 template." alt="" coords="1021,59,1365,88"/><area shape="rect" id="node15" href="classsigc_1_1slot_3_01T__return_00_01T__arg1_00_01T__arg2_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html" title="Convenience wrapper for the numbered sigc::slot2 template." alt="" coords="1007,112,1380,141"/><area shape="rect" id="node19" href="classsigc_1_1slot_3_01T__return_00_01T__arg1_00_01T__arg2_00_01T__arg3_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html" title="Convenience wrapper for the numbered sigc::slot3 template." alt="" coords="992,165,1395,195"/><area shape="rect" id="node23" href="classsigc_1_1slot_3_01T__return_00_01T__arg1_00_01T__arg2_00_01T__arg3_00_01T__arg4_00_01nil_00_01nil_00_01nil_01_4.html" title="Convenience wrapper for the numbered sigc::slot4 template." alt="" coords="979,219,1408,248"/><area shape="rect" id="node27" href="classsigc_1_1slot_3_01T__return_00_01T__arg1_00_01T__arg2_00_01T__arg3_00_01T__arg4_00_01T__arg5_00_01nil_00_01nil_01_4.html" title="Convenience wrapper for the numbered sigc::slot5 template." alt="" coords="964,272,1423,301"/><area shape="rect" id="node31" href="classsigc_1_1slot_3_01T__return_00_01T__arg1_00_01T__arg2_00_01T__arg3_00_01T__arg4_00_01T__arg5_00_01T__arg6_00_01nil_01_4.html" title="Convenience wrapper for the numbered sigc::slot6 template." alt="" coords="949,325,1437,355"/><area shape="rect" id="node35" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates." alt="" coords="935,379,1452,408"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center><!-- endSectionContent --></div> <p><a href="classsigc_1_1slot__base-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e1a0c2fe43a42187810e8997abeb341"></a><!-- doxytag: member="sigc::slot_base::func_destroy_notify" ref="a7e1a0c2fe43a42187810e8997abeb341" args="" --> typedef <br class="typebreak"/> trackable::func_destroy_notify </td><td class="memItemRight" valign="bottom"><b>func_destroy_notify</b></td></tr> <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="a558d209f5e7330680b4a6f0e7894be3e"></a><!-- doxytag: member="sigc::slot_base::slot_base" ref="a558d209f5e7330680b4a6f0e7894be3e" args="()" -->  </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a558d209f5e7330680b4a6f0e7894be3e">slot_base</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs an empty slot. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#aafce3e11630a5081208a4dd0d809e55f">slot_base</a> (rep_type* rep)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a slot from an existing slot_rep object. <a href="#aafce3e11630a5081208a4dd0d809e55f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#aadcbb54832b5207bddf89ac5433b531a">slot_base</a> (const <a class="el" href="classsigc_1_1slot__base.html">slot_base</a>& src)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a slot, copying an existing one. <a href="#aadcbb54832b5207bddf89ac5433b531a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a37e4b7151de10ac301eda9cd78d580bb">operator bool</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Tests whether a slot is null, because the default constructor was used. <a href="#a37e4b7151de10ac301eda9cd78d580bb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a2fb1bd8f20bd2c1f8514193a512d84eb">set_parent</a> (void* parent, void*(* cleanup)(void*)) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the parent of this slot. <a href="#a2fb1bd8f20bd2c1f8514193a512d84eb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#afb626f3bce53c7430ee4b5e00449837e">add_destroy_notify_callback</a> (void* data, func_destroy_notify func) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a callback that is executed (notified) when the slot is detroyed. <a href="#afb626f3bce53c7430ee4b5e00449837e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a6374e1400eef020eab09dfdbdc563912">remove_destroy_notify_callback</a> (void* data) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Remove a callback previously installed with <a class="el" href="classsigc_1_1slot__base.html#afb626f3bce53c7430ee4b5e00449837e" title="Add a callback that is executed (notified) when the slot is detroyed.">add_destroy_notify_callback()</a>. <a href="#a6374e1400eef020eab09dfdbdc563912"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#aef88c874f0fc444ff4c5b783b12d2537">empty</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the slot is invalid. <a href="#aef88c874f0fc444ff4c5b783b12d2537"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a824a4b0b72b85c3b5fb0a9f479790d9e">blocked</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the slot is blocked. <a href="#a824a4b0b72b85c3b5fb0a9f479790d9e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a69042c2e2b0e5449fbf8203e862192a7">block</a> (bool should_block=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the blocking state. <a href="#a69042c2e2b0e5449fbf8203e862192a7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#ad93eaf25fae13186a1af8f699c6004a1">unblock</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unsets the blocking state. <a href="#ad93eaf25fae13186a1af8f699c6004a1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a4042d221f7f07a7394d2eb0f14db2857">disconnect</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Disconnects the slot. <a href="#a4042d221f7f07a7394d2eb0f14db2857"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsigc_1_1slot__base.html">slot_base</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a19522528264f1646f8ed982b0042ffad">operator=</a> (const <a class="el" href="classsigc_1_1slot__base.html">slot_base</a>& src)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Overrides this slot making a copy from another slot. <a href="#a19522528264f1646f8ed982b0042ffad"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">rep_type* </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#aa482f7dfc73c6950abde0fd51b3125b5">rep_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Typed slot_rep object that contains a functor. <a href="#aa482f7dfc73c6950abde0fd51b3125b5"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a9dc4958860c0f8300b461a743b7f2a2b">blocked_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Indicates whether the slot is blocked. <a href="#a9dc4958860c0f8300b461a743b7f2a2b"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Base type for slots. </p> <p><a class="el" href="classsigc_1_1slot__base.html" title="Base type for slots.">slot_base</a> integrates most of the interface of the derived <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">sigc::slot</a> templates. slots can be connected to signals, be disconnected at some later point (<a class="el" href="classsigc_1_1slot__base.html#a4042d221f7f07a7394d2eb0f14db2857" title="Disconnects the slot.">disconnect()</a>) and temporarily be blocked (<a class="el" href="classsigc_1_1slot__base.html#a69042c2e2b0e5449fbf8203e862192a7" title="Sets the blocking state.">block()</a>, <a class="el" href="classsigc_1_1slot__base.html#ad93eaf25fae13186a1af8f699c6004a1" title="Unsets the blocking state.">unblock()</a>). The validity of a slot can be tested with <a class="el" href="classsigc_1_1slot__base.html#aef88c874f0fc444ff4c5b783b12d2537" title="Returns whether the slot is invalid.">empty()</a>.</p> <p>The internal representation of a sigc::internal::slot_rep derived type is built from slot_base's derivations. <a class="el" href="classsigc_1_1slot__base.html#a2fb1bd8f20bd2c1f8514193a512d84eb" title="Sets the parent of this slot.">set_parent()</a> is used to register a notification callback that is executed when the slot gets invalid. <a class="el" href="classsigc_1_1slot__base.html#afb626f3bce53c7430ee4b5e00449837e" title="Add a callback that is executed (notified) when the slot is detroyed.">add_destroy_notify_callback()</a> is used by connection objects to add a notification callback that is executed on destruction. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="aafce3e11630a5081208a4dd0d809e55f"></a><!-- doxytag: member="sigc::slot_base::slot_base" ref="aafce3e11630a5081208a4dd0d809e55f" args="(rep_type *rep)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sigc::slot_base::slot_base </td> <td>(</td> <td class="paramtype">rep_type * </td> <td class="paramname"> <em>rep</em> )</td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a slot from an existing slot_rep object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">rep</td><td>The slot_rep object this slot should contain. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aadcbb54832b5207bddf89ac5433b531a"></a><!-- doxytag: member="sigc::slot_base::slot_base" ref="aadcbb54832b5207bddf89ac5433b531a" args="(const slot_base &src)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sigc::slot_base::slot_base </td> <td>(</td> <td class="paramtype">const <a class="el" href="classsigc_1_1slot__base.html">slot_base</a>& </td> <td class="paramname"> <em>src</em> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a slot, copying an existing one. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">src</td><td>The existing slot to copy. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="afb626f3bce53c7430ee4b5e00449837e"></a><!-- doxytag: member="sigc::slot_base::add_destroy_notify_callback" ref="afb626f3bce53c7430ee4b5e00449837e" args="(void *data, func_destroy_notify func) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void sigc::slot_base::add_destroy_notify_callback </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">func_destroy_notify </td> <td class="paramname"> <em>func</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Add a callback that is executed (notified) when the slot is detroyed. </p> <p>This function is used internally by connection objects. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">data</td><td>Passed into func upon notification. </td></tr> <tr><td class="paramname">func</td><td>Callback executed upon destruction of the object. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a69042c2e2b0e5449fbf8203e862192a7"></a><!-- doxytag: member="sigc::slot_base::block" ref="a69042c2e2b0e5449fbf8203e862192a7" args="(bool should_block=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool sigc::slot_base::block </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>should_block</em> = <code>true</code> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the blocking state. </p> <p>If <em>should_block</em> is <code>true</code> then the blocking state is set. Subsequent calls to <a class="el" href="classsigc_1_1slot7.html#a115f4dc171664e693a6bb7afc41778d4" title="Invoke the contained functor unless slot is in blocking state.">slot::operator()()</a> don't invoke the functor contained by this slot until <a class="el" href="classsigc_1_1slot__base.html#ad93eaf25fae13186a1af8f699c6004a1" title="Unsets the blocking state.">unblock()</a> or <a class="el" href="classsigc_1_1slot__base.html#a69042c2e2b0e5449fbf8203e862192a7" title="Sets the blocking state.">block()</a> with <em>should_block</em> = <code>false</code> is called. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">should_block</td><td>Indicates whether the blocking state should be set or unset. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the slot was in blocking state before. </dd></dl> </div> </div> <a class="anchor" id="a824a4b0b72b85c3b5fb0a9f479790d9e"></a><!-- doxytag: member="sigc::slot_base::blocked" ref="a824a4b0b72b85c3b5fb0a9f479790d9e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool sigc::slot_base::blocked </td> <td>(</td> <td class="paramname"> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns whether the slot is blocked. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the slot is blocked. </dd></dl> </div> </div> <a class="anchor" id="a4042d221f7f07a7394d2eb0f14db2857"></a><!-- doxytag: member="sigc::slot_base::disconnect" ref="a4042d221f7f07a7394d2eb0f14db2857" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void sigc::slot_base::disconnect </td> <td>(</td> <td class="paramname"> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Disconnects the slot. </p> <p>Invalidates the slot and notifies the parent. </p> </div> </div> <a class="anchor" id="aef88c874f0fc444ff4c5b783b12d2537"></a><!-- doxytag: member="sigc::slot_base::empty" ref="aef88c874f0fc444ff4c5b783b12d2537" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool sigc::slot_base::empty </td> <td>(</td> <td class="paramname"> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns whether the slot is invalid. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the slot is invalid (empty). </dd></dl> </div> </div> <a class="anchor" id="a37e4b7151de10ac301eda9cd78d580bb"></a><!-- doxytag: member="sigc::slot_base::operator bool" ref="a37e4b7151de10ac301eda9cd78d580bb" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sigc::slot_base::operator bool </td> <td>(</td> <td class="paramname"> )</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Tests whether a slot is null, because the default constructor was used. </p> <p>Test a slot for null like so: </p> <div class="fragment"><pre class="fragment"> <span class="keywordflow">if</span>(slot) do_something() </pre></div> </div> </div> <a class="anchor" id="a19522528264f1646f8ed982b0042ffad"></a><!-- doxytag: member="sigc::slot_base::operator=" ref="a19522528264f1646f8ed982b0042ffad" args="(const slot_base &src)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classsigc_1_1slot__base.html">slot_base</a>& sigc::slot_base::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classsigc_1_1slot__base.html">slot_base</a>& </td> <td class="paramname"> <em>src</em> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Overrides this slot making a copy from another slot. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">src</td><td>The slot from which to make a copy. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>this</code>. </dd></dl> </div> </div> <a class="anchor" id="a6374e1400eef020eab09dfdbdc563912"></a><!-- doxytag: member="sigc::slot_base::remove_destroy_notify_callback" ref="a6374e1400eef020eab09dfdbdc563912" args="(void *data) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void sigc::slot_base::remove_destroy_notify_callback </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"> <em>data</em> )</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Remove a callback previously installed with <a class="el" href="classsigc_1_1slot__base.html#afb626f3bce53c7430ee4b5e00449837e" title="Add a callback that is executed (notified) when the slot is detroyed.">add_destroy_notify_callback()</a>. </p> <p>The callback is not executed. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">data</td><td>Parameter passed into previous call to <a class="el" href="classsigc_1_1slot__base.html#afb626f3bce53c7430ee4b5e00449837e" title="Add a callback that is executed (notified) when the slot is detroyed.">add_destroy_notify_callback()</a>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a2fb1bd8f20bd2c1f8514193a512d84eb"></a><!-- doxytag: member="sigc::slot_base::set_parent" ref="a2fb1bd8f20bd2c1f8514193a512d84eb" args="(void *parent, void *(*cleanup)(void *)) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void sigc::slot_base::set_parent </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void *(*)(void *) </td> <td class="paramname"> <em>cleanup</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Sets the parent of this slot. </p> <p>This function is used by signals to register a notification callback. This notification callback is executed when the slot becomes invalid because of some referred object dying. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">parent</td><td>The new parent. </td></tr> <tr><td class="paramname">cleanup</td><td>The notification callback. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ad93eaf25fae13186a1af8f699c6004a1"></a><!-- doxytag: member="sigc::slot_base::unblock" ref="ad93eaf25fae13186a1af8f699c6004a1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool sigc::slot_base::unblock </td> <td>(</td> <td class="paramname"> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Unsets the blocking state. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the slot was in blocking state before. </dd></dl> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a9dc4958860c0f8300b461a743b7f2a2b"></a><!-- doxytag: member="sigc::slot_base::blocked_" ref="a9dc4958860c0f8300b461a743b7f2a2b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="classsigc_1_1slot__base.html#a9dc4958860c0f8300b461a743b7f2a2b">sigc::slot_base::blocked_</a></td> </tr> </table> </div> <div class="memdoc"> <p>Indicates whether the slot is blocked. </p> </div> </div> <a class="anchor" id="aa482f7dfc73c6950abde0fd51b3125b5"></a><!-- doxytag: member="sigc::slot_base::rep_" ref="aa482f7dfc73c6950abde0fd51b3125b5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">rep_type* <a class="el" href="classsigc_1_1slot__base.html#aa482f7dfc73c6950abde0fd51b3125b5">sigc::slot_base::rep_</a><code> [mutable]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Typed slot_rep object that contains a functor. </p> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Mar 8 2011 11:44:40 for libsigc++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address> </body> </html>