Specialization for unlocked case. More...
#include <mutable_constant.hpp>
Classes | |
class | impl |
Factory implementation. More... | |
Public Types | |
typedef T | value_type |
The attribute value type. More... | |
Public Member Functions | |
mutable_constant (value_type const &value) | |
Constructor with the stored value initialization. More... | |
mutable_constant (BOOST_RV_REF(value_type) value) | |
Constructor with the stored value initialization. More... | |
mutable_constant (cast_source const &source) | |
Constructor for casting support. More... | |
void | set (value_type const &value) |
The method sets a new attribute value. More... | |
void | set (BOOST_RV_REF(value_type) value) |
The method sets a new attribute value. More... | |
value_type | get () const |
The method acquires the current attribute value. More... | |
bool | operator! () const BOOST_NOEXCEPT |
Verifies that the factory is not in empty state. More... | |
attribute_value | get_value () const |
void | swap (attribute &that) BOOST_NOEXCEPT |
The method swaps two factories (i.e. More... | |
Protected Member Functions | |
impl * | get_impl () const |
void | set_impl (intrusive_ptr< impl > p) BOOST_NOEXCEPT |
Sets the pointer to the factory implementation. More... | |
Specialization for unlocked case.
This version of attribute does not perform thread synchronization to access the stored value.
typedef T boost::attributes::mutable_constant< T, void, void, void >::value_type |
The attribute value type.
|
inlineexplicit |
Constructor with the stored value initialization.
|
inlineexplicit |
Constructor with the stored value initialization.
|
inlineexplicit |
Constructor for casting support.
|
inline |
The method acquires the current attribute value.
References boost::attributes::mutable_constant< T, MutexT, ScopedWriteLockT, ScopedReadLockT >::impl::get(), and boost::attributes::mutable_constant< T, MutexT, ScopedWriteLockT, ScopedReadLockT >::get_impl().
|
inlineprotected |
References boost::attribute::get_impl().
|
inherited |
|
inlineinherited |
Verifies that the factory is not in empty state.
Verifies that the factory is in empty state
|
inline |
The method sets a new attribute value.
References boost::attributes::mutable_constant< T, MutexT, ScopedWriteLockT, ScopedReadLockT >::get_impl(), and boost::attributes::mutable_constant< T, MutexT, ScopedWriteLockT, ScopedReadLockT >::impl::set().
|
inline |
The method sets a new attribute value.
References boost::attributes::mutable_constant< T, MutexT, ScopedWriteLockT, ScopedReadLockT >::get_impl(), boost::move(), and boost::attributes::mutable_constant< T, MutexT, ScopedWriteLockT, ScopedReadLockT >::impl::set().
|
inlineprotectedinherited |
Sets the pointer to the factory implementation.
p | Pointer to the implementation. Must not be NULL . |
References boost::multiprecision::backends::p, and boost::intrusive_ptr< T >::swap().
Referenced by boost::attributes::counter< T >::counter().
|
inlineinherited |
The method swaps two factories (i.e.
their implementations).
References boost::intrusive_ptr< T >::swap().
Referenced by boost::sources::aux::severity_level< severity_level >::operator=(), and boost::sources::basic_severity_logger< BaseT, LevelT >::swap_unlocked().