7 #ifndef PATTERN_ITERATOR_HPP_ 8 #define PATTERN_ITERATOR_HPP_ 9 #include "boost/assert.hpp" 24 const boost::string_ref suff,
26 ) : t_(t), patt_(suff), curr_(bid)
32 Branch_id current()
const {
return curr_;}
35 bool at_end()
const {
return at_end_;}
37 Branch_id next_id()
const {
return next_;}
38 bool at_pattern_end()
const {
return at_pattern_end_;}
39 bool at_mismatch()
const {
return mismatch_;}
40 unsigned index()
const {
return pi_;}
41 Nucleotide pattern_char()
const {
return nucleotide_index(patt_[pi_]);}
45 bool has_next()
const {
55 BOOST_ASSERT(has_next());
62 const boost::string_ref patt_;
Nucleotide
Definition: nucleotide_index.hpp:24
bool at_end() const
Definition: pattern_iterator.hpp:35
Navigate suffix tree according to pattern.
Definition: pattern_iterator.hpp:20
Main namespace of vdj_pipe library.
Definition: sequence_file.hpp:14
Generalized DNA suffix tree.
Definition: gdst.hpp:66