Concordia
|
#include <matched_pattern_fragment.hpp>
Public Member Functions | |
MatchedPatternFragment (const SUFFIX_MARKER_TYPE &patternOffset, const SUFFIX_MARKER_TYPE &matchedLength) | |
virtual | ~MatchedPatternFragment () |
std::vector< SubstringOccurence > | getOccurences () const |
void | addOccurence (const SubstringOccurence &occurence) |
SUFFIX_MARKER_TYPE | getPatternOffset () const |
SUFFIX_MARKER_TYPE | getMatchedLength () const |
bool | operator> (const MatchedPatternFragment &other) const |
Public Member Functions inherited from Interval | |
Interval (const SUFFIX_MARKER_TYPE start, const SUFFIX_MARKER_TYPE end) | |
virtual | ~Interval () |
bool | intersects (Interval &interval) |
bool | contains (Interval &interval) |
SUFFIX_MARKER_TYPE | getLength () |
SUFFIX_MARKER_TYPE | getStart () const |
SUFFIX_MARKER_TYPE | getEnd () const |
Class representing matched pattern fragment in concordia search. This fragment can be seen as a word interval of the pattern.
This class holds information about:
MatchedPatternFragment::MatchedPatternFragment | ( | const SUFFIX_MARKER_TYPE & | patternOffset, |
const SUFFIX_MARKER_TYPE & | matchedLength | ||
) |
Constructor.
patternOffset | offset of the matched fragment in the pattern |
matchedLength | length of the matched pattern |
|
virtual |
Destructor.
void MatchedPatternFragment::addOccurence | ( | const SubstringOccurence & | occurence | ) |
Adds an occurence to the list.
fragment | occurence to be added |
|
inline |
Getter for matched length.
|
inline |
Getter for occurences.
|
inline |
Getter for pattern offset.
|
inline |
Operator for comparing fragments by their length.