Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::attributes::mutable_constant< T, void, void, void > Class Template Reference

Specialization for unlocked case. More...

#include <mutable_constant.hpp>

Inheritance diagram for boost::attributes::mutable_constant< T, void, void, void >:
Collaboration diagram for boost::attributes::mutable_constant< T, void, void, void >:

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

implget_impl () const
 
void set_impl (intrusive_ptr< impl > p) BOOST_NOEXCEPT
 Sets the pointer to the factory implementation. More...
 

Detailed Description

template<typename T>
class boost::attributes::mutable_constant< T, void, void, void >

Specialization for unlocked case.

This version of attribute does not perform thread synchronization to access the stored value.

Member Typedef Documentation

template<typename T >
typedef T boost::attributes::mutable_constant< T, void, void, void >::value_type

The attribute value type.

Constructor & Destructor Documentation

template<typename T >
boost::attributes::mutable_constant< T, void, void, void >::mutable_constant ( value_type const &  value)
inlineexplicit

Constructor with the stored value initialization.

template<typename T >
boost::attributes::mutable_constant< T, void, void, void >::mutable_constant ( BOOST_RV_REF(value_type value)
inlineexplicit

Constructor with the stored value initialization.

template<typename T >
boost::attributes::mutable_constant< T, void, void, void >::mutable_constant ( cast_source const &  source)
inlineexplicit

Constructor for casting support.

Member Function Documentation

template<typename T >
impl* boost::attributes::mutable_constant< T, void, void, void >::get_impl ( ) const
inlineprotected
Returns
Pointer to the factory implementation

References boost::attribute::get_impl().

attribute_value boost::attribute::get_value ( ) const
inherited
Returns
The actual attribute value. It shall not return empty values (exceptions shall be used to indicate errors).
bool boost::attribute::operator! ( ) const
inlineinherited

Verifies that the factory is not in empty state.

Verifies that the factory is in empty state

void boost::attribute::set_impl ( intrusive_ptr< impl p)
inlineprotectedinherited

Sets the pointer to the factory implementation.

Parameters
pPointer 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().

void boost::attribute::swap ( attribute that)
inlineinherited

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