Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > bd29e346140bd3fbcbf1674e576e565a > files > 342

libsigc++2.0-doc-2.2.7-1mdv2010.1.x86_64.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>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.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;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="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacesigc.html">sigc</a>::<a class="el" href="classsigc_1_1slot__base.html">slot_base</a>
  </div>
</div>
<div class="contents">
<h1>sigc::slot_base Class Reference<br/>
<small>
[<a class="el" href="group__slot.html">Slots</a>]</small>
</h1><!-- doxytag: class="sigc::slot_base" --><!-- doxytag: inherits="sigc::functor_base" -->
<p>Base type for slots. <a href="#_details">More...</a></p>

<p><code>#include &lt;sigc++/functors/slot_base.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for sigc::slot_base:</div>
<div class="dynsection">
<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" href="classsigc_1_1slot0.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="536,5,704,32"/><area shape="rect" href="classsigc_1_1slot1.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="511,56,729,83"/><area shape="rect" href="classsigc_1_1slot2.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="485,107,755,133"/><area shape="rect" href="classsigc_1_1slot3.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="460,157,780,184"/><area shape="rect" href="classsigc_1_1slot4.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="435,208,805,235"/><area shape="rect" href="classsigc_1_1slot5.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="408,259,832,285"/><area shape="rect" href="classsigc_1_1slot6.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="383,309,857,336"/><area shape="rect" href="classsigc_1_1slot7.html" title="Converts an arbitrary functor to a unified type which is opaque." alt="" coords="357,360,883,387"/><area shape="rect" href="structsigc_1_1functor__base.html" title="A hint to the compiler." alt="" coords="7,183,143,209"/><area shape="rect" 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="1032,5,1347,32"/><area shape="rect" 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="1017,56,1361,83"/><area shape="rect" 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="1004,107,1375,133"/><area shape="rect" 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="989,157,1389,184"/><area shape="rect" 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="975,208,1404,235"/><area shape="rect" 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="960,259,1419,285"/><area shape="rect" 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="945,309,1433,336"/><area shape="rect" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates." alt="" coords="931,360,1448,387"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classsigc_1_1slot__base-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>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&#160;</td><td class="memItemRight" valign="bottom"><b>func_destroy_notify</b></td></tr>
<tr><td colspan="2"><h2>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="()" -->
&#160;</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">&#160;</td><td class="mdescRight">Constructs an empty <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</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">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> from an existing slot_rep object. <a href="#aafce3e11630a5081208a4dd0d809e55f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</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>&amp; src)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>, copying an existing one. <a href="#aadcbb54832b5207bddf89ac5433b531a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</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">&#160;</td><td class="mdescRight">Tests whether a <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is null, because the default constructor was used. <a href="#a37e4b7151de10ac301eda9cd78d580bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</td><td class="mdescRight">Sets the parent of this <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>. <a href="#a2fb1bd8f20bd2c1f8514193a512d84eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</td><td class="mdescRight">Add a callback that is executed (notified) when the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is detroyed. <a href="#afb626f3bce53c7430ee4b5e00449837e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</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&#160;</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">&#160;</td><td class="mdescRight">Returns whether the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is invalid. <a href="#aef88c874f0fc444ff4c5b783b12d2537"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</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">&#160;</td><td class="mdescRight">Returns whether the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is blocked. <a href="#a824a4b0b72b85c3b5fb0a9f479790d9e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</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">&#160;</td><td class="mdescRight">Sets the blocking state. <a href="#a69042c2e2b0e5449fbf8203e862192a7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#ad93eaf25fae13186a1af8f699c6004a1">unblock</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsets the blocking state. <a href="#ad93eaf25fae13186a1af8f699c6004a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a4042d221f7f07a7394d2eb0f14db2857">disconnect</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Disconnects the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>. <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>&amp;&#160;</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>&amp; src)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overrides this <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> making a copy from another <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>. <a href="#a19522528264f1646f8ed982b0042ffad"></a><br/></td></tr>
<tr><td colspan="2"><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">rep_type*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#aa482f7dfc73c6950abde0fd51b3125b5">rep_</a></td></tr>
<tr><td class="mdescLeft">&#160;</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&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1slot__base.html#a9dc4958860c0f8300b461a743b7f2a2b">blocked_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates whether the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 <a class="el" href="structsigc_1_1connection.html" title="Convinience class for safe disconnection.">connection</a> objects to add a notification callback that is executed on destruction. </p>
<hr/><h2>Constructor &amp; 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 *&#160;</td>
          <td class="paramname"> <em>rep</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> from an existing slot_rep object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rep</em>&#160;</td><td>The slot_rep object this <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 &amp;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>&amp;&#160;</td>
          <td class="paramname"> <em>src</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>, copying an existing one. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&#160;</td><td>The existing <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 *&#160;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">func_destroy_notify&#160;</td>
          <td class="paramname"> <em>func</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <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 <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is detroyed. </p>
<p>This function is used internally by <a class="el" href="structsigc_1_1connection.html" title="Convinience class for safe disconnection.">connection</a> objects. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>data</em>&#160;</td><td>Passed into func upon notification. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>func</em>&#160;</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&#160;</td>
          <td class="paramname"> <em>should_block</em> = <code>true</code></td>
          <td>&#160;)&#160;</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 <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>should_block</em>&#160;</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 <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is blocked. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Disconnects the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>. </p>
<p>Invalidates the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is invalid. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests whether a <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> is null, because the default constructor was used. </p>
<p>Test a <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 &amp;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>&amp; sigc::slot_base::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsigc_1_1slot__base.html">slot_base</a>&amp;&#160;</td>
          <td class="paramname"> <em>src</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overrides this <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> making a copy from another <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&#160;</td><td>The <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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>

<p>Reimplemented in <a class="el" href="classsigc_1_1slot0.html#a49bba0540dcc76fb19e49d19a1acd563">sigc::slot0&lt; T_return &gt;</a>, <a class="el" href="classsigc_1_1slot1.html#a2e0d65cfc434718b6c5f7d7135ac384e">sigc::slot1&lt; T_return, T_arg1 &gt;</a>, <a class="el" href="classsigc_1_1slot2.html#a6b3d5de4d2e7a6134cc883b98380caa7">sigc::slot2&lt; T_return, T_arg1, T_arg2 &gt;</a>, <a class="el" href="classsigc_1_1slot3.html#a2ff8f9202019d25ddab688128c504e72">sigc::slot3&lt; T_return, T_arg1, T_arg2, T_arg3 &gt;</a>, <a class="el" href="classsigc_1_1slot4.html#ac2fb7f8ae312ced5b7436f0a0d062132">sigc::slot4&lt; T_return, T_arg1, T_arg2, T_arg3, T_arg4 &gt;</a>, <a class="el" href="classsigc_1_1slot5.html#a24d22be7be827080b34109c625bad7fd">sigc::slot5&lt; T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 &gt;</a>, <a class="el" href="classsigc_1_1slot6.html#a7d13ed520a19d287719bd24050b7d8a2">sigc::slot6&lt; T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 &gt;</a>, and <a class="el" href="classsigc_1_1slot7.html#af6bf09a0b3c09245257af113e70269d2">sigc::slot7&lt; T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 &gt;</a>.</p>

</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 *&#160;</td>
          <td class="paramname"> <em>data</em></td>
          <td>&#160;)&#160;</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 border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>data</em>&#160;</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 *&#160;</td>
          <td class="paramname"> <em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *(*)(void *)&#160;</td>
          <td class="paramname"> <em>cleanup</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the parent of this <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a>. </p>
<p>This function is used by signals to register a notification callback. This notification callback is executed when the <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> becomes invalid because of some referred object dying. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&#160;</td><td>The new parent. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cleanup</em>&#160;</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>&#160;)&#160;</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 <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 <a class="el" href="classsigc_1_1slot.html" title="Convenience wrapper for the numbered sigc::slot# templates.">slot</a> 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 size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 21:44:43 2010 for libsigc++ by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>