libsigc++  2.10.2
Public Types | Public Member Functions | List of all members
sigc::track_obj_functor1< T_functor, T_obj1 > Class Template Reference

track_obj_functor1 wraps a functor and stores a reference to a trackable object. More...

#include <sigc++/adaptors/track_obj.h>

Inheritance diagram for sigc::track_obj_functor1< T_functor, T_obj1 >:
Inheritance graph
[legend]

Public Types

typedef adapts< T_functor >::adaptor_type adaptor_type
 
typedef adaptor_type::result_type result_type
 
- Public Types inherited from sigc::adapts< T_functor >
typedef adaptor_trait< T_functor >::adaptor_type adaptor_type
 
typedef adaptor_trait< T_functor >::result_type result_type
 

Public Member Functions

 track_obj_functor1 (const T_functor& _A_func, const T_obj1& _A_obj1)
 Constructs a track_obj_functor1 object that wraps the passed functor and stores a reference to the passed trackable object. More...
 
result_type operator() ()
 Invokes the wrapped functor. More...
 
template<typename T_arg1 >
deduce_result_type< T_arg1 >::type operator() (T_arg1 _A_arg1)
 Invokes the wrapped functor passing on the arguments. More...
 
template<typename T_arg1 , typename T_arg2 >
deduce_result_type< T_arg1, T_arg2 >::type operator() (T_arg1 _A_arg1, T_arg2 _A_arg2)
 Invokes the wrapped functor passing on the arguments. More...
 
template<typename T_arg1 , typename T_arg2 , typename T_arg3 >
deduce_result_type< T_arg1, T_arg2, T_arg3 >::type operator() (T_arg1 _A_arg1, T_arg2 _A_arg2, T_arg3 _A_arg3)
 Invokes the wrapped functor passing on the arguments. More...
 
template<typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 >
deduce_result_type< T_arg1, T_arg2, T_arg3, T_arg4 >::type operator() (T_arg1 _A_arg1, T_arg2 _A_arg2, T_arg3 _A_arg3, T_arg4 _A_arg4)
 Invokes the wrapped functor passing on the arguments. More...
 
template<typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 , typename T_arg5 >
deduce_result_type< T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 >::type operator() (T_arg1 _A_arg1, T_arg2 _A_arg2, T_arg3 _A_arg3, T_arg4 _A_arg4, T_arg5 _A_arg5)
 Invokes the wrapped functor passing on the arguments. More...
 
template<typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 , typename T_arg5 , typename T_arg6 >
deduce_result_type< T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 >::type operator() (T_arg1 _A_arg1, T_arg2 _A_arg2, T_arg3 _A_arg3, T_arg4 _A_arg4, T_arg5 _A_arg5, T_arg6 _A_arg6)
 Invokes the wrapped functor passing on the arguments. More...
 
template<typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 , typename T_arg5 , typename T_arg6 , typename T_arg7 >
deduce_result_type< T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 >::type operator() (T_arg1 _A_arg1, T_arg2 _A_arg2, T_arg3 _A_arg3, T_arg4 _A_arg4, T_arg5 _A_arg5, T_arg6 _A_arg6, T_arg7 _A_arg7)
 Invokes the wrapped functor passing on the arguments. More...
 
- Public Member Functions inherited from sigc::adapts< T_functor >
 adapts (const T_functor& _A_functor)
 Constructs an adaptor that wraps the passed functor. More...
 

Additional Inherited Members

- Public Attributes inherited from sigc::adapts< T_functor >
adaptor_type functor_
 Adaptor that is invoked from operator()(). More...
 

Detailed Description

template<typename T_functor, typename T_obj1>
class sigc::track_obj_functor1< T_functor, T_obj1 >

track_obj_functor1 wraps a functor and stores a reference to a trackable object.

Use the convenience function track_obj() to create an instance of track_obj_functor1.

Template Parameters
T_functorThe type of functor to wrap.
T_obj1The type of a trackable object.
Since libsigc++ 2.4:

Member Typedef Documentation

template <typename T_functor , typename T_obj1 >
typedef adapts<T_functor>::adaptor_type sigc::track_obj_functor1< T_functor, T_obj1 >::adaptor_type
template <typename T_functor , typename T_obj1 >
typedef adaptor_type::result_type sigc::track_obj_functor1< T_functor, T_obj1 >::result_type

Constructor & Destructor Documentation

template <typename T_functor , typename T_obj1 >
sigc::track_obj_functor1< T_functor, T_obj1 >::track_obj_functor1 ( const T_functor &  _A_func,
const T_obj1 &  _A_obj1 
)
inline

Constructs a track_obj_functor1 object that wraps the passed functor and stores a reference to the passed trackable object.

Parameters
_A_funcFunctor.
_A_obj1Trackable object.

Member Function Documentation

template <typename T_functor , typename T_obj1 >
result_type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( )
inline

Invokes the wrapped functor.

Returns
The return value of the functor invocation.
template <typename T_functor , typename T_obj1 >
template <typename T_arg1 >
deduce_result_type<T_arg1>::type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( T_arg1  _A_arg1)
inline

Invokes the wrapped functor passing on the arguments.

Parameters
_A_arg1Argument to be passed on to the functor.
Returns
The return value of the functor invocation.
template <typename T_functor , typename T_obj1 >
template <typename T_arg1 , typename T_arg2 >
deduce_result_type<T_arg1, T_arg2>::type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( T_arg1  _A_arg1,
T_arg2  _A_arg2 
)
inline

Invokes the wrapped functor passing on the arguments.

Parameters
_A_arg1Argument to be passed on to the functor.
_A_arg2Argument to be passed on to the functor.
Returns
The return value of the functor invocation.
template <typename T_functor , typename T_obj1 >
template <typename T_arg1 , typename T_arg2 , typename T_arg3 >
deduce_result_type<T_arg1, T_arg2, T_arg3>::type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( T_arg1  _A_arg1,
T_arg2  _A_arg2,
T_arg3  _A_arg3 
)
inline

Invokes the wrapped functor passing on the arguments.

Parameters
_A_arg1Argument to be passed on to the functor.
_A_arg2Argument to be passed on to the functor.
_A_arg3Argument to be passed on to the functor.
Returns
The return value of the functor invocation.
template <typename T_functor , typename T_obj1 >
template <typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 >
deduce_result_type<T_arg1, T_arg2, T_arg3, T_arg4>::type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( T_arg1  _A_arg1,
T_arg2  _A_arg2,
T_arg3  _A_arg3,
T_arg4  _A_arg4 
)
inline

Invokes the wrapped functor passing on the arguments.

Parameters
_A_arg1Argument to be passed on to the functor.
_A_arg2Argument to be passed on to the functor.
_A_arg3Argument to be passed on to the functor.
_A_arg4Argument to be passed on to the functor.
Returns
The return value of the functor invocation.
template <typename T_functor , typename T_obj1 >
template <typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 , typename T_arg5 >
deduce_result_type<T_arg1, T_arg2, T_arg3, T_arg4, T_arg5>::type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( T_arg1  _A_arg1,
T_arg2  _A_arg2,
T_arg3  _A_arg3,
T_arg4  _A_arg4,
T_arg5  _A_arg5 
)
inline

Invokes the wrapped functor passing on the arguments.

Parameters
_A_arg1Argument to be passed on to the functor.
_A_arg2Argument to be passed on to the functor.
_A_arg3Argument to be passed on to the functor.
_A_arg4Argument to be passed on to the functor.
_A_arg5Argument to be passed on to the functor.
Returns
The return value of the functor invocation.
template <typename T_functor , typename T_obj1 >
template <typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 , typename T_arg5 , typename T_arg6 >
deduce_result_type<T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6>::type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( T_arg1  _A_arg1,
T_arg2  _A_arg2,
T_arg3  _A_arg3,
T_arg4  _A_arg4,
T_arg5  _A_arg5,
T_arg6  _A_arg6 
)
inline

Invokes the wrapped functor passing on the arguments.

Parameters
_A_arg1Argument to be passed on to the functor.
_A_arg2Argument to be passed on to the functor.
_A_arg3Argument to be passed on to the functor.
_A_arg4Argument to be passed on to the functor.
_A_arg5Argument to be passed on to the functor.
_A_arg6Argument to be passed on to the functor.
Returns
The return value of the functor invocation.
template <typename T_functor , typename T_obj1 >
template <typename T_arg1 , typename T_arg2 , typename T_arg3 , typename T_arg4 , typename T_arg5 , typename T_arg6 , typename T_arg7 >
deduce_result_type<T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7>::type sigc::track_obj_functor1< T_functor, T_obj1 >::operator() ( T_arg1  _A_arg1,
T_arg2  _A_arg2,
T_arg3  _A_arg3,
T_arg4  _A_arg4,
T_arg5  _A_arg5,
T_arg6  _A_arg6,
T_arg7  _A_arg7 
)
inline

Invokes the wrapped functor passing on the arguments.

Parameters
_A_arg1Argument to be passed on to the functor.
_A_arg2Argument to be passed on to the functor.
_A_arg3Argument to be passed on to the functor.
_A_arg4Argument to be passed on to the functor.
_A_arg5Argument to be passed on to the functor.
_A_arg6Argument to be passed on to the functor.
_A_arg7Argument to be passed on to the functor.
Returns
The return value of the functor invocation.