Changeset View
Changeset View
Standalone View
Standalone View
3rdparty/mockitopp/detail/stubbing/dynamic_object.hpp
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Line(s) | 126 | { | |||
---|---|---|---|---|---|
127 | vtable_actual_ptr->functions[offset] = proxy_vfunction_factory<M>::get(ptr2member); | 127 | vtable_actual_ptr->functions[offset] = proxy_vfunction_factory<M>::get(ptr2member); | ||
128 | vtable_mocks[offset] = new dynamic_vfunction<typename remove_member_function_pointer_cv<M>::type>(); | 128 | vtable_mocks[offset] = new dynamic_vfunction<typename remove_member_function_pointer_cv<M>::type>(); | ||
129 | } | 129 | } | ||
130 | return *reinterpret_cast<dynamic_vfunction<typename remove_member_function_pointer_cv<M>::type>*>(vtable_mocks[offset]); | 130 | return *reinterpret_cast<dynamic_vfunction<typename remove_member_function_pointer_cv<M>::type>*>(vtable_mocks[offset]); | ||
131 | } | 131 | } | ||
132 | 132 | | |||
133 | void missing_vfunction() | 133 | void missing_vfunction() | ||
134 | { throw missing_implementation_exception(); } | 134 | { throw missing_implementation_exception(); } | ||
135 | | ||||
136 | private: | ||||
137 | dynamic_object(const dynamic_object &); | ||||
138 | dynamic_object &operator=(const dynamic_object &); | ||||
135 | }; | 139 | }; | ||
136 | } // namespace detail | 140 | } // namespace detail | ||
137 | } // namespace mockitopp | 141 | } // namespace mockitopp | ||
138 | 142 | | |||
139 | #endif //__MOCKITOPP_DYNAMIC_OBJECT_HPP__ | 143 | #endif //__MOCKITOPP_DYNAMIC_OBJECT_HPP__ |