Lines Matching defs:operator

236 //   GTEST_DISALLOW_ASSIGN_   - disables operator=.
237 // GTEST_DISALLOW_COPY_AND_ASSIGN_ - disables copy ctor and operator=.
842 tuple& operator=(const tuple& /* t */) { return *this; }
859 tuple& operator=(const tuple& t) { return CopyFrom(t); }
862 tuple& operator=(const GTEST_1_TUPLE_(U)& t) {
894 tuple& operator=(const tuple& t) { return CopyFrom(t); }
897 tuple& operator=(const GTEST_2_TUPLE_(U)& t) {
901 tuple& operator=(const ::std::pair<U0, U1>& p) {
935 tuple& operator=(const tuple& t) { return CopyFrom(t); }
938 tuple& operator=(const GTEST_3_TUPLE_(U)& t) {
974 tuple& operator=(const tuple& t) { return CopyFrom(t); }
977 tuple& operator=(const GTEST_4_TUPLE_(U)& t) {
1016 tuple& operator=(const tuple& t) { return CopyFrom(t); }
1019 tuple& operator=(const GTEST_5_TUPLE_(U)& t) {
1061 tuple& operator=(const tuple& t) { return CopyFrom(t); }
1064 tuple& operator=(const GTEST_6_TUPLE_(U)& t) {
1108 tuple& operator=(const tuple& t) { return CopyFrom(t); }
1111 tuple& operator=(const GTEST_7_TUPLE_(U)& t) {
1158 tuple& operator=(const tuple& t) { return CopyFrom(t); }
1161 tuple& operator=(const GTEST_8_TUPLE_(U)& t) {
1210 tuple& operator=(const tuple& t) { return CopyFrom(t); }
1213 tuple& operator=(const GTEST_9_TUPLE_(U)& t) {
1266 tuple& operator=(const tuple& t) { return CopyFrom(t); }
1269 tuple& operator=(const GTEST_10_TUPLE_(U)& t) {
1607 inline bool operator==(const GTEST_10_TUPLE_(T)& t,
1615 inline bool operator!=(const GTEST_10_TUPLE_(T)& t,
1826 // A macro to disallow operator=
1829 void operator=(type const &)
1831 // A macro to disallow copy constructor and operator=
2004 T& operator*() const { return *ptr_; }
2005 T* operator->() const { return ptr_; }
3125 // Ensures that there is at least one operator<< in the global namespace.
3126 // See Message& operator<<(...) below for why.
3127 void operator<<(const testing::internal::Secret&, int);
3180 inline Message& operator <<(const T& value) {
3187 inline Message& operator <<(const T& val) {
3196 // To allow STL containers (and other types that has a << operator
3198 // assertions, testing::Message must access the custom << operator
3202 using ::operator <<;
3221 inline Message& operator <<(T* const& pointer) { // NOLINT
3233 // of operator <<, even though its body is the same as the
3237 Message& operator <<(BasicNarrowIoManip val) {
3243 Message& operator <<(bool b) {
3249 Message& operator <<(const wchar_t* wide_c_str);
3250 Message& operator <<(wchar_t* wide_c_str);
3255 Message& operator <<(const ::std::wstring& wstr);
3261 Message& operator <<(const ::wstring& wstr);
3288 // See the comments in Message& operator <<(const T&) above for why
3290 using ::operator <<;
3299 // from implementing the assignment operator.
3300 void operator=(const Message&);
3304 inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
3555 FilePath& operator=(const FilePath& rhs) {
7358 // them for equality using the == operator.
7627 operator bool() const { return true; }
7841 // elements' operator==, where k can be any integer >= 0. When k is
7881 // operator=, where k can be any integer >= 0. When k is 0,
7954 bool operator==(const NativeArray& rhs) const {
8628 bool operator()(int exit_status) const;
8631 void operator=(const ExitedWithCode& other);
8642 bool operator()(int exit_status) const;
9113 template <typename U> linked_ptr& operator=(linked_ptr<U> const& ptr) {
9119 linked_ptr& operator=(linked_ptr const& ptr) {
9133 T* operator->() const { return value_; }
9134 T& operator*() const { return *value_; }
9136 bool operator==(T* p) const { return value_ == p; }
9137 bool operator!=(T* p) const { return value_ != p; }
9139 bool operator==(linked_ptr<U> const& ptr) const {
9143 bool operator!=(linked_ptr<U> const& ptr) const {
9173 bool operator==(T* ptr, const linked_ptr<T>& x) {
9178 bool operator!=(T* ptr, const linked_ptr<T>& x) {
9233 // defining either operator<<() or PrintTo() in the namespace that
9239 // 2. operator<<(ostream&, const T&) defined in either foo or the
9320 // operator<< nor PrintTo() is defined for T, where kTypeKind is the
9352 // Since T has no << operator or PrintTo() but can be implicitly
9370 // type T and T has neither << operator nor PrintTo().
9373 // a << operator in the namespace where Foo is defined.
9375 // We put this operator in namespace 'internal2' instead of 'internal'
9380 // Note that this operator<< takes a generic std::basic_ostream<Char,
9386 // operator<<(std::ostream&, const T&) or
9387 // operator<<(std::basic_stream<Char, CharTraits>, const Foo&) is more
9390 ::std::basic_ostream<Char, CharTraits>& operator<<(
9411 // testing::internal2::operator<< appears as if it was declared in
9416 // testing::internal2::operator<< in case T doesn't come with a <<
9417 // operator.
9419 // We cannot write 'using ::testing::internal2::operator<<;', which
9426 // 1. foo::operator<< (thanks to Koenig look-up),
9427 // 2. ::operator<< (as the current namespace is enclosed in ::),
9428 // 3. testing::internal2::operator<< (thanks to the using statement above).
9430 // The operator<< whose type matches T best will be picked.
9532 // Prints the given value using the << operator if it has one;
9539 // give the user this option as sometimes defining a << operator for
9541 // or there is already a << operator but it doesn't do what the user
9552 // for protocol message types in our operator<<. The rationale is:
9556 // operator<<. For STL containers, other formats can be
10086 // Used for implementing ParamGenerator<T>::operator*().
10090 // Used for implementing ParamGenerator<T>::operator==().
10106 ParamIterator& operator=(const ParamIterator& other) {
10112 const T& operator*() const { return *impl_->Current(); }
10113 const T* operator->() const { return impl_->Current(); }
10114 // Prefix version of operator++.
10115 ParamIterator& operator++() {
10119 // Postfix version of operator++.
10120 ParamIterator operator++(int /*unused*/) {
10125 bool operator==(const ParamIterator& other) const {
10128 bool operator!=(const ParamIterator& other) const {
10165 ParamGenerator& operator=(const ParamGenerator& other) {
10178 // generate sequences of user-defined types that implement operator+() and
10179 // operator<().
10233 void operator=(const Iterator& other);
10251 void operator=(const RangeGenerator& other);
10334 // pointer in the wrapping iterator's operator->().
10342 void operator=(const ValuesInIteratorRangeGenerator& other);
10698 operator ParamGenerator<T>() const { return ValuesIn(&v1_, &v1_ + 1); }
10702 void operator=(const ValueArray1& other);
10713 operator ParamGenerator<T>() const {
10720 void operator=(const ValueArray2& other);
10732 operator ParamGenerator<T>() const {
10740 void operator=(const ValueArray3& other);
10754 operator ParamGenerator<T>() const {
10762 void operator=(const ValueArray4& other);
10777 operator ParamGenerator<T>() const {
10785 void operator=(const ValueArray5& other);
10802 operator ParamGenerator<T>() const {
10811 void operator=(const ValueArray6& other);
10829 operator ParamGenerator<T>() const {
10838 void operator=(const ValueArray7& other);
10858 operator ParamGenerator<T>() const {
10867 void operator=(const ValueArray8& other);
10888 operator ParamGenerator<T>() const {
10898 void operator=(const ValueArray9& other);
10920 operator ParamGenerator<T>() const {
10930 void operator=(const ValueArray10& other);
10954 operator ParamGenerator<T>() const {
10964 void operator=(const ValueArray11& other);
10989 operator ParamGenerator<T>() const {
11000 void operator=(const ValueArray12& other);
11027 operator ParamGenerator<T>() const {
11038 void operator=(const ValueArray13& other);
11066 operator ParamGenerator<T>() const {
11077 void operator=(const ValueArray14& other);
11106 operator ParamGenerator<T>() const {
11118 void operator=(const ValueArray15& other);
11150 operator ParamGenerator<T>() const {
11162 void operator=(const ValueArray16& other);
11195 operator ParamGenerator<T>() const {
11207 void operator=(const ValueArray17& other);
11241 operator ParamGenerator<T>() const {
11254 void operator=(const ValueArray18& other);
11289 operator ParamGenerator<T>() const {
11302 void operator=(const ValueArray19& other);
11339 operator ParamGenerator<T>() const {
11352 void operator=(const ValueArray20& other);
11391 operator ParamGenerator<T>() const {
11405 void operator=(const ValueArray21& other);
11445 operator ParamGenerator<T>() const {
11459 void operator=(const ValueArray22& other);
11501 operator ParamGenerator<T>() const {
11515 void operator=(const ValueArray23& other);
11558 operator ParamGenerator<T>() const {
11573 void operator=(const ValueArray24& other);
11617 operator ParamGenerator<T>() const {
11632 void operator=(const ValueArray25& other);
11678 operator ParamGenerator<T>() const {
11693 void operator=(const ValueArray26& other);
11741 operator ParamGenerator<T>() const {
11757 void operator=(const ValueArray27& other);
11806 operator ParamGenerator<T>() const {
11822 void operator=(const ValueArray28& other);
11872 operator ParamGenerator<T>() const {
11888 void operator=(const ValueArray29& other);
11940 operator ParamGenerator<T>() const {
11957 void operator=(const ValueArray30& other);
12011 operator ParamGenerator<T>() const {
12028 void operator=(const ValueArray31& other);
12083 operator ParamGenerator<T>() const {
12100 void operator=(const ValueArray32& other);
12157 operator ParamGenerator<T>() const {
12175 void operator=(const ValueArray33& other);
12233 operator ParamGenerator<T>() const {
12251 void operator=(const ValueArray34& other);
12310 operator ParamGenerator<T>() const {
12328 void operator=(const ValueArray35& other);
12389 operator ParamGenerator<T>() const {
12408 void operator=(const ValueArray36& other);
12471 operator ParamGenerator<T>() const {
12490 void operator=(const ValueArray37& other);
12554 operator ParamGenerator<T>() const {
12573 void operator=(const ValueArray38& other);
12638 operator ParamGenerator<T>() const {
12658 void operator=(const ValueArray39& other);
12725 operator ParamGenerator<T>() const {
12745 void operator=(const ValueArray40& other);
12814 operator ParamGenerator<T>() const {
12834 void operator=(const ValueArray41& other);
12904 operator ParamGenerator<T>() const {
12925 void operator=(const ValueArray42& other);
12996 operator ParamGenerator<T>() const {
13017 void operator=(const ValueArray43& other);
13090 operator ParamGenerator<T>() const {
13111 void operator=(const ValueArray44& other);
13185 operator ParamGenerator<T>() const {
13207 void operator=(const ValueArray45& other);
13283 operator ParamGenerator<T>() const {
13305 void operator=(const ValueArray46& other);
13383 operator ParamGenerator<T>() const {
13405 void operator=(const ValueArray47& other);
13484 operator ParamGenerator<T>() const {
13507 void operator=(const ValueArray48& other);
13587 operator ParamGenerator<T>() const {
13610 void operator=(const ValueArray49& other);
13691 operator ParamGenerator<T>() const {
13714 void operator=(const ValueArray50& other);
13867 void operator=(const Iterator& other);
13882 void operator=(const CartesianProductGenerator2& other);
13995 void operator=(const Iterator& other);
14013 void operator=(const CartesianProductGenerator3& other);
14142 void operator=(const Iterator& other);
14163 void operator=(const CartesianProductGenerator4& other);
14305 void operator=(const Iterator& other);
14329 void operator=(const CartesianProductGenerator5& other);
14487 void operator=(const Iterator& other);
14514 void operator=(const CartesianProductGenerator6& other);
14686 void operator=(const Iterator& other);
14716 void operator=(const CartesianProductGenerator7& other);
14904 void operator=(const Iterator& other);
14937 void operator=(const CartesianProductGenerator8& other);
15139 void operator=(const Iterator& other);
15175 void operator=(const CartesianProductGenerator9& other);
15391 void operator=(const Iterator& other);
15430 void operator=(const CartesianProductGenerator10& other);
15457 operator ParamGenerator< ::std::tr1::tuple<T1, T2> >() const {
15466 void operator=(const CartesianProductHolder2& other);
15479 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3> >() const {
15489 void operator=(const CartesianProductHolder3& other);
15504 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4> >() const {
15515 void operator=(const CartesianProductHolder4& other);
15531 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5> >() const {
15543 void operator=(const CartesianProductHolder5& other);
15562 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6> >() const {
15575 void operator=(const CartesianProductHolder6& other);
15595 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6,
15610 void operator=(const CartesianProductHolder7& other);
15633 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7,
15649 void operator=(const CartesianProductHolder8& other);
15674 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8,
15692 void operator=(const CartesianProductHolder9& other);
15718 operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8,
15738 void operator=(const CartesianProductHolder10& other);
15799 // * It must be assignable (have operator=() defined).
15800 // * It must have operator+() (operator+(int-compatible type) for
15802 // * It must have operator<() defined.
17163 std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
17678 operator bool() const { return success_; } // NOLINT
17681 AssertionResult operator!() const;
17695 template <typename T> AssertionResult& operator<<(const T& value) {
17702 AssertionResult& operator<<(
19147 void operator=(const Message& message) const;
19404 // and the values v1, v2, ..., must support the << operator for
19713 // values can be compared by the respective operator.