Class NamedValueCopier¶
Defined in File NamedValueCopier.hpp
Inheritance Relationships¶
Derived Types¶
public mu::tiny::mock::FunctionCopier(Class FunctionCopier)public mu::tiny::mock::TypedMockCopier< T >(Template Class TypedMockCopier)
Class Documentation¶
-
class NamedValueCopier¶
[source] Abstract interface for deep-copying a custom mock output-parameter value.
Implement copy() to transfer the object at
ininto the buffer atout. 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
-
virtual void copy(void *out, const void *in) = 0¶
Copy the object at
ininto the buffer atout.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.
-
virtual void copy(void *out, const void *in) = 0¶