<!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::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil > Struct Template 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="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html">bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil ></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::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil > Struct Template Reference<br/> <small> [<a class="el" href="group__bind.html">bind(), bind_return()</a>]</small> </h1> </div> </div> <div class="contents"> <!-- doxytag: class="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >" --><!-- doxytag: inherits="sigc::adapts" --> <p>Adaptor that binds 4 argument(s) to the wrapped functor. <a href="#_details">More...</a></p> <p><code>#include <sigc++/adaptors/bind.h></code></p> <!-- startSectionHeader --><div class="dynheader"> Inheritance diagram for sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >:<!-- endSectionHeader --></div> <!-- startSectionSummary --><!-- endSectionSummary --><!-- startSectionContent --><div class="dyncontent"> <div class="center"><img src="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T723f3b4044979b2b751d7da0157d7605.png" border="0" usemap="#sigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T__type4_00_01nil_00_01nil_00_01nil_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="sigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T__type4_00_01nil_00_01nil_00_01nil_01_4_inherit__map" id="sigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T__type4_00_01nil_00_01nil_00_01nil_01_4_inherit__map"> <area shape="rect" id="node2" href="structsigc_1_1adapts.html" title="Base type for adaptors." alt="" coords="181,160,368,189"/><area shape="rect" id="node4" href="structsigc_1_1adaptor__base.html" title="A hint to the compiler." alt="" coords="204,83,345,112"/><area shape="rect" id="node6" href="structsigc_1_1functor__base.html" title="A hint to the compiler." alt="" coords="205,5,344,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center><!-- endSectionContent --></div> <p><a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T80924a7b7c3c1f42ece02e3f2d52a352.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="a92b89a6d0d13c0e9ae5309908b581608"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::adaptor_type" ref="a92b89a6d0d13c0e9ae5309908b581608" args="" --> typedef <a class="el" href="structsigc_1_1adapts.html">adapts</a>< T_functor ><br class="typebreak"/> ::adaptor_type </td><td class="memItemRight" valign="bottom"><b>adaptor_type</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aecd13135852faa48d9414eed9202982c"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::result_type" ref="aecd13135852faa48d9414eed9202982c" args="" --> typedef adaptor_type::result_type </td><td class="memItemRight" valign="bottom"><b>result_type</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">result_type </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#aebf48e91c18c66ce5aa5b1230fd0fdb3">operator()</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Invokes the wrapped functor passing on the bound argument only. <a href="#aebf48e91c18c66ce5aa5b1230fd0fdb3"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_arg1 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structsigc_1_1deduce__result__type.html">deduce_result_type</a>< T_arg1 >::<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01172.html#ga2c2933c16c723af4d77eb939438617ca">type</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#a0848580916c20699c80b86452021fc5c">operator()</a> (T_arg1 _A_arg1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Invokes the wrapped functor passing on the arguments. <a href="#a0848580916c20699c80b86452021fc5c"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_arg1 , class T_arg2 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structsigc_1_1deduce__result__type.html">deduce_result_type</a>< T_arg1, <br class="typebreak"/> T_arg2 >::<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01172.html#ga2c2933c16c723af4d77eb939438617ca">type</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#a28b2a3658b6578cf96d82d4840db9621">operator()</a> (T_arg1 _A_arg1, T_arg2 _A_arg2)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Invokes the wrapped functor passing on the arguments. <a href="#a28b2a3658b6578cf96d82d4840db9621"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_arg1 , class T_arg2 , class T_arg3 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structsigc_1_1deduce__result__type.html">deduce_result_type</a>< T_arg1, <br class="typebreak"/> T_arg2, T_arg3 >::<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01172.html#ga2c2933c16c723af4d77eb939438617ca">type</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#a6c8275179c0b0824141f4437e4e703af">operator()</a> (T_arg1 _A_arg1, T_arg2 _A_arg2, T_arg3 _A_arg3)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Invokes the wrapped functor passing on the arguments. <a href="#a6c8275179c0b0824141f4437e4e703af"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#a6dfa95d7e06c08f9cd8ed03f14431575">bind_functor</a> (typename type_trait< T_functor >::take _A_func, typename type_trait< T_type1 >::take _A_bound1, typename type_trait< T_type2 >::take _A_bound2, typename type_trait< T_type3 >::take _A_bound3, typename type_trait< T_type4 >::take _A_bound4)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a bind_functor object that binds an argument to the passed functor. <a href="#a6dfa95d7e06c08f9cd8ed03f14431575"></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"><a class="anchor" id="a0d2d5d66ee71ffbb8e7218a7e4f2c0f6"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::bound1_" ref="a0d2d5d66ee71ffbb8e7218a7e4f2c0f6" args="" --> <a class="el" href="classsigc_1_1bound__argument.html">bound_argument</a>< T_type1 > </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#a0d2d5d66ee71ffbb8e7218a7e4f2c0f6">bound1_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The argument bound to the functor. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf10518fcf731d95e0e6e27c9fc1741c"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::bound2_" ref="abf10518fcf731d95e0e6e27c9fc1741c" args="" --> <a class="el" href="classsigc_1_1bound__argument.html">bound_argument</a>< T_type2 > </td><td class="memItemRight" valign="bottom"><b>bound2_</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af6b463eded8ff99c422a34f98519bb79"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::bound3_" ref="af6b463eded8ff99c422a34f98519bb79" args="" --> <a class="el" href="classsigc_1_1bound__argument.html">bound_argument</a>< T_type3 > </td><td class="memItemRight" valign="bottom"><b>bound3_</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5187e45b7af1006767c5ebb288c3555e"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::bound4_" ref="a5187e45b7af1006767c5ebb288c3555e" args="" --> <a class="el" href="classsigc_1_1bound__argument.html">bound_argument</a>< T_type4 > </td><td class="memItemRight" valign="bottom"><b>bound4_</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <h3>template <class T_functor, class T_type1, class T_type2, class T_type3, class T_type4><br/> struct sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil ></h3> <p>Adaptor that binds 4 argument(s) to the wrapped functor. </p> <p>This template specialization fixes the last 4 argument(s) of the wrapped functor. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a6dfa95d7e06c08f9cd8ed03f14431575"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::bind_functor" ref="a6dfa95d7e06c08f9cd8ed03f14431575" args="(typename type_trait< T_functor >::take _A_func, typename type_trait< T_type1 >::take _A_bound1, typename type_trait< T_type2 >::take _A_bound2, typename type_trait< T_type3 >::take _A_bound3, typename type_trait< T_type4 >::take _A_bound4)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 > </div> <table class="memname"> <tr> <td class="memname">sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::bind_functor </td> <td>(</td> <td class="paramtype">typename type_trait< T_functor >::take </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_type1 >::take </td> <td class="paramname"> <em>_A_bound1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_type2 >::take </td> <td class="paramname"> <em>_A_bound2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_type3 >::take </td> <td class="paramname"> <em>_A_bound3</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_type4 >::take </td> <td class="paramname"> <em>_A_bound4</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a bind_functor object that binds an argument to the passed functor. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_functor</td><td>Functor to invoke from <a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#aebf48e91c18c66ce5aa5b1230fd0fdb3" title="Invokes the wrapped functor passing on the bound argument only.">operator()()</a>. </td></tr> <tr><td class="paramname">_A_bound</td><td>Argument to bind to the functor. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aebf48e91c18c66ce5aa5b1230fd0fdb3"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator()" ref="aebf48e91c18c66ce5aa5b1230fd0fdb3" args="()" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 > </div> <table class="memname"> <tr> <td class="memname">result_type sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator() </td> <td>(</td> <td class="paramname"> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Invokes the wrapped functor passing on the bound argument only. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The return value of the functor invocation. </dd></dl> </div> </div> <a class="anchor" id="a6c8275179c0b0824141f4437e4e703af"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator()" ref="a6c8275179c0b0824141f4437e4e703af" args="(T_arg1 _A_arg1, T_arg2 _A_arg2, T_arg3 _A_arg3)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 > </div> <div class="memtemplate"> template <class T_arg1 , class T_arg2 , class T_arg3 > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="structsigc_1_1deduce__result__type.html">deduce_result_type</a><T_arg1, T_arg2, T_arg3>::<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01172.html#ga2c2933c16c723af4d77eb939438617ca">type</a> sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator() </td> <td>(</td> <td class="paramtype">T_arg1 </td> <td class="paramname"> <em>_A_arg1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_arg2 </td> <td class="paramname"> <em>_A_arg2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_arg3 </td> <td class="paramname"> <em>_A_arg3</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Invokes the wrapped functor passing on the arguments. </p> <p>The last 4 argument(s) are fixed. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_arg1</td><td>Argument to be passed on to the functor. </td></tr> <tr><td class="paramname">_A_arg2</td><td>Argument to be passed on to the functor. </td></tr> <tr><td class="paramname">_A_arg3</td><td>Argument to be passed on to the functor. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The return value of the functor invocation. </dd></dl> </div> </div> <a class="anchor" id="a28b2a3658b6578cf96d82d4840db9621"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator()" ref="a28b2a3658b6578cf96d82d4840db9621" args="(T_arg1 _A_arg1, T_arg2 _A_arg2)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 > </div> <div class="memtemplate"> template <class T_arg1 , class T_arg2 > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="structsigc_1_1deduce__result__type.html">deduce_result_type</a><T_arg1, T_arg2>::<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01172.html#ga2c2933c16c723af4d77eb939438617ca">type</a> sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator() </td> <td>(</td> <td class="paramtype">T_arg1 </td> <td class="paramname"> <em>_A_arg1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_arg2 </td> <td class="paramname"> <em>_A_arg2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Invokes the wrapped functor passing on the arguments. </p> <p>The last 4 argument(s) are fixed. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_arg1</td><td>Argument to be passed on to the functor. </td></tr> <tr><td class="paramname">_A_arg2</td><td>Argument to be passed on to the functor. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The return value of the functor invocation. </dd></dl> </div> </div> <a class="anchor" id="a0848580916c20699c80b86452021fc5c"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator()" ref="a0848580916c20699c80b86452021fc5c" args="(T_arg1 _A_arg1)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 > </div> <div class="memtemplate"> template <class T_arg1 > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="structsigc_1_1deduce__result__type.html">deduce_result_type</a><T_arg1>::<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01172.html#ga2c2933c16c723af4d77eb939438617ca">type</a> sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil >::operator() </td> <td>(</td> <td class="paramtype">T_arg1 </td> <td class="paramname"> <em>_A_arg1</em> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Invokes the wrapped functor passing on the arguments. </p> <p>The last 4 argument(s) are fixed. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_arg1</td><td>Argument to be passed on to the functor. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The return value of the functor invocation. </dd></dl> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Mar 8 2011 11:44:43 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>