Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::expressions::attribute_keyword< DescriptorT, ActorT > Struct Template Reference

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

Detailed Description

template<typename DescriptorT, template< typename > class ActorT>
struct boost::expressions::attribute_keyword< DescriptorT, ActorT >

This class implements an expression template keyword.

It is used to start template expressions involving attribute values.

Member Typedef Documentation

template<typename DescriptorT, template< typename > class ActorT>
typedef DescriptorT boost::expressions::attribute_keyword< DescriptorT, ActorT >::descriptor_type

Attribute descriptor type.

template<typename DescriptorT, template< typename > class ActorT>
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.

template<typename DescriptorT, template< typename > class ActorT>
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.

template<typename DescriptorT, template< typename > class ActorT>
typedef attribute_keyword boost::expressions::attribute_keyword< DescriptorT, ActorT >::this_type

Self type.

template<typename DescriptorT, template< typename > class ActorT>
typedef descriptor_type::value_type boost::expressions::attribute_keyword< DescriptorT, ActorT >::value_type

Attribute value type.

Member Function Documentation

template<typename DescriptorT, template< typename > class ActorT>
template<typename DefaultT >
static attribute_actor< value_type, fallback_to_default< DefaultT >, descriptor_type, ActorT > boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_default ( DefaultT const &  def_val)
inlinestatic

Generates an expression that extracts the attribute value or a default value.

References boost::expressions::attribute_keyword< DescriptorT, ActorT >::get_name().

template<typename DescriptorT, template< typename > class ActorT>
static or_none_result_type boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_none ( )
inlinestatic

Generates an expression that extracts the attribute value or a default value.

References boost::expressions::attribute_keyword< DescriptorT, ActorT >::get_name().

template<typename DescriptorT, template< typename > class ActorT>
static or_throw_result_type boost::expressions::attribute_keyword< DescriptorT, ActorT >::or_throw ( )
inlinestatic

Generates an expression that extracts the attribute value or throws an exception.

References boost::expressions::attribute_keyword< DescriptorT, ActorT >::get_name().


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