Concordia
SubstringOccurence Class Reference

#include <substring_occurence.hpp>

Public Member Functions

 SubstringOccurence ()
 
 SubstringOccurence (const SUFFIX_MARKER_TYPE &marker)
 
 SubstringOccurence (const SUFFIX_MARKER_TYPE &id, const SUFFIX_MARKER_TYPE &offset, const SUFFIX_MARKER_TYPE &exampleLength)
 
virtual ~SubstringOccurence ()
 
SUFFIX_MARKER_TYPE getId () const
 
SUFFIX_MARKER_TYPE getOffset () const
 
SUFFIX_MARKER_TYPE getExampleLength () const
 
void enterDataFromMarker (const SUFFIX_MARKER_TYPE &marker)
 

Detailed Description

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

Constructor & Destructor Documentation

SubstringOccurence::SubstringOccurence ( )

Constructor.

SubstringOccurence::SubstringOccurence ( const SUFFIX_MARKER_TYPE &  marker)
explicit

Constructor taking data from a marker.

Parameters
marker

Here is the call graph for this function:

SubstringOccurence::SubstringOccurence ( const SUFFIX_MARKER_TYPE &  id,
const SUFFIX_MARKER_TYPE &  offset,
const SUFFIX_MARKER_TYPE &  exampleLength 
)

Constructor with three arguments.

Parameters
idexample id
offsetoffset of the substring in the example
exampleLengthlength of the example
SubstringOccurence::~SubstringOccurence ( )
virtual

Destructor.

Member Function Documentation

void SubstringOccurence::enterDataFromMarker ( const SUFFIX_MARKER_TYPE &  marker)

Setter of all the fields, based on input marker.

Parameters
markermarker to read the data from

Here is the call graph for this function:

Here is the caller graph for this function:

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: