Lines Matching refs:get
40 const T& get() const { return value_; } in get() function in __anon1ad818080111::TestType
61 InstrumentType(const TestType<T>& other) : value_(other.get()) { in InstrumentType()
83 value_ = other.get(); in operator =()
97 const T& get() const { return value_; } in get() function in __anon1ad818080111::InstrumentType
144 EXPECT_EQ(10, std::get<int>(v)); in TEST()
154 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
164 EXPECT_FLOAT_EQ(1.0f, std::get<float>(v)); in TEST()
183 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST()
199 EXPECT_EQ(20, std::get<int>(v)); in TEST()
208 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
217 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
228 EXPECT_EQ("test", std::get<std::string>(v2)); in TEST()
262 EXPECT_EQ(&b, std::get<char*>(v)); in TEST()
263 EXPECT_EQ(b, *std::get<char*>(v)); in TEST()
267 EXPECT_EQ(&a, std::get<int*>(v)); in TEST()
268 EXPECT_EQ(a, *std::get<int*>(v)); in TEST()
278 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
281 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
293 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
299 s = std::move(std::get<std::string>(v)); in TEST()
302 EXPECT_TRUE(std::get<std::string>(v).empty()); in TEST()
313 EXPECT_TRUE(std::get<std::string>(a).empty()); in TEST()
314 EXPECT_EQ("test", std::get<std::string>(b)); in TEST()
324 EXPECT_TRUE(std::get<std::string>(a).empty()); in TEST()
325 EXPECT_EQ("test", std::get<std::string>(b)); in TEST()
335 EXPECT_TRUE(std::get<std::string>(a).empty()); in TEST()
336 EXPECT_EQ("test", std::get<std::string>(b)); in TEST()
346 EXPECT_EQ(10, std::get<int>(a)); in TEST()
347 EXPECT_EQ(10, std::get<int>(b)); in TEST()
376 EXPECT_EQ(1, std::get<int>(v)); in TEST()
381 Variant<int, bool, float> v(i.get()); in TEST()
383 EXPECT_EQ(1, std::get<int>(v)); in TEST()
390 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
395 Variant<int, bool, float> v(b.get()); in TEST()
397 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
404 EXPECT_EQ("test", std::get<std::string>(s)); in TEST()
421 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
422 EXPECT_EQ(a, t.get()); in TEST()
425 EXPECT_EQ(a, std::get<IntRef>(v)); in TEST()
426 EXPECT_EQ(a, t.get()); in TEST()
622 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) != nullptr); in TEST()
632 EXPECT_TRUE(std::get<std::unique_ptr<int>>(a) == nullptr); in TEST()
633 EXPECT_TRUE(std::get<std::unique_ptr<int>>(b) != nullptr); in TEST()
690 EXPECT_FALSE(std::get<std::string>(v).empty()); in TEST()
697 EXPECT_TRUE(std::get<std::string>(v).empty()); in TEST()
729 EXPECT_EQ(10, std::get<int>(v)); in TEST()
733 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
737 EXPECT_FLOAT_EQ(2.0f, std::get<float>(v)); in TEST()
754 EXPECT_TRUE(std::get<std::string>(v).empty()); in TEST()
762 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
770 EXPECT_EQ("foo", std::get<std::string>(v)); in TEST()
792 EXPECT_EQ("1", std::get<std::string>(b)); in TEST()
803 EXPECT_EQ("1", std::get<std::string>(a)); in TEST()
813 EXPECT_EQ("2", std::get<std::string>(a)); in TEST()
814 EXPECT_EQ("1", std::get<std::string>(b)); in TEST()
824 EXPECT_EQ("1", std::get<std::string>(a)); in TEST()
825 EXPECT_EQ(10, std::get<int>(b)); in TEST()
835 EXPECT_EQ(10, std::get<int>(a)); in TEST()
836 EXPECT_EQ("1", std::get<std::string>(b)); in TEST()
844 EXPECT_EQ(nullptr, &std::get<int>(v)); in TEST()
845 EXPECT_EQ(nullptr, &std::get<bool>(v)); in TEST()
846 EXPECT_EQ(nullptr, &std::get<float>(v)); in TEST()
847 EXPECT_EQ(nullptr, &std::get<0>(v)); in TEST()
848 EXPECT_EQ(nullptr, &std::get<1>(v)); in TEST()
849 EXPECT_EQ(nullptr, &std::get<2>(v)); in TEST()
850 EXPECT_EQ(nullptr, &std::get<3>(v)); in TEST()
858 EXPECT_EQ(9, std::get<int>(v)); in TEST()
859 EXPECT_EQ(9, std::get<0>(v)); in TEST()
861 std::get<int>(v) = 10; in TEST()
862 EXPECT_EQ(10, std::get<int>(v)); in TEST()
863 EXPECT_EQ(10, std::get<0>(v)); in TEST()
865 std::get<0>(v) = 11; in TEST()
866 EXPECT_EQ(11, std::get<int>(v)); in TEST()
867 EXPECT_EQ(11, std::get<0>(v)); in TEST()
869 std::get<3>(v) = 12; in TEST()
870 EXPECT_EQ(12, std::get<int>(v)); in TEST()
871 EXPECT_EQ(12, std::get<3>(v)); in TEST()
879 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
880 EXPECT_EQ(false, std::get<1>(v)); in TEST()
882 std::get<bool>(v) = true; in TEST()
883 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
884 EXPECT_EQ(true, std::get<1>(v)); in TEST()
886 std::get<bool>(v) = false; in TEST()
887 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
888 EXPECT_EQ(false, std::get<1>(v)); in TEST()
890 std::get<1>(v) = true; in TEST()
891 EXPECT_EQ(true, std::get<bool>(v)); in TEST()
892 EXPECT_EQ(true, std::get<1>(v)); in TEST()
894 std::get<1>(v) = false; in TEST()
895 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
896 EXPECT_EQ(false, std::get<1>(v)); in TEST()
905 EXPECT_FLOAT_EQ(1.0, std::get<float>(v)); in TEST()
906 EXPECT_FLOAT_EQ(1.0, std::get<2>(v)); in TEST()
908 std::get<float>(v) = 1.1; in TEST()
909 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST()
910 EXPECT_FLOAT_EQ(1.1, std::get<2>(v)); in TEST()
912 std::get<float>(v) = -3.0; in TEST()
913 EXPECT_FLOAT_EQ(-3.0, std::get<float>(v)); in TEST()
914 EXPECT_FLOAT_EQ(-3.0, std::get<2>(v)); in TEST()
916 std::get<2>(v) = 1.1; in TEST()
917 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST()
918 EXPECT_FLOAT_EQ(1.1, std::get<2>(v)); in TEST()
920 std::get<2>(v) = -3.0; in TEST()
921 EXPECT_FLOAT_EQ(-3.0, std::get<float>(v)); in TEST()
922 EXPECT_FLOAT_EQ(-3.0, std::get<2>(v)); in TEST()
927 std::unique_ptr<int> pointer = std::move(std::get<std::unique_ptr<int>>(v)); in TEST()
930 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) == nullptr); in TEST()
935 std::string s = std::get<std::string>(std::move(v)); in TEST()
984 const int* original_v = std::get<std::unique_ptr<int>>(v).get(); in TEST()
990 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) == nullptr); in TEST()
991 EXPECT_EQ(u.get(), original_v); in TEST()
999 std::get<std::unique_ptr<DerivedType>>(v).get(); in TEST()
1005 EXPECT_TRUE(std::get<std::unique_ptr<DerivedType>>(v) == nullptr); in TEST()
1006 EXPECT_EQ(u.get(), original_v); in TEST()
1012 const int* original_v = std::get<std::unique_ptr<int>>(v).get(); in TEST()
1019 EXPECT_TRUE(std::get<std::unique_ptr<int>>(v) == nullptr); in TEST()
1020 EXPECT_EQ(u.get(), original_v); in TEST()
1039 EXPECT_EQ("bar", std::get<std::string>(v)); in TEST()
1050 EXPECT_EQ("foo", std::get<const char*>(v)); in TEST()
1084 EXPECT_EQ(10, std::get<const int>(v)); in TEST()
1090 EXPECT_EQ("test", std::get<const std::string>(v)); in TEST()
1096 EXPECT_EQ(10, std::get<volatile int>(v)); in TEST()