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:
22 case ColumnType::Int8:
28 case ColumnType::UInt8:
29 addColumn<uint8_t>(
other.columnName(
i),
other.columnData<uint8_t>(
i),
other.columnDoc(
i));
32 addColumn<uint32_t>(
other.columnName(
i),
other.columnData<uint32_t>(
i),
other.columnDoc(
i));
34 case ColumnType::Double:
35 addColumn<double>(
other.columnName(
i),
other.columnData<
double>(
i),
other.columnDoc(
i));
44 if (column >= nColumns())
46 switch (columnType(column)) {
47 case ColumnType::Float:
48 return *(beginData<float>(column) + row);
50 return *(beginData<int>(column) + row);
51 case ColumnType::Int8:
52 return *(beginData<int8_t>(column) + row);
54 return *(beginData<bool>(column) + row);
55 case ColumnType::UInt8:
56 return *(beginData<uint8_t>(column) + row);
58 return *(beginData<uint32_t>(column) + row);
59 case ColumnType::Double:
60 return *(beginData<double>(column) + row);
void addExtension(const FlatTable &extension)
std::vector< Column > columns_
const std::string & name() const
int columnIndex(const std::string &name) const
double getAnyValue(unsigned int row, unsigned int column) const