Log record filter function wrapper. More...
#include <filter.hpp>
Public Types | |
typedef bool | result_type |
Result type. More... | |
Public Member Functions | |
filter () | |
Default constructor. More... | |
filter (filter const &that) | |
Copy constructor. More... | |
filter (BOOST_RV_REF(filter) that) BOOST_NOEXCEPT | |
Move constructor. More... | |
template<typename FunT > | |
filter (FunT &&fun) | |
Initializing constructor. More... | |
filter & | operator= (BOOST_RV_REF(filter) that) BOOST_NOEXCEPT |
Move assignment. More... | |
filter & | operator= (BOOST_COPY_ASSIGN_REF(filter) that) |
Copy assignment. More... | |
template<typename FunT > | |
filter & | operator= (FunT const &fun) |
Initializing assignment. More... | |
result_type | operator() (attribute_value_set const &values) const |
Filtering operator. More... | |
void | reset () |
Resets the filter to the default. More... | |
void | swap (filter &that) BOOST_NOEXCEPT |
Swaps two filters. More... | |
Log record filter function wrapper.
typedef bool boost::filter::result_type |
Result type.
|
inline |
|
inline |
Copy constructor.
|
inline |
Move constructor.
The moved-from filter is left in an unspecified state.
|
inline |
Initializing constructor.
Creates a filter which will invoke the specified function object.
|
inline |
Filtering operator.
values | Attribute values of the log record. |
true
if the log record passes the filter, false
otherwise.
|
inline |
Move assignment.
The moved-from filter is left in an unspecified state.
|
inline |
Copy assignment.
|
inline |
|
inline |
Resets the filter to the default.
The default filter always returns true
.
Referenced by boost::sinks::basic_sink_frontend::reset_filter().
|
inline |
Swaps two filters.