slot_base.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE header PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
  3. "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
  4. <!--
  5. Copyright Frank Mori Hess 2007-2009
  6. Distributed under the Boost Software License, Version 1.0. (See accompanying
  7. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. -->
  9. <header name="boost/signals2/slot_base.hpp" last-revision="$Date: 2007-03-06 16:51:55 -0500 (Tue, 06 Mar 2007) $">
  10. <using-namespace name="boost::signals2"/>
  11. <using-namespace name="boost"/>
  12. <namespace name="boost">
  13. <namespace name="signals2">
  14. <class name="slot_base">
  15. <purpose>Base class for slots.</purpose>
  16. <description>
  17. <para></para>
  18. </description>
  19. <typedef name="locked_container_type">
  20. <type>std::vector&lt;<emphasis>implementation-detail</emphasis>&gt;</type>
  21. </typedef>
  22. <method-group name="tracking">
  23. <method name = "expired" cv="const">
  24. <type>bool</type>
  25. <returns><para><code>true</code> if any tracked object has expired.</para></returns>
  26. </method>
  27. <method name = "lock" cv="const">
  28. <type>locked_container_type</type>
  29. <returns>A container holding <code>shared_ptr</code>s to each of the slot's tracked objects. As long
  30. as the returned container is kept in scope, none of the slot's tracked objects can expire.</returns>
  31. <throws><classname>expired_slot</classname> if any of the slot's tracked objects have expired.</throws>
  32. </method>
  33. </method-group>
  34. </class>
  35. <class name="expired_slot">
  36. <inherit access="public"><classname>bad_weak_ptr</classname></inherit>
  37. <purpose>Indicates at least one of a slot's tracked objects has expired.</purpose>
  38. <description>The <code>expired_slot</code> exception is thrown to indicate at least one of
  39. a slot's tracked objects has expired.
  40. </description>
  41. <method name="what" cv="const" specifiers="virtual">
  42. <type>const char * </type>
  43. </method>
  44. </class>
  45. </namespace>
  46. </namespace>
  47. </header>