Convenience type for chaining multiple filter with AND.
More...
#include <Filters.hpp>
|
constexpr | FilterAllOf (TFilter ... filter) noexcept((std::is_nothrow_move_constructible_v< TFilter > &&...)) |
| Constructor. More...
|
|
constexpr bool | operator() (const TRecord &rec) |
| Call-operator. More...
|
|
constexpr bool | empty () const noexcept |
| Returns whether the are no sub-filters attached. More...
|
|
constexpr std::size_t | size () const noexcept |
| Obtains the amount of attached sub-filters. More...
|
|
template<class... TFilter>
class sl::log::FilterAllOf< TFilter >
Convenience type for chaining multiple filter with AND.
- Template Parameters
-
TFilter | Type of provided filter objects |
◆ FilterAllOf()
template<class... TFilter>
|
inlineexplicitconstexprnoexcept |
◆ empty()
|
inlineconstexprnoexceptinherited |
Returns whether the are no sub-filters attached.
- Returns
- true if there aren't have any sub-filters attached.
◆ operator()()
constexpr bool sl::log::FilterChain< detail::TupleAllOf , TFilter >::operator() |
( |
const TRecord & |
rec | ) |
|
|
inlineconstexprinherited |
Call-operator.
- Template Parameters
-
TRecord | Concrete type of the used Record object |
- Parameters
-
- Returns
- Returns true, if the Record should be handled. False if skipped.
◆ size()
|
inlineconstexprnoexceptinherited |
Obtains the amount of attached sub-filters.
- Returns
- The amount of attached sub-filters
The documentation for this class was generated from the following file: