1 #ifndef MATCHED_PATTERN_FRAGMENT_HDR
2 #define MATCHED_PATTERN_FRAGMENT_HDR
4 #include "concordia/common/config.hpp"
5 #include "concordia/interval.hpp"
6 #include "concordia/substring_occurence.hpp"
9 #include <boost/foreach.hpp>
28 const SUFFIX_MARKER_TYPE & matchedLength);
49 return _patternOffset;
56 return _matchedLength;
66 friend std::ostream & operator << (std::ostream & o,
72 o <<
"\t" << occurence << std::endl;
81 std::vector<SubstringOccurence> _occurences;
83 SUFFIX_MARKER_TYPE _patternOffset;
85 SUFFIX_MARKER_TYPE _matchedLength;
MatchedPatternFragment(const SUFFIX_MARKER_TYPE &patternOffset, const SUFFIX_MARKER_TYPE &matchedLength)
Definition: matched_pattern_fragment.cpp:3
void addOccurence(const SubstringOccurence &occurence)
Definition: matched_pattern_fragment.cpp:15
SUFFIX_MARKER_TYPE getPatternOffset() const
Definition: matched_pattern_fragment.hpp:48
SUFFIX_MARKER_TYPE getMatchedLength() const
Definition: matched_pattern_fragment.hpp:55
Definition: substring_occurence.hpp:16
Definition: interval.hpp:16
std::vector< SubstringOccurence > getOccurences() const
Definition: matched_pattern_fragment.hpp:36
Definition: matched_pattern_fragment.hpp:21
bool operator>(const MatchedPatternFragment &other) const
Definition: matched_pattern_fragment.hpp:62
virtual ~MatchedPatternFragment()
Definition: matched_pattern_fragment.cpp:12