Boost C++ Libraries

PrevUpHomeNext

Class template flt_negation

boost::log::filters::flt_negation — Negation filter.

Synopsis

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

template<typename FltT> 
class flt_negation :
  public basic_filter< FltT::char_type, flt_negation< FltT > >
{
public:
  // construct/copy/destruct
  explicit flt_negation(FltT const &);

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

Description

The filter is used when result of the inner sub-filter has to be negated.

flt_negation public construct/copy/destruct

  1. explicit flt_negation(FltT const & that);

    Constructs the filter and initializes the stored subfilter with that

flt_negation 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 opposite value to the result of the aggregated sub-filter.


PrevUpHomeNext