libsequence  1.9.5
VariantMatrixViews.hpp
1 #ifndef SEQUENCE_VARIANT_MATRIX_VIEWS_HPP__
2 #define SEQUENCE_VARIANT_MATRIX_VIEWS_HPP__
3 
4 #include "VariantMatrix.hpp"
5 #include "bits/variant_matrix_views_internal.hpp"
6 
7 namespace Sequence
8 {
21 
22  // Rather than have member functions, we will have standalone functions:
23 
24  // The following could (should?) be declared noexcept(false):
25 
29  ConstRowView get_RowView(const VariantMatrix& m, const std::size_t row);
30 
34  RowView get_RowView(VariantMatrix& m, const std::size_t row);
35 
40  const std::size_t row);
41 
45  ConstRowView get_ConstRowView(VariantMatrix& m, const std::size_t row);
46 
50  ColView get_ColView(VariantMatrix& m, const std::size_t col);
51 
55  ConstColView get_ColView(const VariantMatrix& m, const std::size_t col);
56 
60  ConstColView get_ConstColView(VariantMatrix& m, const std::size_t col);
61 
66  const std::size_t col);
67 }
68 
69 #endif
Implementation details for Sequence::RowView and Sequence::ConstRowView.
The namespace in which this library resides.
ConstRowView get_RowView(const VariantMatrix &m, const std::size_t row)
Return a ConstRowView from VariantMatrix m at row row. std::out_of_range is thrown if row is out of r...
ConstRowView get_ConstRowView(const VariantMatrix &m, const std::size_t row)
Return a ConstRowView from VariantMatrix m at row row. std::out_of_range is thrown if row is out of r...
Matrix representation of variation data.
ColView get_ColView(VariantMatrix &m, const std::size_t col)
Return a ColView from VariantMatrix m at col col. std::out_of_range is thcoln if col is out of range...
ConstColView get_ConstColView(VariantMatrix &m, const std::size_t col)
Return a ConstColView from VariantMatrix m at col col. std::out_of_range is thcoln if col is out of r...
Implementation details for Sequence::ColView and Sequence::ConstColView.