Searched refs:To (Results 1 - 8 of 8) sorted by relevance

/gem5/ext/googletest/googlemock/include/gmock/internal/
H A Dgmock-internal-utils.h114 // To gcc,
175 // LosslessArithmeticConvertibleImpl<kFromKind, From, kToKind, To>::value
177 // arithmetic type To.
179 // It's the user's responsibility to ensure that both From and To are
182 // From, and kToKind is the kind of To; the value is
184 template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To>
193 template <typename To>
194 struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To>
198 template <typename To>
199 struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To>
[all...]
/gem5/src/systemc/tests/systemc/datatypes/fx/constructors/
H A Darray.cpp67 template <typename To, typename From>
68 To convert(From val) {
/gem5/src/systemc/tests/systemc/datatypes/fx/fast_constructors/
H A Darray.cpp68 template <typename To, typename From>
69 To convert(From val) {
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-port.h470 // that. To reliably check for C++ exception availability with clang, check for
601 // To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0
673 // To avoid conditional compilation everywhere, we make it
1342 template<typename To>
1343 inline To ImplicitCast_(To x) { return x; }
1366 template<typename To, typename From> // use like this: DownCast_<T*>(foo);
1367 inline To DownCast_(From* f) { // so we only accept pointers
1368 // Ensures that To is a sub-type of From *. This test is here only
1375 const To t
[all...]
H A Dgtest-internal.h851 // ImplicitlyConvertible<From, To>::value is a compile-time bool
853 // type To.
854 template <typename From, typename To>
867 // implicitly converted to type To; otherwise it will pick the
874 // implicitly converted to type To.
875 static char Helper(To);
885 static const bool value = __is_convertible(From, To);
896 template <typename From, typename To>
897 const bool ImplicitlyConvertible<From, To>::value;
943 // undefined when 'Cond' is false. To us
[all...]
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h61 // To implement a matcher Foo for type T, define:
421 // To define a polymorphic matcher, a user should provide an Impl
2103 // The result of dynamic_cast<To> is forwarded to the inner matcher.
2104 // If To is a pointer and the cast fails, the inner matcher will receive NULL.
2105 // If To is a reference and the cast fails, this matcher returns false
2107 template <typename To>
2110 explicit WhenDynamicCastToMatcherBase(const Matcher<To>& matcher)
2124 const Matcher<To> matcher_;
2128 return GetTypeName<To>();
2143 // To i
[all...]
H A Dgmock-actions.h55 // To implement an action Foo, define:
409 // To define a polymorphic action, a user first provides a COPYABLE
528 // makes a copy of foo, the above code is safe. To support that scenario, we
1049 // Action<To>, as long as To's arguments can be implicitly converted
1051 // To's.
1052 template <typename To>
1054 Action<To>::Action(const Action<From>& from)
1055 : impl_(new internal::ActionAdaptor<To, From>(from)) {}
/gem5/ext/googletest/googletest/test/
H A Dgtest-port_test.cc202 class To { class in namespace:testing::internal
204 To(bool* converted) { *converted = true; } // NOLINT function in class:testing::internal::To
209 To to = ::testing::internal::ImplicitCast_<To>(&converted);
336 // joining a thread, causing flakiness in this test. To counter that, we

Completed in 42 milliseconds