concordia-library/concordia/substring_occurrence.cpp

33 lines
1.1 KiB
C++
Raw Normal View History

2019-01-22 14:07:28 +01:00
#include "concordia/substring_occurrence.hpp"
#include "concordia/common/utils.hpp"
2019-01-22 14:07:28 +01:00
SubstringOccurrence::SubstringOccurrence() {
}
2019-01-22 14:07:28 +01:00
SubstringOccurrence::SubstringOccurrence(const SUFFIX_MARKER_TYPE & marker) {
_id = Utils::getIdFromMarker(marker);
_offset = Utils::getOffsetFromMarker(marker);
_exampleLength = Utils::getLengthFromMarker(marker);
}
2019-01-22 14:07:28 +01:00
void SubstringOccurrence::enterDataFromMarker(
const SUFFIX_MARKER_TYPE & marker) {
_id = Utils::getIdFromMarker(marker);
_offset = Utils::getOffsetFromMarker(marker);
_exampleLength = Utils::getLengthFromMarker(marker);
}
2019-01-22 14:07:28 +01:00
SubstringOccurrence::SubstringOccurrence(
const SUFFIX_MARKER_TYPE & id,
const SUFFIX_MARKER_TYPE & offset,
const SUFFIX_MARKER_TYPE & exampleLength):
_id(id),
_offset(offset),
_exampleLength(exampleLength) {
}
2019-01-22 14:07:28 +01:00
SubstringOccurrence::~SubstringOccurrence() {
}