This class implements an expression template keyword. More...
#include <keyword_fwd.hpp>
Public Types | |
typedef attribute_keyword | this_type |
Self type. More... | |
typedef DescriptorT | descriptor_type |
Attribute descriptor type. More... | |
typedef descriptor_type::value_type | value_type |
Attribute value type. More... | |
typedef attribute_actor < value_type, fallback_to_none, descriptor_type, ActorT > | or_none_result_type |
Expression with cached attribute name. More... | |
typedef attribute_actor < value_type, fallback_to_throw, descriptor_type, ActorT > | or_throw_result_type |
Expression with cached attribute name. More... | |
Static Public Member Functions | |
static attribute_name | get_name () |
Returns attribute name. More... | |
static or_none_result_type | or_none () |
Generates an expression that extracts the attribute value or a default value. More... | |
static or_throw_result_type | or_throw () |
Generates an expression that extracts the attribute value or throws an exception. More... | |
template<typename DefaultT > | |
static attribute_actor < value_type, fallback_to_default< DefaultT > , descriptor_type, ActorT > | or_default (DefaultT const &def_val) |
Generates an expression that extracts the attribute value or a default value. More... | |
This class implements an expression template keyword.
It is used to start template expressions involving attribute values.
typedef DescriptorT boost::expressions::attribute_keyword< DescriptorT, ActorT >::descriptor_type |
Attribute descriptor type.
typedef attribute_actor< value_type, fallback_to_none, descriptor_type, ActorT > boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_none_result_type |
Expression with cached attribute name.
typedef attribute_actor< value_type, fallback_to_throw, descriptor_type, ActorT > boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_throw_result_type |
Expression with cached attribute name.
typedef attribute_keyword boost::expressions::attribute_keyword< DescriptorT, ActorT >::this_type |
Self type.
typedef descriptor_type::value_type boost::expressions::attribute_keyword< DescriptorT, ActorT >::value_type |
Attribute value type.
|
inlinestatic |
Returns attribute name.
Referenced by boost::expressions::channel_severity_filter(), boost::extract(), boost::extract_or_default(), boost::extract_or_throw(), boost::expressions::format_date_time(), boost::expressions::format_named_scope(), boost::attribute_value_set::operator[](), boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_default(), boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_none(), boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_throw(), boost::register_simple_filter_factory(), and boost::visit().
|
inlinestatic |
Generates an expression that extracts the attribute value or a default value.
References boost::expressions::attribute_keyword< DescriptorT, ActorT >::get_name().
|
inlinestatic |
Generates an expression that extracts the attribute value or a default value.
References boost::expressions::attribute_keyword< DescriptorT, ActorT >::get_name().
|
inlinestatic |
Generates an expression that extracts the attribute value or throws an exception.
References boost::expressions::attribute_keyword< DescriptorT, ActorT >::get_name().