libsigc++
2.10.2
|
Adaptors are functors that alter the signature of a functor's operator()(). More...
Modules | |
bind(), bind_return() | |
sigc::bind() alters an arbitrary functor by fixing arguments to certain values. Up to 7 arguments can be bound at a time. For single argument binding, overloads of sigc::bind() are provided that let you specify the zero-based position of the argument to fix with the first template parameter. (A value of -1 fixes the last argument so sigc::bind<-1>() gives the same result as sigc::bind().) The types of the arguments can optionally be specified if not deduced. | |
compose() | |
sigc::compose() combines two or three arbitrary functors. On invokation, parameters are passed on to one or two getter functor(s). The return value(s) are then passed on to the setter function. | |
exception_catch() | |
sigc::exception_catch() catches an exception thrown from within the wrapped functor and directs it to a catcher functor. This catcher can then rethrow the exception and catch it with the proper type. | |
hide(), hide_return() | |
sigc::hide() alters an arbitrary functor in that it adds a parameter whose value is ignored on invocation of the returned functor. Thus you can discard one argument of a signal. | |
retype(), retype_return() | |
sigc::retype() alters a sigc::pointer_functor, a sigc::mem_functor or a sigc::slot in that it makes C-style casts to the functor's parameter types of all parameters passed through operator()(). | |
track_obj() | |
sigc::track_obj() tracks trackable objects, referenced from a functor. It can be useful when you assign a C++11 lambda expression or a std::function<> to a slot, or connect it to a signal, and the lambda expression or std::function<> contains references to sigc::trackable derived objects. | |
Classes | |
struct | sigc::adaptor_base |
A hint to the compiler. More... | |
struct | sigc::adaptor_functor< T_functor > |
Converts an arbitrary functor into an adaptor type. More... | |
struct | sigc::adaptor_trait< T_functor, I_isadaptor > |
Trait that specifies what is the adaptor version of a functor type. More... | |
struct | sigc::adapts< T_functor > |
Base type for adaptors. More... | |
struct | sigc::deduce_result_type< T_functor, T_args > |
Deduce the return type of a functor. More... | |
Adaptors are functors that alter the signature of a functor's operator()().
The adaptor types libsigc++ provides are created with bind(), bind_return(), hide(), hide_return(), retype_return(), retype(), compose(), exception_catch(), track_obj() and group().
You can easily derive your own adaptor type from sigc::adapts.