Convenience type for chaining multiple FlushPolicies with NOR.
More...
#include <FlushPolicies.hpp>
|
| constexpr | FlushPolicyNoneOf (TFlushPolicies ... policies) noexcept((std::is_nothrow_move_constructible_v< TFlushPolicies > &&...)) |
| | Constructor. More...
|
| |
| bool | operator() (const TRecord &record, std::size_t messageByteSize) |
| | Invoke operator. More...
|
| |
| constexpr void | flushed () |
| | Calls flushed on all FlushPolicy objects. More...
|
| |
| constexpr bool | empty () const noexcept |
| | Returns whether the are no FlushPolicy objects attached. More...
|
| |
| constexpr std::size_t | size () const noexcept |
| | Obtains the amount of attached FlushPolicy objects. More...
|
| |
template<class... TFlushPolicies>
class sl::log::FlushPolicyNoneOf< TFlushPolicies >
Convenience type for chaining multiple FlushPolicies with NOR.
- Template Parameters
-
◆ FlushPolicyNoneOf()
template<class... TFlushPolicies>
|
|
inlineexplicitconstexprnoexcept |
◆ empty()
|
|
inlineconstexprnoexceptinherited |
Returns whether the are no FlushPolicy objects attached.
- Returns
- true if there aren't have any FlushPolicy objects attached.
◆ flushed()
◆ operator()()
| bool sl::log::FlushPolicyChain< detail::TupleNoneOf , TFlushPolicies >::operator() |
( |
const TRecord & |
record, |
|
|
std::size_t |
messageByteSize |
|
) |
| |
|
inlineinherited |
Invoke operator.
- Template Parameters
-
- Parameters
-
| record | The current handled Record object |
| messageByteSize | The size of the current handled message in bytes |
- Returns
- Returns the result of the predicate invocation
Just invokes all internal policies and returns the result of the algorithm
◆ size()
|
|
inlineconstexprnoexceptinherited |
The documentation for this class was generated from the following file: