<!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::pointer_functor0< T_return > 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.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <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="tabs"> <ul> <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"><a class="el" href="namespacesigc.html">sigc</a>::<a class="el" href="classsigc_1_1pointer__functor0.html">pointer_functor0</a> </div> </div> <div class="contents"> <h1>sigc::pointer_functor0< T_return > Class Template Reference<br/> <small> [<a class="el" href="group__ptr__fun.html">ptr_fun()</a>]</small> </h1><!-- doxytag: class="sigc::pointer_functor0" --><!-- doxytag: inherits="sigc::functor_base" --> <p><a class="el" href="classsigc_1_1pointer__functor0.html" title="pointer_functor0 wraps existing non-member functions with 0 argument(s).">pointer_functor0</a> wraps existing non-member functions with 0 argument(s). <a href="#_details">More...</a></p> <p><code>#include <sigc++/functors/ptr_fun.h></code></p> <div class="dynheader"> Inheritance diagram for sigc::pointer_functor0< T_return >:</div> <div class="dynsection"> <div class="center"><img src="classsigc_1_1pointer__functor0__inherit__graph.png" border="0" usemap="#sigc_1_1pointer__functor0_3_01T__return_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="sigc_1_1pointer__functor0_3_01T__return_01_4_inherit__map" id="sigc_1_1pointer__functor0_3_01T__return_01_4_inherit__map"> <area shape="rect" href="structsigc_1_1functor__base.html" title="A hint to the compiler." alt="" coords="59,7,195,33"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classsigc_1_1pointer__functor0-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af44316e53e33b4184ca151b6b11c70e5"></a><!-- doxytag: member="sigc::pointer_functor0::result_type" ref="af44316e53e33b4184ca151b6b11c70e5" args="" --> typedef T_return </td><td class="memItemRight" valign="bottom"><b>result_type</b></td></tr> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afdb67f682e7b9190f646eed879dcfbe4"></a><!-- doxytag: member="sigc::pointer_functor0::pointer_functor0" ref="afdb67f682e7b9190f646eed879dcfbe4" args="()" -->  </td><td class="memItemRight" valign="bottom"><a class="el" href="classsigc_1_1pointer__functor0.html#afdb67f682e7b9190f646eed879dcfbe4">pointer_functor0</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_1pointer__functor0.html#a9ae3efd5c13c738db815f619499004d7">pointer_functor0</a> (function_type _A_func)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classsigc_1_1pointer__functor0.html" title="pointer_functor0 wraps existing non-member functions with 0 argument(s).">pointer_functor0</a> object that wraps an existing function. <a href="#a9ae3efd5c13c738db815f619499004d7"></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_1pointer__functor0.html#afb058396d0f84a248197ddb7d4aed109">operator()</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Execute the wrapped function. <a href="#afb058396d0f84a248197ddb7d4aed109"></a><br/></td></tr> <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af998b64dac7b3c7eeb2e9a2856a4213e"></a><!-- doxytag: member="sigc::pointer_functor0::func_ptr_" ref="af998b64dac7b3c7eeb2e9a2856a4213e" 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><br/> class sigc::pointer_functor0< T_return ></h3> <p><a class="el" href="classsigc_1_1pointer__functor0.html" title="pointer_functor0 wraps existing non-member functions with 0 argument(s).">pointer_functor0</a> wraps existing non-member functions with 0 argument(s). </p> <p>Use the convenience function <a class="el" href="group__ptr__fun.html#gada8b678665c14dc85eb32d25b7299465" title="Creates a functor of type sigc::pointer_functor0 which wraps an existing non-member...">ptr_fun()</a> to create an instance of <a class="el" href="classsigc_1_1pointer__functor0.html" title="pointer_functor0 wraps existing non-member functions with 0 argument(s).">pointer_functor0</a>.</p> <p>The following template arguments are used:</p> <ul> <li><em>T_return</em> The return type of <a class="el" href="classsigc_1_1pointer__functor0.html#afb058396d0f84a248197ddb7d4aed109" title="Execute the wrapped function.">operator()()</a>. </li> </ul> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a9ae3efd5c13c738db815f619499004d7"></a><!-- doxytag: member="sigc::pointer_functor0::pointer_functor0" ref="a9ae3efd5c13c738db815f619499004d7" args="(function_type _A_func)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_return > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classsigc_1_1pointer__functor0.html">sigc::pointer_functor0</a>< T_return >::<a class="el" href="classsigc_1_1pointer__functor0.html">pointer_functor0</a> </td> <td>(</td> <td class="paramtype">function_type </td> <td class="paramname"> <em>_A_func</em></td> <td> ) </td> <td><code> [inline, explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a <a class="el" href="classsigc_1_1pointer__functor0.html" title="pointer_functor0 wraps existing non-member functions with 0 argument(s).">pointer_functor0</a> object that wraps an existing function. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>_A_func</em> </td><td>Pointer to function that will be invoked from <a class="el" href="classsigc_1_1pointer__functor0.html#afb058396d0f84a248197ddb7d4aed109" title="Execute the wrapped function.">operator()()</a>. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="afb058396d0f84a248197ddb7d4aed109"></a><!-- doxytag: member="sigc::pointer_functor0::operator()" ref="afb058396d0f84a248197ddb7d4aed109" args="() const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_return > </div> <table class="memname"> <tr> <td class="memname">T_return <a class="el" href="classsigc_1_1pointer__functor0.html">sigc::pointer_functor0</a>< T_return >::operator() </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Execute the wrapped function. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The return value of the function invocation. </dd></dl> </div> </div> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 21:44:48 2010 for libsigc++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>