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

Factory implementation. More...

#include <current_thread_id.hpp>

Inheritance diagram for boost::attributes::current_thread_id::impl:
Collaboration diagram for boost::attributes::current_thread_id::impl:

Public Member Functions

bool dispatch (type_dispatcher &dispatcher)
 The method dispatches the value to the given object. More...
 
intrusive_ptr
< attribute_value::impl
detach_from_thread ()
 The method is called when the attribute value is passed to another thread (e.g. More...
 
type_info_wrapper get_type () const
 
virtual attribute_value get_value ()
 

Static Public Member Functions

static BOOST_LOG_API void * operator new (std::size_t size)
 
static BOOST_LOG_API void operator delete (void *p, std::size_t size) BOOST_NOEXCEPT
 

Detailed Description

Factory implementation.

Member Function Documentation

intrusive_ptr< attribute_value::impl > boost::attributes::current_thread_id::impl::detach_from_thread ( )
inlinevirtual

The method is called when the attribute value is passed to another thread (e.g.

in case of asynchronous logging). The value should ensure it properly owns all thread-specific data.

Returns
An actual pointer to the attribute value. It may either point to this object or another. In the latter case the returned pointer replaces the pointer used by caller to invoke this method and is considered to be a functional equivalent to the previous pointer.

Reimplemented from boost::attribute_value::impl.

bool boost::attributes::current_thread_id::impl::dispatch ( type_dispatcher dispatcher)
inlinevirtual

The method dispatches the value to the given object.

Parameters
dispatcherThe object that attempts to dispatch the stored value.
Returns
true if dispatcher was capable to consume the real attribute value type and false otherwise.

Implements boost::attribute_value::impl.

type_info_wrapper boost::attributes::current_thread_id::impl::get_type ( ) const
inlinevirtual
Returns
The attribute value type

Reimplemented from boost::attribute_value::impl.

virtual attribute_value boost::attribute_value::impl::get_value ( )
inlinevirtualinherited
Returns
The attribute value that refers to self implementation.

Implements boost::attribute::impl.

References boost::attribute_value::attribute_value().

static BOOST_LOG_API void boost::attribute::impl::operator delete ( void *  p,
std::size_t  size 
)
staticinherited
static BOOST_LOG_API void* boost::attribute::impl::operator new ( std::size_t  size)
staticinherited

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