MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / toIntList

Method toIntList

src/openms/source/DATASTRUCTURES/DataValue.cpp:700–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698 }
699
700 IntList DataValue::toIntList() const
701 {
702 if (value_type_ != INT_LIST)
703 {
704 throw Exception::ConversionError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
705 "Could not convert non-IntList DataValue of type '" + NamesOfDataType[value_type_] + "' and value '" + this->toString(true) + "' to IntList");
706 }
707 return *(data_.int_list_);
708 }
709
710 DoubleList DataValue::toDoubleList() const
711 {

Callers 4

testDataValueFunction · 0.95
getSeparateScoreMethod · 0.80
DataValue.cppFile · 0.80
DataValue_test.cppFile · 0.80

Calls 1

toStringMethod · 0.95

Tested by 1

testDataValueFunction · 0.76