concordia-library/concordia/substring_occurence.cpp
rjawor e02bbaa0fa getTmMatches
Former-commit-id: 94aa3db2db88195c61c6ac70006c0e1d743dc854
2015-04-14 20:14:30 +02:00

32 lines
1.0 KiB
C++

#include "concordia/substring_occurence.hpp"
#include "concordia/common/utils.hpp"
SubstringOccurence::SubstringOccurence() {
}
SubstringOccurence::SubstringOccurence(const SUFFIX_MARKER_TYPE & marker) {
_id = Utils::getIdFromMarker(marker);
_offset = Utils::getOffsetFromMarker(marker);
_exampleLength = Utils::getLengthFromMarker(marker);
}
void SubstringOccurence::enterDataFromMarker(const SUFFIX_MARKER_TYPE & marker) {
_id = Utils::getIdFromMarker(marker);
_offset = Utils::getOffsetFromMarker(marker);
_exampleLength = Utils::getLengthFromMarker(marker);
}
SubstringOccurence::SubstringOccurence(
const SUFFIX_MARKER_TYPE & id,
const SUFFIX_MARKER_TYPE & offset,
const SUFFIX_MARKER_TYPE & exampleLength):
_id(id),
_offset(offset),
_exampleLength(exampleLength) {
}
SubstringOccurence::~SubstringOccurence() {
}