Lines Matching refs:get

35   const T& get() const { return value_; }  in get()  function in __anon1fde347f0111::TestType
53 InstrumentType(const TestType<T>& other) : value_(other.get()) { in InstrumentType()
74 value_ = other.get(); in operator =()
88 const T& get() const { return value_; } in get() function in __anon1fde347f0111::InstrumentType
135 EXPECT_EQ(10, std::get<int>(v)); in TEST()
145 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
155 EXPECT_FLOAT_EQ(1.0f, std::get<float>(v)); in TEST()
174 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST()
190 EXPECT_EQ(20, std::get<int>(v)); in TEST()
199 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
208 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
219 EXPECT_EQ("test", std::get<std::string>(v2)); in TEST()
253 EXPECT_EQ(&b, std::get<char*>(v)); in TEST()
254 EXPECT_EQ(b, *std::get<char*>(v)); in TEST()
258 EXPECT_EQ(&a, std::get<int*>(v)); in TEST()
259 EXPECT_EQ(a, *std::get<int*>(v)); in TEST()
269 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
272 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
284 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
290 s = std::move(std::get<std::string>(v)); in TEST()
293 EXPECT_TRUE(std::get<std::string>(v).empty()); in TEST()
304 EXPECT_TRUE(std::get<std::string>(a).empty()); in TEST()
305 EXPECT_EQ("test", std::get<std::string>(b)); in TEST()
315 EXPECT_TRUE(std::get<std::string>(a).empty()); in TEST()
316 EXPECT_EQ("test", std::get<std::string>(b)); in TEST()
326 EXPECT_TRUE(std::get<std::string>(a).empty()); in TEST()
327 EXPECT_EQ("test", std::get<std::string>(b)); in TEST()
337 EXPECT_EQ(10, std::get<int>(a)); in TEST()
338 EXPECT_EQ(10, std::get<int>(b)); in TEST()
367 EXPECT_EQ(1, std::get<int>(v)); in TEST()
372 Variant<int, bool, float> v(i.get()); in TEST()
374 EXPECT_EQ(1, std::get<int>(v)); in TEST()
381 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
386 Variant<int, bool, float> v(b.get()); in TEST()
388 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
395 EXPECT_EQ("test", std::get<std::string>(s)); in TEST()
412 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
413 EXPECT_EQ(a, t.get()); in TEST()
416 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
417 EXPECT_EQ(a, t.get()); in TEST()
594 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) != nullptr); in TEST()
604 EXPECT_TRUE(std::get<std::unique_ptr<int>>(a) == nullptr); in TEST()
605 EXPECT_TRUE(std::get<std::unique_ptr<int>>(b) != nullptr); in TEST()
662 EXPECT_FALSE(std::get<std::string>(v).empty()); in TEST()
669 EXPECT_TRUE(std::get<std::string>(v).empty()); in TEST()
701 EXPECT_EQ(10, std::get<int>(v)); in TEST()
705 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
709 EXPECT_FLOAT_EQ(2.0f, std::get<float>(v)); in TEST()
726 EXPECT_TRUE(std::get<std::string>(v).empty()); in TEST()
734 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
742 EXPECT_EQ("foo", std::get<std::string>(v)); in TEST()
764 EXPECT_EQ("1", std::get<std::string>(b)); in TEST()
775 EXPECT_EQ("1", std::get<std::string>(a)); in TEST()
785 EXPECT_EQ("2", std::get<std::string>(a)); in TEST()
786 EXPECT_EQ("1", std::get<std::string>(b)); in TEST()
796 EXPECT_EQ("1", std::get<std::string>(a)); in TEST()
797 EXPECT_EQ(10, std::get<int>(b)); in TEST()
807 EXPECT_EQ(10, std::get<int>(a)); in TEST()
808 EXPECT_EQ("1", std::get<std::string>(b)); in TEST()
816 EXPECT_EQ(nullptr, &std::get<int>(v)); in TEST()
817 EXPECT_EQ(nullptr, &std::get<bool>(v)); in TEST()
818 EXPECT_EQ(nullptr, &std::get<float>(v)); in TEST()
819 EXPECT_EQ(nullptr, &std::get<0>(v)); in TEST()
820 EXPECT_EQ(nullptr, &std::get<1>(v)); in TEST()
821 EXPECT_EQ(nullptr, &std::get<2>(v)); in TEST()
822 EXPECT_EQ(nullptr, &std::get<3>(v)); in TEST()
830 EXPECT_EQ(9, std::get<int>(v)); in TEST()
831 EXPECT_EQ(9, std::get<0>(v)); in TEST()
833 std::get<int>(v) = 10; in TEST()
834 EXPECT_EQ(10, std::get<int>(v)); in TEST()
835 EXPECT_EQ(10, std::get<0>(v)); in TEST()
837 std::get<0>(v) = 11; in TEST()
838 EXPECT_EQ(11, std::get<int>(v)); in TEST()
839 EXPECT_EQ(11, std::get<0>(v)); in TEST()
841 std::get<3>(v) = 12; in TEST()
842 EXPECT_EQ(12, std::get<int>(v)); in TEST()
843 EXPECT_EQ(12, std::get<3>(v)); in TEST()
851 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
852 EXPECT_EQ(false, std::get<1>(v)); in TEST()
854 std::get<bool>(v) = true; in TEST()
855 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
856 EXPECT_EQ(true, std::get<1>(v)); in TEST()
858 std::get<bool>(v) = false; in TEST()
859 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
860 EXPECT_EQ(false, std::get<1>(v)); in TEST()
862 std::get<1>(v) = true; in TEST()
863 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
864 EXPECT_EQ(true, std::get<1>(v)); in TEST()
866 std::get<1>(v) = false; in TEST()
867 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
868 EXPECT_EQ(false, std::get<1>(v)); in TEST()
877 EXPECT_FLOAT_EQ(1.0, std::get<float>(v)); in TEST()
878 EXPECT_FLOAT_EQ(1.0, std::get<2>(v)); in TEST()
880 std::get<float>(v) = 1.1; in TEST()
881 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST()
882 EXPECT_FLOAT_EQ(1.1, std::get<2>(v)); in TEST()
884 std::get<float>(v) = -3.0; in TEST()
885 EXPECT_FLOAT_EQ(-3.0, std::get<float>(v)); in TEST()
886 EXPECT_FLOAT_EQ(-3.0, std::get<2>(v)); in TEST()
888 std::get<2>(v) = 1.1; in TEST()
889 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST()
890 EXPECT_FLOAT_EQ(1.1, std::get<2>(v)); in TEST()
892 std::get<2>(v) = -3.0; in TEST()
893 EXPECT_FLOAT_EQ(-3.0, std::get<float>(v)); in TEST()
894 EXPECT_FLOAT_EQ(-3.0, std::get<2>(v)); in TEST()
899 std::unique_ptr<int> pointer = std::move(std::get<std::unique_ptr<int>>(v)); in TEST()
902 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) == nullptr); in TEST()
907 std::string s = std::get<std::string>(std::move(v)); in TEST()
956 const int* original_v = std::get<std::unique_ptr<int>>(v).get(); in TEST()
962 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) == nullptr); in TEST()
963 EXPECT_EQ(u.get(), original_v); in TEST()
971 std::get<std::unique_ptr<DerivedType>>(v).get(); in TEST()
977 EXPECT_TRUE(std::get<std::unique_ptr<DerivedType>>(v) == nullptr); in TEST()
978 EXPECT_EQ(u.get(), original_v); in TEST()
984 const int* original_v = std::get<std::unique_ptr<int>>(v).get(); in TEST()
991 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) == nullptr); in TEST()
992 EXPECT_EQ(u.get(), original_v); in TEST()
1011 EXPECT_EQ("bar", std::get<std::string>(v)); in TEST()
1022 EXPECT_EQ("foo", std::get<const char*>(v)); in TEST()
1056 EXPECT_EQ(10, std::get<const int>(v)); in TEST()
1062 EXPECT_EQ("test", std::get<const std::string>(v)); in TEST()
1068 EXPECT_EQ(10, std::get<volatile int>(v)); in TEST()