highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HighlightingAlgorithmRefine Class Reference

#include <HighlightingAlgorithmRefine.hpp>

Inheritance diagram for HighlightingAlgorithmRefine:
Collaboration diagram for HighlightingAlgorithmRefine:

Public Member Functions

 HighlightingAlgorithmRefine ()
 HighlightingAlgorithmRefine (unsigned char _normalizationId, unsigned char _subjectMask)
virtual void process (const std::vector< std::pair< SearchType, std::string > > &searchStrings, const Poco::SharedPtr< std::string > contentPtr, ContentsStorageBase::WordPosPtrType wordMapPtr, std::map< unsigned int, WordPos > &wordOffsetMap)
virtual std::string getName ()
virtual ~HighlightingAlgorithmRefine ()
- Public Member Functions inherited from HighlightingAlgorithmBase
virtual ~HighlightingAlgorithmBase ()

Protected Member Functions

void setWordPositionMap (std::map< unsigned int, std::pair< unsigned long long, WordPos > > &_wordPositionMap)
void fillWordOffsetMap (Poco::SharedPtr< HCE::OutDataRefine > outData, SearchType searchType, std::map< unsigned long long, std::vector< WordPos > > &wordMapPtr, std::map< unsigned int, WordPos > &wordOffsetMap)
void findChain (Poco::SharedPtr< HCE::OutDataRefine > outData, std::map< unsigned int, WordPos > &wordOffsetMap)
void findChainStrict (Poco::SharedPtr< HCE::OutDataRefine > outData, std::map< unsigned int, WordPos > &wordOffsetMap)
void joinBySegmentId (std::map< unsigned int, WordPos > &wordOffsetMap)
- Protected Member Functions inherited from HighlightingAlgorithmBase
 HighlightingAlgorithmBase ()

Detailed Description

Definition at line 25 of file HighlightingAlgorithmRefine.hpp.

Constructor & Destructor Documentation

HighlightingAlgorithmRefine::HighlightingAlgorithmRefine ( )
inline

Definition at line 41 of file HighlightingAlgorithmRefine.hpp.

HighlightingAlgorithmRefine::HighlightingAlgorithmRefine ( unsigned char  _normalizationId,
unsigned char  _subjectMask 
)
inline

Definition at line 42 of file HighlightingAlgorithmRefine.hpp.

virtual HighlightingAlgorithmRefine::~HighlightingAlgorithmRefine ( )
inlinevirtual

Definition at line 46 of file HighlightingAlgorithmRefine.hpp.

Member Function Documentation

void HighlightingAlgorithmRefine::fillWordOffsetMap ( Poco::SharedPtr< HCE::OutDataRefine outData,
SearchType  searchType,
std::map< unsigned long long, std::vector< WordPos > > &  wordMapPtr,
std::map< unsigned int, WordPos > &  wordOffsetMap 
)
protected

Definition at line 23 of file HighlightingAlgorithmRefine.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HighlightingAlgorithmRefine::findChain ( Poco::SharedPtr< HCE::OutDataRefine outData,
std::map< unsigned int, WordPos > &  wordOffsetMap 
)
protected

Definition at line 60 of file HighlightingAlgorithmRefine.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HighlightingAlgorithmRefine::findChainStrict ( Poco::SharedPtr< HCE::OutDataRefine outData,
std::map< unsigned int, WordPos > &  wordOffsetMap 
)
protected

Definition at line 110 of file HighlightingAlgorithmRefine.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual std::string HighlightingAlgorithmRefine::getName ( )
inlinevirtual

Implements HighlightingAlgorithmBase.

Definition at line 45 of file HighlightingAlgorithmRefine.hpp.

void HighlightingAlgorithmRefine::joinBySegmentId ( std::map< unsigned int, WordPos > &  wordOffsetMap)
protected

Definition at line 167 of file HighlightingAlgorithmRefine.cpp.

Here is the caller graph for this function:

void HighlightingAlgorithmRefine::process ( const std::vector< std::pair< SearchType, std::string > > &  searchStrings,
const Poco::SharedPtr< std::string >  contentPtr,
ContentsStorageBase::WordPosPtrType  wordMapPtr,
std::map< unsigned int, WordPos > &  wordOffsetMap 
)
virtual

Implements HighlightingAlgorithmBase.

Definition at line 187 of file HighlightingAlgorithmRefine.cpp.

Here is the call graph for this function:

void HighlightingAlgorithmRefine::setWordPositionMap ( std::map< unsigned int, std::pair< unsigned long long, WordPos > > &  _wordPositionMap)
protected

Definition at line 18 of file HighlightingAlgorithmRefine.cpp.


The documentation for this class was generated from the following files: