Boost C++ Libraries

PrevUpHomeNext

Class template attribute_terminal

boost::log::expressions::attribute_terminal

Synopsis

// In header: <boost/log/expressions/attr_fwd.hpp>

template<typename T, typename FallbackPolicyT, typename TagT> 
class attribute_terminal {
public:

  // public member functions
  explicit attribute_terminal(attribute_name const &);
  template<typename U> attribute_terminal(attribute_name const &, U const &);
  attribute_name get_name() const;
  fallback_policy const & get_fallback_policy() const;
  template<typename ContextT> 
    result< this_type(ContextTconst &)>::type operator()(ContextT const &);
  template<typename ContextT> 
    result< constthis_type(ContextTconst &)>::type 
    operator()(ContextT const &) const;
  attribute_terminal() = delete;
};

Description

An attribute value extraction terminal

attribute_terminal public member functions

  1. explicit attribute_terminal(attribute_name const & name);

    Initializing constructor

  2. template<typename U> 
      attribute_terminal(attribute_name const & name, U const & arg);

    Initializing constructor

  3. attribute_name get_name() const;

    Returns:

    Attribute value name

  4. fallback_policy const & get_fallback_policy() const;

    Returns:

    Fallback policy

  5. template<typename ContextT> 
      result< this_type(ContextTconst &)>::type operator()(ContextT const & ctx);

    The operator extracts attribute value

  6. template<typename ContextT> 
      result< constthis_type(ContextTconst &)>::type 
      operator()(ContextT const & ctx) const;

    The operator extracts attribute value

  7. attribute_terminal() = delete;

PrevUpHomeNext