"Fossies" - the Fresh Open Source Software Archive

Member "libsigc++-2.10.2/docs/reference/html/group__adaptors.html" (12 Jun 2019, 11306 Bytes) of package /linux/misc/libsigc++-2.10.2.tar.xz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the libsigc++-2.10.2.tar.xz project site itself.

libsigc++  2.10.2
Modules | Classes

Adaptors are functors that alter the signature of a functor's operator()(). More...


 bind(), bind_return()
 sigc::bind() alters an arbitrary functor by fixing arguments to certain values.
 sigc::compose() combines two or three arbitrary functors.
 sigc::exception_catch() catches an exception thrown from within the wrapped functor and directs it to a catcher functor.
 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.
 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()().
 sigc::track_obj() tracks trackable objects, referenced from a functor.


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...

Detailed Description

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.