concordia-library/concordia/substring_occurence.cpp
rjawor f03b4ad954 fixed lcp search
Former-commit-id: 18192126d134323569bc43205ccc60788d9e6cb6
2015-04-12 12:06:41 +02:00

24 lines
785 B
C++

#include "concordia/substring_occurence.hpp"
#include "concordia/common/utils.hpp"
SubstringOccurence::SubstringOccurence(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() {
}