mimic++ v4
Loading...
Searching...
No Matches
mimicpp::expectation_policies::SideEffectAction< Action > Class Template Reference

#include <ExpectationPolicies.hpp>

Public Member Functions

 ~SideEffectAction ()=default
 
constexpr SideEffectAction (Action &&action) noexcept(std::is_nothrow_move_constructible_v< Action >)
 
 SideEffectAction (const SideEffectAction &)=delete
 
SideEffectActionoperator= (const SideEffectAction &)=delete
 
 SideEffectAction (SideEffectAction &&)=default
 
SideEffectActionoperator= (SideEffectAction &&)=default
 
template<typename Return , typename... Args>
requires std::invocable<Action&, const call::Info<Return, Args...>&>
constexpr void consume (const call::Info< Return, Args... > &info) noexcept(std::is_nothrow_invocable_v< Action &, const call::Info< Return, Args... > & >)
 

Static Public Member Functions

static constexpr bool is_satisfied () noexcept
 
template<typename Return , typename... Args>
static constexpr bool matches (const call::Info< Return, Args... > &) noexcept
 
static std::nullopt_t describe () noexcept
 

Constructor & Destructor Documentation

◆ ~SideEffectAction()

template<typename Action >
mimicpp::expectation_policies::SideEffectAction< Action >::~SideEffectAction ( )
default

◆ SideEffectAction() [1/3]

template<typename Action >
mimicpp::expectation_policies::SideEffectAction< Action >::SideEffectAction ( Action && action)
inlineexplicitnodiscardconstexprnoexcept

◆ SideEffectAction() [2/3]

template<typename Action >
mimicpp::expectation_policies::SideEffectAction< Action >::SideEffectAction ( const SideEffectAction< Action > & )
delete

◆ SideEffectAction() [3/3]

template<typename Action >
mimicpp::expectation_policies::SideEffectAction< Action >::SideEffectAction ( SideEffectAction< Action > && )
nodiscarddefault

Member Function Documentation

◆ consume()

template<typename Action >
template<typename Return , typename... Args>
requires std::invocable<Action&, const call::Info<Return, Args...>&>
void mimicpp::expectation_policies::SideEffectAction< Action >::consume ( const call::Info< Return, Args... > & info)
inlineconstexprnoexcept

◆ describe()

template<typename Action >
static std::nullopt_t mimicpp::expectation_policies::SideEffectAction< Action >::describe ( )
inlinestaticnodiscardnoexcept

◆ is_satisfied()

template<typename Action >
static constexpr bool mimicpp::expectation_policies::SideEffectAction< Action >::is_satisfied ( )
inlinestaticconstexprnoexcept

◆ matches()

template<typename Action >
template<typename Return , typename... Args>
static constexpr bool mimicpp::expectation_policies::SideEffectAction< Action >::matches ( const call::Info< Return, Args... > & )
inlinestaticnodiscardconstexprnoexcept

◆ operator=() [1/2]

template<typename Action >
SideEffectAction & mimicpp::expectation_policies::SideEffectAction< Action >::operator= ( const SideEffectAction< Action > & )
delete

◆ operator=() [2/2]

template<typename Action >
SideEffectAction & mimicpp::expectation_policies::SideEffectAction< Action >::operator= ( SideEffectAction< Action > && )
default

The documentation for this class was generated from the following file: