#include <substring_occurence.hpp>
Class representing occurence of a searched substring. It holds the following information:
- id of the example where the substring was found
- offset of the matched substring in this example
- length of the example
SubstringOccurence::SubstringOccurence |
( |
| ) |
|
SubstringOccurence::SubstringOccurence |
( |
const SUFFIX_MARKER_TYPE & |
marker | ) |
|
|
explicit |
Constructor taking data from a marker.
- Parameters
-
SubstringOccurence::SubstringOccurence |
( |
const SUFFIX_MARKER_TYPE & |
id, |
|
|
const SUFFIX_MARKER_TYPE & |
offset, |
|
|
const SUFFIX_MARKER_TYPE & |
exampleLength |
|
) |
| |
Constructor with three arguments.
- Parameters
-
id | example id |
offset | offset of the substring in the example |
exampleLength | length of the example |
SubstringOccurence::~SubstringOccurence |
( |
| ) |
|
|
virtual |
void SubstringOccurence::enterDataFromMarker |
( |
const SUFFIX_MARKER_TYPE & |
marker | ) |
|
Setter of all the fields, based on input marker.
- Parameters
-
marker | marker to read the data from |
SUFFIX_MARKER_TYPE SubstringOccurence::getExampleLength |
( |
| ) |
const |
|
inline |
Getter for example length.
- Returns
- example length
SUFFIX_MARKER_TYPE SubstringOccurence::getId |
( |
| ) |
const |
|
inline |
Getter for example id.
- Returns
- example id
SUFFIX_MARKER_TYPE SubstringOccurence::getOffset |
( |
| ) |
const |
|
inline |
Getter for example offset
- Returns
- example offset
The documentation for this class was generated from the following files:
- /home/rafalj/projects/concordia/concordia/concordia/substring_occurence.hpp
- /home/rafalj/projects/concordia/concordia/concordia/substring_occurence.cpp