Exemple #1
0
Vector<Float> Column<Vector<Float>>::parse_datum(const Datum &datum) {
  switch (datum.type()) {
    case GRNXX_NA: {
      return Vector<Float>::na();
    }
    case GRNXX_FLOAT_VECTOR: {
      return datum.as_float_vector();
    }
    default: {
      throw "Wrong data type";  // TODO
    }
  }
}