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

An attribute value presence checker. More...

#include <has_attr.hpp>

Public Types

typedef bool result_type
 Function result_type. More...
 
typedef void value_type
 Expected attribute value type. More...
 

Public Member Functions

 has_attribute (attribute_name const &name)
 Initializing constructor. More...
 
result_type operator() (attribute_value_set const &attrs) const
 Checking operator. More...
 
result_type operator() (boost::log::record_view const &rec) const
 Checking operator. More...
 

Detailed Description

template<>
class boost::expressions::has_attribute< void >

An attribute value presence checker.

This specialization does not check the type of the attribute value.

Member Typedef Documentation

Function result_type.

Expected attribute value type.

Constructor & Destructor Documentation

boost::expressions::has_attribute< void >::has_attribute ( attribute_name const &  name)
inlineexplicit

Initializing constructor.

Parameters
nameAttribute name

Member Function Documentation

result_type boost::expressions::has_attribute< void >::operator() ( attribute_value_set const &  attrs) const
inline

Checking operator.

Parameters
attrsA set of attribute values
Returns
true if the log record contains the sought attribute value, false otherwise

References boost::attribute_value_set::end(), and boost::attribute_value_set::find().

result_type boost::expressions::has_attribute< void >::operator() ( boost::log::record_view const &  rec) const
inline

Checking operator.

Parameters
recA log record
Returns
true if the log record contains the sought attribute value, false otherwise

References boost::expressions::has_attribute< T >::operator()().


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