File indexing completed on 2024-06-23 05:21:36
0001 /* 0002 * SPDX-FileCopyrightText: 2008 Trevor Pounds 0003 * SPDX-License-Identifier: MIT 0004 */ 0005 0006 #ifndef __MOCKITOPP_MATCHER_HPP__ 0007 #define __MOCKITOPP_MATCHER_HPP__ 0008 0009 #include <mockitopp/detail/util/tr1_type_traits.hpp> 0010 0011 namespace mockitopp 0012 { 0013 namespace matcher 0014 { 0015 template <typename T> 0016 struct Matcher 0017 { 0018 virtual ~Matcher() {}; 0019 0020 virtual Matcher* clone() const = 0; 0021 0022 virtual bool operator== (typename mockitopp::detail::tr1::add_reference<typename mockitopp::detail::tr1::add_const<T>::type>::type rhs) const = 0; 0023 }; 0024 } // namespace matcher 0025 } // namespace mockitopp 0026 0027 #endif //__MOCKITOPP_MATCHER_HPP__