return (create(static_cast<long long int>(i), pos));
}
+ElementPtr
+Element::create(const uint32_t i, const Position& pos) {
+ return (create(static_cast<long long int>(i), pos));
+}
+
ElementPtr
Element::create(const double d, const Position& pos) {
return (ElementPtr(new DoubleElement(d, pos)));
const Position& pos = ZERO_POSITION());
static ElementPtr create(const long int i,
const Position& pos = ZERO_POSITION());
+ static ElementPtr create(const uint32_t i,
+ const Position& pos = ZERO_POSITION());
static ElementPtr create(const double d,
const Position& pos = ZERO_POSITION());
static ElementPtr create(const bool b,
T el;
int64_t i;
int32_t i32;
+ uint32_t ui32;
long l;
long long ll;
double d;
EXPECT_TRUE(el->getValue(i));
EXPECT_EQ(i32, i);
+ ui32 = 4294967295L;
+ el = Element::create(ui32);
+ EXPECT_NO_THROW({
+ EXPECT_EQ(ui32, el->intValue());
+ });
+ EXPECT_TRUE(el->getValue(i));
+ EXPECT_EQ(ui32, i);
+
l = 2147483647L;
el = Element::create(l);
EXPECT_NO_THROW({