Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::function_base Class Reference

The function_base class contains the basic elements needed for the function1, function2, function3, etc. More...

#include <function_base.hpp>

Collaboration diagram for boost::function_base:

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_baseget_vtable () const
 
bool has_trivial_copy_and_destroy () const
 

Public Attributes

detail::function::vtable_basevtable
 
detail::function::function_buffer functor
 

Detailed Description

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

Constructor & Destructor Documentation

boost::function_base::function_base ( )
inline

Member Function Documentation

template<typename F >
bool boost::function_base::contains ( const F &  f) const
inline
bool boost::function_base::empty ( ) const
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==().

detail::function::vtable_base* boost::function_base::get_vtable ( ) const
inline

References vtable.

Referenced by target(), and target_type().

bool boost::function_base::has_trivial_copy_and_destroy ( ) const
inline

References vtable.

const detail::sp_typeinfo& boost::function_base::target_type ( ) const
inline

Member Data Documentation

detail::function::function_buffer boost::function_base::functor
mutable

Referenced by target(), and target_type().


The documentation for this class was generated from the following file: