libsigc++ 3.6.0
Public Member Functions | Protected Attributes | List of all members
sigc::pointer_functor< T_return(T_args...)> Class Template Reference

#include <sigc++/functors/ptr_fun.h>

Public Member Functions

 pointer_functor ()=default
 Constructs an invalid functor.
 
 pointer_functor (function_type func)
 Constructs a pointer_functor2 object that wraps an existing function.
 
T_return operator() (type_trait_take_t< T_args >... a) const
 Execute the wrapped function.
 

Protected Attributes

function_type func_ptr_
 

Constructor & Destructor Documentation

◆ pointer_functor() [1/2]

template <typename T_return , typename... T_args>
sigc::pointer_functor< T_return(T_args...)>::pointer_functor ( )
default

Constructs an invalid functor.

◆ pointer_functor() [2/2]

template <typename T_return , typename... T_args>
sigc::pointer_functor< T_return(T_args...)>::pointer_functor ( function_type  func)
inlineexplicit

Constructs a pointer_functor2 object that wraps an existing function.

Parameters
funcPointer to function that will be invoked from operator()().

Member Function Documentation

◆ operator()()

template <typename T_return , typename... T_args>
T_return sigc::pointer_functor< T_return(T_args...)>::operator() ( type_trait_take_t< T_args >...  a) const
inline

Execute the wrapped function.

Parameters
aArguments to be passed on to the function.
Returns
The return value of the function invocation.

Member Data Documentation

◆ func_ptr_

template <typename T_return , typename... T_args>
function_type sigc::pointer_functor< T_return(T_args...)>::func_ptr_
protected