reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/PointerSumTypeTest.cpp
   20   typedef PointerSumType<Kinds, PointerSumTypeMember<Float, float *>,
   27       : f(3.14f), i1(42), i2(-1), a(SumType::create<Float>(&f)),
   39   EXPECT_EQ(Float, a.getTag());
   46   EXPECT_TRUE(a.is<Float>());
   49   EXPECT_FALSE(b.is<Float>());
   52   EXPECT_FALSE(c.is<Float>());
   58   EXPECT_EQ(&f, a.get<Float>());
   61   EXPECT_EQ(nullptr, b.get<Float>());
   64   EXPECT_EQ(nullptr, c.get<Float>());
   70   EXPECT_EQ(nullptr, n.get<Float>());
   76   EXPECT_EQ(&f, a.cast<Float>());
   83   EXPECT_EQ(nullptr, b.get<Float>());
   88   EXPECT_EQ(nullptr, b.get<Float>());
   93   b = SumType::create<Float>(&Local);
   94   EXPECT_EQ(&Local, b.get<Float>());
  100   EXPECT_EQ(nullptr, n.get<Float>());
  104   n = SumType::create<Float>(nullptr);
  106   EXPECT_EQ(nullptr, n.get<Float>());