<!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, T_type5, 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_01Tf230465d8da8d21a2da815d7eb05b413.html">bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, 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, T_type5, 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, T_type5, nil, nil >" --><!-- doxytag: inherits="sigc::adapts" --> <p>Adaptor that binds 5 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, T_type5, 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_01T69acdb40ccadd9132b5b22be14f1d570.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_01T__type5_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_01T__type5_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_01T__type5_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="199,160,385,189"/><area shape="rect" id="node4" href="structsigc_1_1adaptor__base.html" title="A hint to the compiler." alt="" coords="221,83,363,112"/><area shape="rect" id="node6" href="structsigc_1_1functor__base.html" title="A hint to the compiler." alt="" coords="223,5,361,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_01T8b56690e14425f094432a8a8a13b1d47.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="a44729fbea5675e17e580eff1eb0a393a"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::adaptor_type" ref="a44729fbea5675e17e580eff1eb0a393a" 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="a6836c666ddde5331afc0da584ddf92a2"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::result_type" ref="a6836c666ddde5331afc0da584ddf92a2" 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_01Tf230465d8da8d21a2da815d7eb05b413.html#acd5470485ad4ccf8a956a2b678f0a7bb">operator()</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Invokes the wrapped functor passing on the bound argument only. <a href="#acd5470485ad4ccf8a956a2b678f0a7bb"></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_01Tf230465d8da8d21a2da815d7eb05b413.html#a0f8b0ab2bbc081d162f86297829958f1">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="#a0f8b0ab2bbc081d162f86297829958f1"></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_01Tf230465d8da8d21a2da815d7eb05b413.html#aff838606799e912f9b3b8a655e2bca53">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="#aff838606799e912f9b3b8a655e2bca53"></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_01Tf230465d8da8d21a2da815d7eb05b413.html#a139f13a91c6defcbe9d5a792a077f0a0">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, typename type_trait< T_type5 >::take _A_bound5)</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="#a139f13a91c6defcbe9d5a792a077f0a0"></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="a6b5fed0e07352377b26e3478ce8a14d6"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::bound1_" ref="a6b5fed0e07352377b26e3478ce8a14d6" 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_01Tf230465d8da8d21a2da815d7eb05b413.html#a6b5fed0e07352377b26e3478ce8a14d6">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="a36592a7778e76e4f2367c601a76e673b"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::bound2_" ref="a36592a7778e76e4f2367c601a76e673b" 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="a4641abd3cae48f7f0c7077438db32f4d"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::bound3_" ref="a4641abd3cae48f7f0c7077438db32f4d" 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="a7a35dc6c868269f2952531c4db84cc54"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::bound4_" ref="a7a35dc6c868269f2952531c4db84cc54" 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> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c3fefad99767ba5b808a48b2cd9d8ce"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::bound5_" ref="a2c3fefad99767ba5b808a48b2cd9d8ce" args="" --> <a class="el" href="classsigc_1_1bound__argument.html">bound_argument</a>< T_type5 > </td><td class="memItemRight" valign="bottom"><b>bound5_</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, class T_type5><br/> struct sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil ></h3> <p>Adaptor that binds 5 argument(s) to the wrapped functor. </p> <p>This template specialization fixes the last 5 argument(s) of the wrapped functor. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a139f13a91c6defcbe9d5a792a077f0a0"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::bind_functor" ref="a139f13a91c6defcbe9d5a792a077f0a0" 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, typename type_trait< T_type5 >::take _A_bound5)" --> <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 , class T_type5 > </div> <table class="memname"> <tr> <td class="memname">sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, 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 class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_type5 >::take </td> <td class="paramname"> <em>_A_bound5</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_01Tf230465d8da8d21a2da815d7eb05b413.html#acd5470485ad4ccf8a956a2b678f0a7bb" 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="acd5470485ad4ccf8a956a2b678f0a7bb"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::operator()" ref="acd5470485ad4ccf8a956a2b678f0a7bb" 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 , class T_type5 > </div> <table class="memname"> <tr> <td class="memname">result_type sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, 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="aff838606799e912f9b3b8a655e2bca53"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::operator()" ref="aff838606799e912f9b3b8a655e2bca53" 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 , class T_type5 > </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, T_type5, 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 5 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="a0f8b0ab2bbc081d162f86297829958f1"></a><!-- doxytag: member="sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil >::operator()" ref="a0f8b0ab2bbc081d162f86297829958f1" 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 , class T_type5 > </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, T_type5, 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 5 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>