bool RowData::push_annotation(const Annotation &a) { try { _annotations.push_back(a); _max_annotation = max(_max_annotation, a.end_sample() - a.start_sample()); if (a.end_sample() != a.start_sample()) _min_annotation = min(_min_annotation, a.end_sample() - a.start_sample()); return true; } catch (const std::bad_alloc&) { return false; } }
void RowData::push_annotation(const Annotation &a) { _annotations.push_back(a); _max_annotation = max(_max_annotation, a.end_sample() - a.start_sample()); }