mimic++ v1
Loading...
Searching...
No Matches
mimicpp::ScopedExpectation< Signature > Class Template Reference

#include <Expectation.hpp>

Public Types

using StorageT = ExpectationCollection<Signature>
 
using ExpectationT = Expectation<Signature>
 

Public Member Functions

 ~ScopedExpectation () noexcept(false)
 
 ScopedExpectation (std::shared_ptr< StorageT > storage, std::shared_ptr< ExpectationT > expectation) noexcept
 
template<typename T >
requires requires(const std::source_location& loc) { { std::declval<T&&>().finalize(loc) } -> std::convertible_to<ScopedExpectation>; }
 explicit (false) const expr ScopedExpectation(T &&object
 
ScopedExpectationoperator= (const ScopedExpectation &)=delete
 
 ScopedExpectation (ScopedExpectation &&)=default
 
ScopedExpectationoperator= (ScopedExpectation &&)=default
 
bool is_satisfied () const
 
const ExpectationTexpectation () const noexcept
 

Public Attributes

const std::source_location & loc
 

Member Typedef Documentation

◆ ExpectationT

template<typename Signature >
using mimicpp::ScopedExpectation< Signature >::ExpectationT = Expectation<Signature>

◆ StorageT

template<typename Signature >
using mimicpp::ScopedExpectation< Signature >::StorageT = ExpectationCollection<Signature>

Constructor & Destructor Documentation

◆ ~ScopedExpectation()

template<typename Signature >
mimicpp::ScopedExpectation< Signature >::~ScopedExpectation ( )
inline

◆ ScopedExpectation() [1/2]

template<typename Signature >
mimicpp::ScopedExpectation< Signature >::ScopedExpectation ( std::shared_ptr< StorageT > storage,
std::shared_ptr< ExpectationT > expectation )
inlineexplicitnodiscardnoexcept

◆ ScopedExpectation() [2/2]

template<typename Signature >
mimicpp::ScopedExpectation< Signature >::ScopedExpectation ( ScopedExpectation< Signature > && )
nodiscarddefault

Member Function Documentation

◆ expectation()

template<typename Signature >
const ExpectationT & mimicpp::ScopedExpectation< Signature >::expectation ( ) const
inlinenodiscardnoexcept

◆ explicit()

template<typename Signature >
template<typename T >
requires requires(const std::source_location& loc) { { std::declval<T&&>().finalize(loc) } -> std::convertible_to<ScopedExpectation>; }
mimicpp::ScopedExpectation< Signature >::explicit ( false ) const &&
nodiscard

◆ is_satisfied()

template<typename Signature >
bool mimicpp::ScopedExpectation< Signature >::is_satisfied ( ) const
inlinenodiscard

◆ operator=() [1/2]

template<typename Signature >
ScopedExpectation & mimicpp::ScopedExpectation< Signature >::operator= ( const ScopedExpectation< Signature > & )
delete

◆ operator=() [2/2]

template<typename Signature >
ScopedExpectation & mimicpp::ScopedExpectation< Signature >::operator= ( ScopedExpectation< Signature > && )
default

Member Data Documentation

◆ loc

template<typename Signature >
const std::source_location& mimicpp::ScopedExpectation< Signature >::loc
Initial value:
= std::source_location::current())
: ScopedExpectation{std::forward<T>(object).finalize(loc)}
{
}
Definition Expectation.hpp:335
ScopedExpectation(std::shared_ptr< StorageT > storage, std::shared_ptr< ExpectationT > expectation) noexcept
Definition Expectation.hpp:350
const std::source_location & loc
Definition Expectation.hpp:369

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