mimic++ v6
Loading...
Searching...
No Matches
mimicpp::Mock< FirstSignature, OtherSignatures > Class Template Reference

A Mock type, which fully supports overload sets. More...

#include <Mock.hpp>

Inheritance diagram for mimicpp::Mock< FirstSignature, OtherSignatures >:
[legend]
Collaboration diagram for mimicpp::Mock< FirstSignature, OtherSignatures >:
[legend]

Public Member Functions

 ~Mock ()=default
 Defaulted destructor.
 
 Mock ()
 Default constructor.
 
 Mock (const std::size_t baseStacktraceSkip)
 Constructor, initializing the base-stacktrace-skip.
 
 Mock (const Mock &)=delete
 Deleted copy constructor.
 
Mockoperator= (const Mock &)=delete
 Deleted copy assignment operator.
 
 Mock (Mock &&)=default
 Defaulted move constructor.
 
Mockoperator= (Mock &&)=default
 Defaulted move assignment operator.
 

Detailed Description

template<typename FirstSignature, typename... OtherSignatures>
requires is_overload_set_v<FirstSignature, OtherSignatures...>
class mimicpp::Mock< FirstSignature, OtherSignatures >

A Mock type, which fully supports overload sets.

Template Parameters
FirstSignatureThe first signature.
OtherSignaturesOther signatures.

Constructor & Destructor Documentation

◆ ~Mock()

template<typename FirstSignature, typename... OtherSignatures>
mimicpp::Mock< FirstSignature, OtherSignatures >::~Mock ( )
default

Defaulted destructor.

◆ Mock() [1/4]

template<typename FirstSignature, typename... OtherSignatures>
mimicpp::Mock< FirstSignature, OtherSignatures >::Mock ( )
inlinenodiscard

Default constructor.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Mock() [2/4]

template<typename FirstSignature, typename... OtherSignatures>
mimicpp::Mock< FirstSignature, OtherSignatures >::Mock ( const std::size_t baseStacktraceSkip)
inlineexplicitnodiscard

Constructor, initializing the base-stacktrace-skip.

Parameters
baseStacktraceSkipThe base-stacktrace-skip.

This sets up the base-stacktrace-skip, which will be used when generating stacktraces for the invocations. This can be used, to eliminate irrelevant or noise stacktrace-entries from the top.

Note
This sets just the base value. Internally this value will be further increased.
Here is the call graph for this function:

◆ Mock() [3/4]

template<typename FirstSignature, typename... OtherSignatures>
mimicpp::Mock< FirstSignature, OtherSignatures >::Mock ( const Mock< FirstSignature, OtherSignatures > & )
delete

Deleted copy constructor.

Here is the call graph for this function:

◆ Mock() [4/4]

template<typename FirstSignature, typename... OtherSignatures>
mimicpp::Mock< FirstSignature, OtherSignatures >::Mock ( Mock< FirstSignature, OtherSignatures > && )
nodiscarddefault

Defaulted move constructor.

Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

template<typename FirstSignature, typename... OtherSignatures>
Mock & mimicpp::Mock< FirstSignature, OtherSignatures >::operator= ( const Mock< FirstSignature, OtherSignatures > & )
delete

Deleted copy assignment operator.

Here is the call graph for this function:

◆ operator=() [2/2]

template<typename FirstSignature, typename... OtherSignatures>
Mock & mimicpp::Mock< FirstSignature, OtherSignatures >::operator= ( Mock< FirstSignature, OtherSignatures > && )
default

Defaulted move assignment operator.

Here is the call graph for this function:

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