Class NamedValueCopier

Inheritance Relationships

Derived Types

Class Documentation

class NamedValueCopier
[source]

Abstract interface for deep-copying a custom mock output-parameter value.

Implement copy() to transfer the object at in into the buffer at out. The copier’s lifetime must extend at least as long as the test (or SupportPlugin scope).

Subclassed by mu::tiny::mock::FunctionCopier, mu::tiny::mock::TypedMockCopier< T >

Public Functions

NamedValueCopier() = default
[source]
virtual ~NamedValueCopier() = default
[source]
virtual void copy(void *out, const void *in) = 0

Copy the object at in into the buffer at out.

Both pointers reference objects of the type associated with this copier.

Parameters:
  • out – Destination buffer (already allocated by the caller).

  • in – Source object to copy from.