1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libsigc++ 2.0: Adaptors</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
<td width="10%" height="40"><img src="../../images/libsigc_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
<td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
<a class="qindex" href="../../index.html">Main Page</a>
<a class="qindex" href="modules.html">Groups</a>
<a class="qindex" href="namespaces.html"> Namespaces</a>
</center>
<hr width="100%"/>
<!-- Generated by Doxygen 1.3.9.1 -->
<h1>Adaptors</h1>Adaptors are functors that alter the signature of a functor's operator()().
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Modules</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">group </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bind.html">bind(), bind_return()</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="group__bind.html#ga8">sigc::bind()</a> alters an arbitrary functor by fixing arguments to certain values. <br></td></tr>
<p>
<tr><td class="memItemLeft" nowrap align="right" valign="top">group </td><td class="memItemRight" valign="bottom"><a class="el" href="group__compose.html">compose()</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="group__compose.html#ga2">sigc::compose()</a> combines two or three arbitrary functors. <br></td></tr>
<p>
<tr><td class="memItemLeft" nowrap align="right" valign="top">group </td><td class="memItemRight" valign="bottom"><a class="el" href="group__exception__catch.html">exception_catch()</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="namespacesigc.html#a31">sigc::exception_catch()</a> catches an exception thrown from within the wrapped functor and directs it to a catcher functor. <br></td></tr>
<p>
<tr><td class="memItemLeft" nowrap align="right" valign="top">group </td><td class="memItemRight" valign="bottom"><a class="el" href="group__hide.html">hide(), hide_return()</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="group__hide.html#ga1">sigc::hide()</a> alters an arbitrary functor in that it adds a parameter whose value is ignored on invocation of the returned functor. <br></td></tr>
<p>
<tr><td class="memItemLeft" nowrap align="right" valign="top">group </td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__.html">group()</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="namespacesigc.html#a44">sigc::group()</a> alters an arbitrary functor by rebuilding its arguments from one or more lambda expressions. <br></td></tr>
<p>
<tr><td class="memItemLeft" nowrap align="right" valign="top">group </td><td class="memItemRight" valign="bottom"><a class="el" href="group__retype.html">retype(), retype_return()</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="group__retype.html#ga1">sigc::retype()</a> alters a sigc::pointer_functor, a sigc::mem_functor or a <a class="el" href="classsigc_1_1slot.html">sigc::slot</a> in that it makes C-style casts to the functor's parameter types of all parameters passed through operator()(). <br></td></tr>
<p>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1adaptor__functor.html">sigc::adaptor_functor<T_functor></a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts an arbitrary functor into an adaptor type. <a href="structsigc_1_1adaptor__functor.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1adapts.html">sigc::adapts<T_functor></a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Base type for adaptors. <a href="structsigc_1_1adapts.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1adaptor__base.html">sigc::adaptor_base</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A hint to the compiler. <a href="structsigc_1_1adaptor__base.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1deduce__result__type.html">sigc::deduce_result_type<T_functor, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, I_derives_adaptor_base></a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Deduce the return type of a functor. <a href="structsigc_1_1deduce__result__type.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<class T_action, class T_functor> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__adaptors.html#ga0">sigc::visit_each</a> (const T_action& _A_action, const adaptor_functor<T_functor>& _A_target)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#ga0"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Adaptors are functors that alter the signature of a functor's operator()().
<p>
The adaptor types libsigc++ provides are created with <a class="el" href="group__bind.html#ga8">bind()</a>, <a class="el" href="group__bind.html#ga17">bind_return()</a>, <a class="el" href="group__hide.html#ga1">hide()</a>, <a class="el" href="group__hide.html#ga2">hide_return()</a>, <a class="el" href="group__retype.html#ga75">retype_return()</a>, <a class="el" href="group__retype.html#ga1">retype()</a>, <a class="el" href="group__compose.html#ga2">compose()</a>, <a class="el" href="namespacesigc.html#a31">exception_catch()</a> and <a class="el" href="namespacesigc.html#a44">group()</a>.<p>
You can easily derive your own adaptor type from <a class="el" href="structsigc_1_1adapts.html">sigc::adapts</a>. <hr><h2>Function Documentation</h2>
<a class="anchor" name="ga0" doxytag="sigc::visit_each"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" colspan="4">
template <class T_action, class T_functor> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void visit_each </td>
<td class="md" valign="top">(</td>
<td class="md" nowrap valign="top">const T_action& </td>
<td class="mdname" nowrap> <em>_A_action</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const adaptor_functor<T_functor>& </td>
<td class="mdname" nowrap> <em>_A_target</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Performs a functor on each of the targets of a functor.
<p>
The function overload for <a class="el" href="structsigc_1_1adaptor__functor.html">sigc::adaptor_functor</a> performs a functor on the functor stored in the <a class="el" href="structsigc_1_1adaptor__functor.html">sigc::adaptor_functor</a> object. </td>
</tr>
</table>
<hr><address><small>
Generated for libsigc++ 2.0 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.3.9.1 © 1997-2001</small></address>
</body>
</html>
|