Simple-Log  alpha-v0.7
sl::log::FilterAllOf< TFilter > Class Template Reference

Convenience type for chaining multiple filter with AND. More...

#include <Filters.hpp>

Inheritance diagram for sl::log::FilterAllOf< TFilter >:
sl::log::FilterChain< detail::TupleAllOf, TFilter... >

Public Member Functions

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...
 

Detailed Description

template<class... TFilter>
class sl::log::FilterAllOf< TFilter >

Convenience type for chaining multiple filter with AND.

Template Parameters
TFilterType of provided filter objects

Constructor & Destructor Documentation

◆ FilterAllOf()

template<class... TFilter>
constexpr sl::log::FilterAllOf< TFilter >::FilterAllOf ( TFilter ...  filter)
inlineexplicitconstexprnoexcept

Constructor.

Parameters
filterFilter objects

Member Function Documentation

◆ empty()

constexpr bool sl::log::FilterChain< detail::TupleAllOf , TFilter >::empty ( ) const
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
TRecordConcrete type of the used Record object
Parameters
recRecord object
Returns
Returns true, if the Record should be handled. False if skipped.

◆ size()

constexpr std::size_t sl::log::FilterChain< detail::TupleAllOf , TFilter >::size ( ) const
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: