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

attribute_value_ordering public member functions

  1. reult_typeоператорrecord_viewconst & record_view const &right;2>const;

    Оператор заказа

Class template attribute_value_ordering

Boost , Chapter 1. Boost.Log v2 , Utilities

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_value_ordering

boost::log::attribute_value_ordering — Ordering predicate, based on attribute values associated with records.

Synopsis

// In header: <boost/log/utility/record_ordering.hpp>
template<typename ValueT, typename FunT = less> 
class attribute_value_ordering : private FunT {
public:
  // types
  typedef bool   result_type;  // Result type. 
  typedef ValueT value_type;   // Compared attribute value type. 
  // member classes/structs/unions
  struct l1_visitor {
    // types
    typedef void result_type;
    // construct/copy/destruct
    l1_visitor(attribute_value_ordering const &, record_view const &, bool &);
    // public member functions
    template<typename LeftT> result_type operator()(LeftT const &) const;
  };
  template<typename LeftT> 
  struct l2_visitor {
    // types
    typedef void result_type;
    // construct/copy/destruct
    l2_visitor(FunT const &, LeftT const &, bool &);
    // public member functions
    template<typename RightT> result_type operator()(RightT const &) const;
  };
  // construct/copy/destruct
  explicit attribute_value_ordering(attribute_name const &, 
                                    FunT const & = FunT());
  // public member functions
  result_type operator()(record_view const &, record_view const &) const;
};

Description

Этот предикат позволяет упорядочить записи журнала на основе значений специфически названного атрибута, связанного с ними. Сравнение двух данных журнальных записей должно иметь указанное значение атрибута указанного типа, чтобы их можно было правильно упорядочить. В особом случае, если ни одна из записей не имеет значения, эти записи считаются эквивалентными. В противном случае результаты заказа не уточняются.

attribute_value_ordering public construct/copy/destruct

  1. explicitattribute_value_ordering


PrevUpHomeNext

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




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



:: Главная :: Utilities ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 03:19:32/0.00193190574646/0