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