Changeset View
Changeset View
Standalone View
Standalone View
3rdparty/mockitopp/detail/stubbing/dynamic_vfunction.hpp
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 132 | { | |||
---|---|---|---|---|---|
138 | 138 | | |||
139 | matcher_element(const matcher_element& rhs) | 139 | matcher_element(const matcher_element& rhs) | ||
140 | : matcher(rhs.matcher->clone()) | 140 | : matcher(rhs.matcher->clone()) | ||
141 | {} | 141 | {} | ||
142 | 142 | | |||
143 | ~matcher_element() | 143 | ~matcher_element() | ||
144 | { delete matcher; } | 144 | { delete matcher; } | ||
145 | 145 | | |||
146 | matcher_element &operator= (const matcher_element& rhs) const | ||||
147 | { matcher_element tmp(rhs); std::swap(*this, tmp); return *this; } | ||||
148 | | ||||
146 | bool operator== (typename tr1::add_reference<typename tr1::add_const<T>::type>::type rhs) const | 149 | bool operator== (typename tr1::add_reference<typename tr1::add_const<T>::type>::type rhs) const | ||
147 | { return (*matcher == rhs); } | 150 | { return (*matcher == rhs); } | ||
148 | 151 | | |||
149 | bool operator== (const matcher_element& rhs) const | 152 | bool operator== (const matcher_element& rhs) const | ||
150 | { return (matcher == rhs.matcher); } | 153 | { return (matcher == rhs.matcher); } | ||
151 | }; | 154 | }; | ||
152 | 155 | | |||
153 | template <typename T> struct dynamic_vfunction; | 156 | template <typename T> struct dynamic_vfunction; | ||
▲ Show 20 Lines • Show All 1041 Lines • Show Last 20 Lines |