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_actor< T, FallbackPolicyT, TagT, ActorT > Singleton Reference

An attribute value extraction terminal actor. More...

#include <attr_fwd.hpp>

Inheritance diagram for boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >:
Collaboration diagram for boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >:

Public Types

typedef TagT tag_type
 Attribute tag type. More...
 
typedef FallbackPolicyT fallback_policy
 Fallback policy. More...
 
typedef attribute_terminal< T,
fallback_policy, tag_type
terminal_type
 Base terminal type. More...
 
typedef terminal_type::value_type value_type
 Attribute value type. More...
 
typedef ActorT< terminal_typebase_type
 Base actor type. More...
 
typedef attribute_actor
< value_type, fallback_to_none,
tag_type, ActorT > 
or_none_result_type
 Expression with cached attribute name. More...
 
typedef attribute_actor
< value_type,
fallback_to_throw, tag_type,
ActorT > 
or_throw_result_type
 Expression with cached attribute name. More...
 

Public Member Functions

 attribute_actor (base_type const &act)
 Initializing constructor. More...
 
attribute_name get_name () const
 
fallback_policy const & get_fallback_policy () const
 
or_none_result_type or_none () const
 Generates an expression that extracts the attribute value or a default value. More...
 
or_throw_result_type or_throw () const
 Generates an expression that extracts the attribute value or throws an exception. More...
 
template<typename DefaultT >
attribute_actor< value_type,
fallback_to_default< DefaultT >
, tag_type, ActorT > 
or_default (DefaultT const &def_val) const
 Generates an expression that extracts the attribute value or a default value. More...
 

Detailed Description

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
singleton boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >

An attribute value extraction terminal actor.

Member Typedef Documentation

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
typedef ActorT< terminal_type > boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::base_type

Base actor type.

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
typedef FallbackPolicyT boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::fallback_policy

Fallback policy.

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
typedef attribute_actor< value_type, fallback_to_none, tag_type, ActorT > boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::or_none_result_type

Expression with cached attribute name.

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
typedef attribute_actor< value_type, fallback_to_throw, tag_type, ActorT > boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::or_throw_result_type

Expression with cached attribute name.

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
typedef TagT boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::tag_type

Attribute tag type.

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
typedef attribute_terminal< T, fallback_policy, tag_type > boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::terminal_type

Base terminal type.

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
typedef terminal_type::value_type boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::value_type

Attribute value type.

Constructor & Destructor Documentation

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::attribute_actor ( base_type const &  act)
inlineexplicit

Initializing constructor.

Member Function Documentation

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
fallback_policy const& boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::get_fallback_policy ( ) const
inline
template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
template<typename DefaultT >
attribute_actor< value_type, fallback_to_default< DefaultT >, tag_type, ActorT > boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::or_default ( DefaultT const &  def_val) const
inline

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

References boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::get_name().

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
or_none_result_type boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::or_none ( ) const
inline

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

References boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::get_name().

template<typename T, typename FallbackPolicyT, typename TagT, template< typename > class ActorT>
or_throw_result_type boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::or_throw ( ) const
inline

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

References boost::expressions::attribute_actor< T, FallbackPolicyT, TagT, ActorT >::get_name().


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