Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template attribute_terminal

Boost , Chapter 1. Boost.Log v2 , Expressions

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template attribute_terminal

boost::log::expressions::attribute_terminal

Synopsis

// In header: <boost/log/expressions/attr.hpp>
template<typename T, typename FallbackPolicyT, typename TagT> 
class attribute_terminal {
public:
  // types
  typedef TagT                                  tag_type;         // Attribute tag type. 
  typedef value_extractor_type::value_type      value_type;       // Attribute value type. 
  typedef value_extractor_type::fallback_policy fallback_policy;  // Fallback policy type. 
  // member classes/structs/unions
  // Function result type.
  template<typename > 
  struct result {
  };
  template<typename ThisT, typename ContextT> 
  struct result<ThisT(ContextT)> {
    // types
    typedef remove_cv< typename remove_reference< typename phoenix::result_of::env< ContextT >::type >::type >::type                          env_type;               
    typedef env_type::args_type                                                                                                               args_type;              
    typedef unspecified                                                                                                                       cv_value_extractor_type;
    typedef boost::result_of< cv_value_extractor_type(attribute_name const &, typename fusion::result_of::at_c< args_type, 0 >::type) >::type type;                   
  };
  // construct/copy/destruct
  explicit attribute_terminal(attribute_name const &);
  template<typename U> attribute_terminal(attribute_name const &, U const &);
  attribute_terminal() = delete;
  // public member functions
  attribute_name get_name() const;
  fallback_policy const & get_fallback_policy() const;
  template<typename ContextT> 
    result< this_type(ContextT const &) >::type operator()(ContextT const &);
  template<typename ContextT> 
    result< const this_type(ContextT const &) >::type 
    operator()(ContextT const &) const;
};

Description

Терминал извлечения значения атрибута

attribute_terminal public construct/copy/destruct

  1. explicit attribute_terminal(attribute_name const & name;

    Инициирующий конструктор

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

    Инициирующий конструктор

  3. атрибут_терминал()=удалить;

attribute_terminal public member functions

  1. attribute_name get_nameconst;

Атрибутное значение

  • fallback_policy const get_fallback_policyconst;

    Fallback policy

  • templatetypename ContextT>результатContextTconst & > :2>

    Оператор извлекает значение атрибута

  • templatetypename ContextT> const этот_type(const & >::typeоператор(ContextT&const;const

    Оператор извлекает значение атрибута


  • PrevUpHomeNext

    Статья Class template attribute_terminal раздела Chapter 1. Boost.Log v2 Expressions может быть полезна для разработчиков на c++ и boost.




    Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



    :: Главная :: Expressions ::


    реклама


    ©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
    Top.Mail.Ru

    Время компиляции файла: 2024-08-30 11:47:00
    2025-07-04 13:34:03/0.0037548542022705/0