Basic attribute value implementation class. More...
#include <attribute_value_impl.hpp>
Public Types | |
typedef T | value_type |
Value type. More... | |
Public Member Functions | |
attribute_value_impl (value_type const &v) | |
Constructor with initialization of the stored value. More... | |
attribute_value_impl (BOOST_RV_REF(value_type) v) | |
Constructor with initialization of the stored value. More... | |
virtual bool | dispatch (type_dispatcher &dispatcher) |
Attribute value dispatching method. More... | |
type_info_wrapper | get_type () const |
value_type const & | get () const |
virtual intrusive_ptr< impl > | detach_from_thread () |
The method is called when the attribute value is passed to another thread (e.g. More... | |
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 |
Basic attribute value implementation class.
This class can be used as a boilerplate for simple attribute values. The class implements all needed interfaces of attribute values and allows to store a single value of the type specified as a template parameter. The stored value can be dispatched with type dispatching mechanism.
typedef T boost::attributes::attribute_value_impl< T >::value_type |
Value type.
|
inlineexplicit |
Constructor with initialization of the stored value.
|
inlineexplicit |
Constructor with initialization of the stored value.
|
inlinevirtualinherited |
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.
Reimplemented in boost::sources::aux::severity_level< LevelT >::impl, and boost::attributes::current_thread_id::impl.
Referenced by boost::attribute_value::detach_from_thread().
|
inlinevirtual |
Attribute value dispatching method.
dispatcher | The dispatcher that receives the stored value |
true
if the value has been dispatched, false
otherwise Implements boost::attribute_value::impl.
|
inline |
|
inlinevirtual |
Reimplemented from boost::attribute_value::impl.
|
inlinevirtualinherited |
Implements boost::attribute::impl.
References boost::attribute_value::attribute_value().
|
staticinherited |
|
staticinherited |