Boost C++ Libraries

PrevUpHomeNext

Class template flt_wrap

boost::log::filters::flt_wrap — Filter wrapper.

Synopsis

// In header: <boost/log/filters/basic_filters.hpp>

template<typename CharT, typename T> 
class flt_wrap : public basic_filter< CharT, flt_wrap< CharT, T > > {
public:
  // construct/copy/destruct
  explicit flt_wrap(T const &);

  // public member functions
  bool operator()(values_view_type const &) const;
};

Description

This simple wrapper is intended to provide necessary facade of a filter to a third-party functional object that implements the filter. The wrapper enables the filter to take part in lambda expressions of filters.

flt_wrap public construct/copy/destruct

  1. explicit flt_wrap(T const & that);

    Constructor. Creates a wrapper with the aggregated functional object.

flt_wrap public member functions

  1. bool operator()(values_view_type const & values) const;

    Passes the call to the aggregated functional object

    Parameters:
    values

    A set of attribute values of a single log record

    Returns:

    The result of the aggregated functional object


PrevUpHomeNext