Lines Matching refs:value

70 // default-constructed T value.  BuiltInDefaultValueGetter<T,
89 // BuiltInDefaultValue<T>::Get() returns the "built-in" default value
93 // default-constructed T value if T is default constructible. For any
94 // other type T, the built-in default T value is undefined, and the
100 // This function returns true iff type T has a built-in default value.
102 return ::std::is_default_constructible<T>::value;
107 T, ::std::is_default_constructible<T>::value>::Get();
111 // This function returns true iff type T has a built-in default value.
124 // default value for T and const T.
143 #define GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_(type, value) \
148 static type Get() { return value; } \
187 // let it return a default value if the user has specified one for its
188 // return type, or if the return type has a built-in default value;
189 // otherwise Google Mock won't know what value to return and will have
193 // default value for a type T that is both copyable and publicly
197 // // Sets the default value for type T to be foo.
202 // Sets the default value for type T; requires T to be
209 // Provides a factory function to be called to generate the default value.
218 // Unsets the default value for type T.
224 // Returns true iff the user has set the default value for type T.
227 // Returns true if T has a default return value set by the user or there
228 // exists a built-in default value.
233 // Returns the default value for type T if the user has set one;
234 // otherwise returns the built-in default value. Requires that Exists()
235 // is true, which ensures that the return value is well-defined.
250 explicit FixedValueProducer(T value) : value_(value) {}
277 // Sets the default value for type T&.
282 // Unsets the default value for type T&.
287 // Returns true iff the user has set the default value for type T&.
290 // Returns true if T has a default return value set by the user or there
291 // exists a built-in default value.
296 // Returns the default value for type T& if the user has set one;
297 // otherwise returns the built-in default value if there is one;
317 // Points to the user-set default value for type T.
321 // Points to the user-set default value for type T&.
424 // the definition of Return(void) and SetArgumentPointee<N>(value) for
505 explicit ByMoveWrapper(T value) : payload(internal::move(value)) {}
513 // Note: The value passed into Return must be converted into
536 // Constructs a ReturnAction object from the value to be returned.
537 // 'value' is passed by value instead of by const reference in order
539 explicit ReturnAction(R value) : value_(new R(internal::move(value))) {}
555 !is_reference<Result>::value,
570 // has a type conversion operator template. In that case, value_(value)
575 explicit Impl(const linked_ptr<R>& value)
576 : value_before_cast_(*value),
582 GTEST_COMPILE_ASSERT_(!is_reference<Result>::value,
584 // We save the value before casting just in case it is being cast to a
633 GTEST_COMPILE_ASSERT_(internal::is_pointer<Result>::value,
667 GTEST_COMPILE_ASSERT_(internal::is_reference<Result>::value,
705 explicit ReturnRefOfCopyAction(const T& value) : value_(value) {} // NOLINT
716 internal::is_reference<Result>::value,
729 explicit Impl(const T& value) : value_(value) {} // NOLINT
756 // particular value.
760 AssignAction(T1* ptr, T2 value) : ptr_(ptr), value_(value) {}
807 // N-th function argument to 'value'.
808 explicit SetArgumentPointeeAction(const A& value) : value_(value) {}
965 T& value = ref;
966 UniversalPrinter<T&>::Print(value, os);
1016 // An Unused object can be implicitly constructed from ANY value.
1057 // Creates an action that returns 'value'. 'value' is passed by value
1061 internal::ReturnAction<R> Return(R value) {
1062 return internal::ReturnAction<R>(internal::move(value));
1104 // (0-based) function argument to 'value'.
1108 N, T, internal::IsAProtocolMessage<T>::value> >
1111 N, T, internal::IsAProtocolMessage<T>::value>(x));
1139 N, T, internal::IsAProtocolMessage<T>::value> >
1142 N, T, internal::IsAProtocolMessage<T>::value>(x));
1145 // Creates an action that sets a pointer referent to a given value.
1191 // Creates a reference wrapper for the given L-value. If necessary,