The function_base class contains the basic elements needed for the function1, function2, function3, etc. More...
#include <function_base.hpp>
Public Member Functions | |
function_base () | |
bool | empty () const |
Determine if the function is empty (i.e., has no target). More... | |
const detail::sp_typeinfo & | target_type () const |
Retrieve the type of the stored function object, or BOOST_SP_TYPEID(void) if this is empty. More... | |
template<typename Functor > | |
Functor * | target () |
template<typename Functor > | |
const Functor * | target () const |
template<typename F > | |
bool | contains (const F &f) const |
detail::function::vtable_base * | get_vtable () const |
bool | has_trivial_copy_and_destroy () const |
Public Attributes | |
detail::function::vtable_base * | vtable |
detail::function::function_buffer | functor |
The function_base class contains the basic elements needed for the function1, function2, function3, etc.
classes. It is common to all functions (and as such can be used to tell if we have one of the functionN objects).
|
inline |
|
inline |
References boost::function_equal().
|
inline |
Determine if the function is empty (i.e., has no target).
References vtable.
Referenced by boost::detail::function::has_empty_target(), boost::operator!=(), and boost::operator==().
|
inline |
References vtable.
Referenced by target(), and target_type().
|
inline |
References vtable.
|
inline |
References boost::detail::function::check_functor_type_tag, boost::detail::function::function_buffer::type_t::const_qualified, functor, get_vtable(), boost::detail::function::vtable_base::manager, boost::detail::function::function_buffer::obj_ptr, boost::detail::function::function_buffer::type_t::type, boost::detail::function::function_buffer::type, boost::program_options::value(), boost::detail::function::function_buffer::type_t::volatile_qualified, and vtable.
|
inline |
References boost::detail::function::check_functor_type_tag, boost::detail::function::function_buffer::type_t::const_qualified, functor, get_vtable(), boost::detail::function::vtable_base::manager, boost::detail::function::function_buffer::obj_ptr, boost::detail::function::function_buffer::type_t::type, boost::detail::function::function_buffer::type, boost::program_options::value(), boost::detail::function::function_buffer::type_t::volatile_qualified, and vtable.
|
inline |
Retrieve the type of the stored function object, or BOOST_SP_TYPEID(void) if this is empty.
References functor, boost::detail::function::get_functor_type_tag, get_vtable(), boost::detail::function::vtable_base::manager, boost::detail::type, boost::detail::function::function_buffer::type_t::type, boost::detail::function::function_buffer::type, and vtable.
|
mutable |
Referenced by target(), and target_type().
detail::function::vtable_base* boost::function_base::vtable |
Referenced by empty(), get_vtable(), has_trivial_copy_and_destroy(), target(), and target_type().