Convenience type for chaining multiple FlushPolicies with OR.
More...
#include <FlushPolicies.hpp>
|
constexpr | FlushPolicyAnyOf (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::FlushPolicyAnyOf< TFlushPolicies >
Convenience type for chaining multiple FlushPolicies with OR.
- Template Parameters
-
◆ FlushPolicyAnyOf()
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::TupleAnyOf , 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: