<!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::const_mem_functor2< T_return, T_obj, T_arg1, T_arg2 > Class 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="classsigc_1_1const__mem__functor2.html">const_mem_functor2</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="#pro-attribs">Protected Attributes</a> </div> <div class="headertitle"> <h1>sigc::const_mem_functor2< T_return, T_obj, T_arg1, T_arg2 > Class Template Reference<br/> <small> [<a class="el" href="group__mem__fun.html">mem_fun()</a>]</small> </h1> </div> </div> <div class="contents"> <!-- doxytag: class="sigc::const_mem_functor2" --><!-- doxytag: inherits="sigc::functor_base" --> <p><a class="el" href="classsigc_1_1const__mem__functor2.html" title="const_mem_functor2 wraps const methods with 2 argument(s).">const_mem_functor2</a> wraps const methods with 2 argument(s). <a href="#_details">More...</a></p> <p><code>#include <sigc++/functors/mem_fun.h></code></p> <!-- startSectionHeader --><div class="dynheader"> Inheritance diagram for sigc::const_mem_functor2< T_return, T_obj, T_arg1, T_arg2 >:<!-- endSectionHeader --></div> <!-- startSectionSummary --><!-- endSectionSummary --><!-- startSectionContent --><div class="dyncontent"> <div class="center"><img src="classsigc_1_1const__mem__functor2__inherit__graph.png" border="0" usemap="#sigc_1_1const__mem__functor2_3_01T__return_00_01T__obj_00_01T__arg1_00_01T__arg2_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="sigc_1_1const__mem__functor2_3_01T__return_00_01T__obj_00_01T__arg1_00_01T__arg2_01_4_inherit__map" id="sigc_1_1const__mem__functor2_3_01T__return_00_01T__obj_00_01T__arg1_00_01T__arg2_01_4_inherit__map"> <area shape="rect" id="node5" href="classsigc_1_1bound__const__mem__functor2.html" title="bound_const_mem_functor2 encapsulates a const method with 2 arguments and an object instance..." alt="" coords="5,160,469,189"/><area shape="rect" id="node2" href="structsigc_1_1functor__base.html" title="A hint to the compiler." alt="" coords="168,5,307,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center><!-- endSectionContent --></div> <p><a href="classsigc_1_1const__mem__functor2-members.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="a4c2bb98ed93c164db29504c4d7570361"></a><!-- doxytag: member="sigc::const_mem_functor2::function_type" ref="a4c2bb98ed93c164db29504c4d7570361" args=")(T_arg1, T_arg2) const " --> typedef T_return(T_obj::* </td><td class="memItemRight" valign="bottom"><b>function_type</b> )(T_arg1, T_arg2) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5eaa5f2ab10ad755c89ff5b09c1e281d"></a><!-- doxytag: member="sigc::const_mem_functor2::result_type" ref="a5eaa5f2ab10ad755c89ff5b09c1e281d" args="" --> typedef T_return </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"><a class="anchor" id="a6265bdc51f35d8d5274bfeb8cdafc1dc"></a><!-- doxytag: member="sigc::const_mem_functor2::const_mem_functor2" ref="a6265bdc51f35d8d5274bfeb8cdafc1dc" args="()" -->  </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1const__mem__functor2.html#a6265bdc51f35d8d5274bfeb8cdafc1dc">const_mem_functor2</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs an invalid functor. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1const__mem__functor2.html#ab281b110d1fbba86e2d58f9607d0f0c3">const_mem_functor2</a> (function_type _A_func)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classsigc_1_1const__mem__functor2.html" title="const_mem_functor2 wraps const methods with 2 argument(s).">const_mem_functor2</a> object that wraps the passed method. <a href="#ab281b110d1fbba86e2d58f9607d0f0c3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T_return </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1const__mem__functor2.html#a9da6633c6aa91f86ce986967566747b6">operator()</a> (const T_obj* _A_obj, typename type_trait< T_arg1 >::take _A_a1, typename type_trait< T_arg2 >::take _A_a2) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Execute the wrapped method operating on the passed instance. <a href="#a9da6633c6aa91f86ce986967566747b6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T_return </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1const__mem__functor2.html#a6441206062146d43a0e72be48519ae02">operator()</a> (const T_obj& _A_obj, typename type_trait< T_arg1 >::take _A_a1, typename type_trait< T_arg2 >::take _A_a2) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Execute the wrapped method operating on the passed instance. <a href="#a6441206062146d43a0e72be48519ae02"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4445ff55323e94d525c1b2574ee32ddc"></a><!-- doxytag: member="sigc::const_mem_functor2::func_ptr_" ref="a4445ff55323e94d525c1b2574ee32ddc" args="" --> function_type </td><td class="memItemRight" valign="bottom"><b>func_ptr_</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <h3>template <class T_return, class T_obj, class T_arg1, class T_arg2><br/> class sigc::const_mem_functor2< T_return, T_obj, T_arg1, T_arg2 ></h3> <p><a class="el" href="classsigc_1_1const__mem__functor2.html" title="const_mem_functor2 wraps const methods with 2 argument(s).">const_mem_functor2</a> wraps const methods with 2 argument(s). </p> <p>Use the convenience function <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01197.html#ga58aa3b67eba2b8219e7aec7d4cdebcdb">mem_fun()</a> to create an instance of <a class="el" href="classsigc_1_1const__mem__functor2.html" title="const_mem_functor2 wraps const methods with 2 argument(s).">const_mem_functor2</a>.</p> <p>The following template arguments are used:</p> <ul> <li><em>T_arg1</em> Argument type used in the definition of <a class="el" href="classsigc_1_1const__mem__functor2.html#a9da6633c6aa91f86ce986967566747b6" title="Execute the wrapped method operating on the passed instance.">operator()()</a>.</li> <li><em>T_arg2</em> Argument type used in the definition of <a class="el" href="classsigc_1_1const__mem__functor2.html#a9da6633c6aa91f86ce986967566747b6" title="Execute the wrapped method operating on the passed instance.">operator()()</a>.</li> <li><em>T_return</em> The return type of <a class="el" href="classsigc_1_1const__mem__functor2.html#a9da6633c6aa91f86ce986967566747b6" title="Execute the wrapped method operating on the passed instance.">operator()()</a>.</li> <li><em>T_obj</em> The object type. </li> </ul> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ab281b110d1fbba86e2d58f9607d0f0c3"></a><!-- doxytag: member="sigc::const_mem_functor2::const_mem_functor2" ref="ab281b110d1fbba86e2d58f9607d0f0c3" args="(function_type _A_func)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_return , class T_obj , class T_arg1 , class T_arg2 > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classsigc_1_1const__mem__functor2.html">sigc::const_mem_functor2</a>< T_return, T_obj, T_arg1, T_arg2 >::<a class="el" href="classsigc_1_1const__mem__functor2.html">const_mem_functor2</a> </td> <td>(</td> <td class="paramtype">function_type </td> <td class="paramname"> <em>_A_func</em> )</td> <td><code> [inline, explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a <a class="el" href="classsigc_1_1const__mem__functor2.html" title="const_mem_functor2 wraps const methods with 2 argument(s).">const_mem_functor2</a> object that wraps the passed method. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Pointer to method will be invoked from <a class="el" href="classsigc_1_1const__mem__functor2.html#a9da6633c6aa91f86ce986967566747b6" title="Execute the wrapped method operating on the passed instance.">operator()()</a>. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a9da6633c6aa91f86ce986967566747b6"></a><!-- doxytag: member="sigc::const_mem_functor2::operator()" ref="a9da6633c6aa91f86ce986967566747b6" args="(const T_obj *_A_obj, typename type_trait< T_arg1 >::take _A_a1, typename type_trait< T_arg2 >::take _A_a2) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_return , class T_obj , class T_arg1 , class T_arg2 > </div> <table class="memname"> <tr> <td class="memname">T_return <a class="el" href="classsigc_1_1const__mem__functor2.html">sigc::const_mem_functor2</a>< T_return, T_obj, T_arg1, T_arg2 >::operator() </td> <td>(</td> <td class="paramtype">const T_obj * </td> <td class="paramname"> <em>_A_obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_arg1 >::take </td> <td class="paramname"> <em>_A_a1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_arg2 >::take </td> <td class="paramname"> <em>_A_a2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Execute the wrapped method operating on the passed instance. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_obj</td><td>Pointer to instance the method should operate on. </td></tr> <tr><td class="paramname">_A_a1</td><td>Argument to be passed on to the method. </td></tr> <tr><td class="paramname">_A_a2</td><td>Argument to be passed on to the method. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The return value of the method invocation. </dd></dl> </div> </div> <a class="anchor" id="a6441206062146d43a0e72be48519ae02"></a><!-- doxytag: member="sigc::const_mem_functor2::operator()" ref="a6441206062146d43a0e72be48519ae02" args="(const T_obj &_A_obj, typename type_trait< T_arg1 >::take _A_a1, typename type_trait< T_arg2 >::take _A_a2) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_return , class T_obj , class T_arg1 , class T_arg2 > </div> <table class="memname"> <tr> <td class="memname">T_return <a class="el" href="classsigc_1_1const__mem__functor2.html">sigc::const_mem_functor2</a>< T_return, T_obj, T_arg1, T_arg2 >::operator() </td> <td>(</td> <td class="paramtype">const T_obj & </td> <td class="paramname"> <em>_A_obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_arg1 >::take </td> <td class="paramname"> <em>_A_a1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">typename type_trait< T_arg2 >::take </td> <td class="paramname"> <em>_A_a2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Execute the wrapped method operating on the passed instance. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_obj</td><td>Reference to instance the method should operate on. </td></tr> <tr><td class="paramname">_A_a1</td><td>Argument to be passed on to the method. </td></tr> <tr><td class="paramname">_A_a2</td><td>Argument to be passed on to the method. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The return value of the method invocation. </dd></dl> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Mar 8 2011 11:44:41 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>