13 throw cms::Exception(
"LogicError",
"Mismatch in adding extension");
14 for (
unsigned int i = 0,
n =
other.nColumns();
i <
n; ++
i) {
15 switch (
other.columnType(
i)) {
16 case ColumnType::Float:
25 case ColumnType::UInt8:
26 addColumn<uint8_t>(
other.columnName(
i),
other.columnData<uint8_t>(
i),
other.columnDoc(
i));
29 addColumn<uint32_t>(
other.columnName(
i),
other.columnData<uint32_t>(
i),
other.columnDoc(
i));
31 case ColumnType::Double:
32 addColumn<double>(
other.columnName(
i),
other.columnData<
double>(
i),
other.columnDoc(
i));
41 if (column >= nColumns())
43 switch (columnType(column)) {
44 case ColumnType::Float:
45 return *(beginData<float>(column) + row);
47 return *(beginData<int>(column) + row);
49 return *(beginData<bool>(column) + row);
50 case ColumnType::UInt8:
51 return *(beginData<uint8_t>(column) + row);
53 return *(beginData<uint32_t>(column) + row);
54 case ColumnType::Double:
55 return *(beginData<double>(column) + row);