![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <linguisticProcessing/core/AnalysisDumpers/OffsetMapping.h>
Public Member Functions | |
| OffsetMapping () | |
| ~OffsetMapping () | |
| void | addMapping (unsigned int offset, unsigned int newOffset) |
| add new mapping between old and new offsets. | |
| void | createInverseMapping () |
| void | clear () |
| bool | isEmpty () |
| OffsetMapping | operator+ (unsigned int n) const |
| void | add (const OffsetMapping &otherMapping) |
| unsigned int | getOriginalOffset (unsigned int newOffset) const |
| void | getNewOffsets (unsigned int prevOffset, std::vector< unsigned int > &newOffsets) const |
| std::string | toString () const |
Public Member Functions inherited from Lima::AnalysisData | |
| virtual | ~AnalysisData () |
Friends | |
| LIMA_ANALYSISDUMPERS_EXPORT std::ostream & | operator<< (std::ostream &os, const OffsetMapping &offsetMapping) |
Definition at line 18 of file OffsetMapping.h.
| Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::OffsetMapping | ( | ) |
Definition at line 16 of file OffsetMapping.cpp.
| Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::~OffsetMapping | ( | ) |
Definition at line 21 of file OffsetMapping.cpp.
| void Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::add | ( | const OffsetMapping & | otherMapping | ) |
Definition at line 49 of file OffsetMapping.cpp.
| void Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::addMapping | ( | unsigned int | offset, |
| unsigned int | newOffset | ||
| ) |
add new mapping between old and new offsets.
Warning: this mapping will only be accessed by the new offset (to get the old), unless a call to createInverseMapping() is explicitely performed
Definition at line 32 of file OffsetMapping.cpp.
| void Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::clear | ( | ) |
Definition at line 25 of file OffsetMapping.cpp.
| void Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::createInverseMapping | ( | ) |
Definition at line 58 of file OffsetMapping.cpp.
| void Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::getNewOffsets | ( | unsigned int | prevOffset, |
| std::vector< unsigned int > & | newOffsets | ||
| ) | const |
Definition at line 99 of file OffsetMapping.cpp.
| unsigned int Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::getOriginalOffset | ( | unsigned int | newOffset | ) | const |
Definition at line 67 of file OffsetMapping.cpp.
|
inline |
Definition at line 32 of file OffsetMapping.h.
| OffsetMapping Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::operator+ | ( | unsigned int | n | ) | const |
Definition at line 37 of file OffsetMapping.cpp.
| string Lima::LinguisticProcessing::AnalysisDumpers::OffsetMapping::toString | ( | ) | const |
Definition at line 130 of file OffsetMapping.cpp.
|
friend |
Definition at line 139 of file OffsetMapping.cpp.