| 1 |
#include <pbcopper/data/SNR.h> |
| 2 |
|
| 3 |
#include <ostream> |
| 4 |
#include <type_traits> |
| 5 |
|
| 6 |
namespace PacBio { |
| 7 |
namespace Data { |
| 8 |
|
| 9 |
static_assert(std::is_trivially_copyable_v<SNR>, "SNR is not a trivially copyable type"); |
| 10 |
|
| 11 |
SNR::operator std::vector<float>() const { return {data_[0], data_[1], data_[2], data_[3]}; } |
| 12 |
|
| 13 |
std::ostream& operator<<(std::ostream& os, const SNR& snr) |
| 14 |
{ |
| 15 |
return os << "SNR(A=" << snr[0] << ", C=" << snr[1] << ", G=" << snr[2] << ", T=" << snr[3] |
| 16 |
<< ')'; |
| 17 |
} |
| 18 |
|
| 19 |
} // namespace Data |
| 20 |
} // namespace PacBio |