CppCMS
|
This is Booster's implementation of std::tr1::callback/booster::callback. More...
#include <booster/booster/callback.h>
Classes | |
struct | callable_impl |
struct | callable_impl< void, F > |
Public Types | |
typedef Result | result_type |
typedef callable< Result(Params...)> | callable_type |
typedef intrusive_ptr< callable_type > | pointer_type |
Public Member Functions | |
callback () | |
template<typename Call > | |
callback (intrusive_ptr< Call > c) | |
template<typename Call > | |
callback (std::unique_ptr< Call > ptr) | |
template<typename Call > | |
callback const & | operator= (intrusive_ptr< Call > c) |
template<typename Call > | |
callback const & | operator= (std::unique_ptr< Call > c) |
template<typename F > | |
callback (F func) | |
callback (callback const &other) | |
callback (callback &&other) | |
template<typename F > | |
callback const & | operator= (F func) |
callback & | operator= (callback &&other) |
callback const & | operator= (callback const &other) |
Result | operator() (Params...args) const |
bool | empty () const |
operator bool () const | |
void | swap (callback &other) |
pointer_type const & | get_pointer () const |
pointer_type & | get_pointer () |
This is Booster's implementation of std::tr1::callback/booster::callback.
This callback is created from generic object that can be "called" i.e. a class with operator() or callback pointer that has same signature as the callback.
See: http://www.boost.org/doc/html/function.html
Notes:
typedef intrusive_ptr<callable_type> booster::callback< Result(Params...)>::pointer_type |
Pointer to callable object
|
inline |
Default constructor, creates an empty callbacks
|
inline |
Return true if the callback is empty
|
inline |
Returns true if the callback is not empty