Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::sources::aux::severity_level< LevelT > Class Template Reference

Severity level attribute implementation. More...

#include <severity_feature.hpp>

Inheritance diagram for boost::sources::aux::severity_level< LevelT >:
Collaboration diagram for boost::sources::aux::severity_level< LevelT >:

Classes

class  impl
 Factory implementation. More...
 

Public Types

typedef LevelT value_type
 Stored level type. More...
 

Public Member Functions

 BOOST_STATIC_ASSERT_MSG (sizeof(value_type)<=sizeof(uintmax_t),"Boost.Log: Unsupported severity level type, the severity level must fit into uintmax_t")
 
 severity_level ()
 Default constructor. More...
 
 severity_level (severity_level const &that)
 Copy constructor. More...
 
 severity_level (BOOST_RV_REF(severity_level) that)
 Move constructor. More...
 
 severity_level (attributes::cast_source const &source)
 Constructor for casting support. More...
 
severity_leveloperator= (BOOST_COPY_ASSIGN_REF(severity_level) that)
 Copy assignment. More...
 
severity_leveloperator= (BOOST_RV_REF(severity_level) that)
 Move assignment. More...
 
void set_value (value_type level)
 The method sets the actual level. 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 BOOST_NOEXCEPT
 
void set_impl (intrusive_ptr< impl > p) BOOST_NOEXCEPT
 Sets the pointer to the factory implementation. More...
 

Detailed Description

template<typename LevelT>
class boost::sources::aux::severity_level< LevelT >

Severity level attribute implementation.

Member Typedef Documentation

template<typename LevelT>
typedef LevelT boost::sources::aux::severity_level< LevelT >::value_type

Stored level type.

Constructor & Destructor Documentation

template<typename LevelT>
boost::sources::aux::severity_level< LevelT >::severity_level ( )
inline

Default constructor.

template<typename LevelT>
boost::sources::aux::severity_level< LevelT >::severity_level ( severity_level< LevelT > const &  that)
inline

Copy constructor.

template<typename LevelT>
boost::sources::aux::severity_level< LevelT >::severity_level ( BOOST_RV_REF(severity_level< LevelT >)  that)
inline

Move constructor.

template<typename LevelT>
boost::sources::aux::severity_level< LevelT >::severity_level ( attributes::cast_source const &  source)
inlineexplicit

Constructor for casting support.

Member Function Documentation

template<typename LevelT>
boost::sources::aux::severity_level< LevelT >::BOOST_STATIC_ASSERT_MSG ( sizeof(value_type)<=sizeof(uintmax_t)  ,
"Boost.Log: Unsupported severity level  type,
the severity level must fit into uintmax_t"   
)
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

template<typename LevelT>
severity_level& boost::sources::aux::severity_level< LevelT >::operator= ( BOOST_COPY_ASSIGN_REF(severity_level< LevelT >)  that)
inline

Copy assignment.

template<typename LevelT>
severity_level& boost::sources::aux::severity_level< LevelT >::operator= ( BOOST_RV_REF(severity_level< LevelT >)  that)
inline

Move assignment.

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

template<typename LevelT>
void boost::sources::aux::severity_level< LevelT >::set_value ( value_type  level)
inline
void boost::attribute::swap ( attribute that)
inlineinherited

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