7 #ifndef INTERVAL_ITERATOR_HPP_ 8 #define INTERVAL_ITERATOR_HPP_ 19 const boost::string_ref seq,
20 const std::size_t min_len
22 : min_len_(min_len), seq_(seq), pos_(0), len_(0)
30 if( pos_ + len_ == seq_.size() ) {
31 if( len_ < min_len_ ) {
37 if( is_ambiguous(seq_[pos_ + len_]) ) {
38 if( len_ < min_len_ ) {
49 boost::string_ref subseq()
const {
50 return boost::string_ref(seq_.substr(pos_, len_));
53 bool has_subseq()
const {
return len_;}
56 boost::string_ref seq_;
Main namespace of vdj_pipe library.
Definition: sequence_file.hpp:14
Definition: interval_iterator.hpp:16