LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::Dictionary::DictionaryEntry Class Reference

#include <linguisticProcessing/core/Dictionary/DictionaryEntry.h>

Inheritance diagram for Lima::LinguisticProcessing::Dictionary::DictionaryEntry:
Lima::LinguisticProcessing::Dictionary::BinaryEntry

Public Member Functions

 DictionaryEntry ()
 creates DictionaryEntry
 
 DictionaryEntry (const DictionaryEntry &)
 copy constructor.
 
 DictionaryEntry (const Lima::LimaString &key, unsigned char *stringStartAddr, unsigned char *lingPropertiesStartAddr, unsigned char *startAddr)
 
virtual ~DictionaryEntry ()
 destroys DictionaryEntry
 
DictionaryEntry & operator= (const DictionaryEntry &)
 Assignment operator.
 
DictionaryEntry & reset ()
 Reset internal iteration pointers of self.
 
bool isEmpty () const
 Returns true if self is empty.
 
LingInfoEntry nextLingInfo ()
 Gets the next LingInfoEntry if exists This call "increments" the internal LingInfoEntry pointer.
 
Lima::LimaString nextAccented ()
 Gets the next accented entry if exists This call "increments" the internal accented entry pointer.
 
uint64_t nextIdiomatic ()
 Gets the next idiomatic entry if exists This call "increments" the internal idiomatic entry pointer.
 
LingInfoEntry nextHyphenLingInfo ()
 Gets the next hyphen LingInfoEntry if exists This call "increments" the internal hyphen LingInfoEntry pointer.
 
ConcatenatedEntry nextConcatenated ()
 Gets the next ConcatenatedEntry if exists This call "increments" the internal ConcatenatedEntry pointer.
 
LingPropertyEntry nextLingProperty ()
 Gets the next LingPropertyEntry if exists This call "increments" the internal LingPropertyEntry pointer.
 
bool hasLingInfo () const
 
bool hasAccented () const
 
bool hasIdiomatic () const
 
bool hasHyphenLingInfo () const
 
bool hasConcatenated () const
 
bool hasDefaultProperty () const
 
bool hasAnyLingInfoEntry () const
 
unsigned char * lingPropertiesStartAddr ()
 
const unsigned char * lingPropertiesStartAddr () const
 
unsigned char * stringStartAddr ()
 
const unsigned char * stringStartAddr () const
 
- Public Member Functions inherited from Lima::LinguisticProcessing::Dictionary::BinaryEntry
 BinaryEntry ()
 
 BinaryEntry (const BinaryEntry &)
 
virtual ~BinaryEntry ()
 
BinaryEntry & operator= (const BinaryEntry &entry)
 
uint64_t getEncodedNumber (unsigned char *&ptr) const
 
uint64_t getEncodedNumberNoMove (unsigned char *ptr) const
 
uint64_t getNumber (unsigned char *&ptr, const uint64_t count) const
 
uint64_t getNumberNoMove (unsigned char *ptr, const uint64_t count) const
 
Lima::LimaString getString (unsigned char *&ptr) const
 
Lima::LimaString getStringNoMove (unsigned char *ptr) const
 
Lima::LimaString getUtf8String (unsigned char *&ptr) const
 
Lima::LimaString getUtf8StringNoMove (unsigned char *ptr) const
 
unsigned char * nextField (unsigned char *&ptr) const
 

Detailed Description

Definition at line 30 of file DictionaryEntry.h.

Constructor & Destructor Documentation

◆ DictionaryEntry() [1/3]

Lima::LinguisticProcessing::Dictionary::DictionaryEntry::DictionaryEntry ( )

creates DictionaryEntry

Definition at line 47 of file DictionaryEntry.cpp.

◆ DictionaryEntry() [2/3]

Lima::LinguisticProcessing::Dictionary::DictionaryEntry::DictionaryEntry ( const DictionaryEntry &  entry)

copy constructor.

Copies the specified DictionaryEntry into self. Internal iteration pointers of self are reset

Definition at line 78 of file DictionaryEntry.cpp.

◆ DictionaryEntry() [3/3]

Lima::LinguisticProcessing::Dictionary::DictionaryEntry::DictionaryEntry ( const Lima::LimaString &  key,
unsigned char *  stringStartAddr,
unsigned char *  lingPropertiesStartAddr,
unsigned char *  startAddr 
)

◆ ~DictionaryEntry()

Lima::LinguisticProcessing::Dictionary::DictionaryEntry::~DictionaryEntry ( )
virtual

destroys DictionaryEntry

Definition at line 154 of file DictionaryEntry.cpp.

Member Function Documentation

◆ hasAccented()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::hasAccented ( ) const
inline

Definition at line 134 of file DictionaryEntry.h.

◆ hasAnyLingInfoEntry()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::hasAnyLingInfoEntry ( ) const
inline

Definition at line 139 of file DictionaryEntry.h.

◆ hasConcatenated()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::hasConcatenated ( ) const
inline

Definition at line 137 of file DictionaryEntry.h.

◆ hasDefaultProperty()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::hasDefaultProperty ( ) const
inline

Definition at line 138 of file DictionaryEntry.h.

◆ hasHyphenLingInfo()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::hasHyphenLingInfo ( ) const
inline

Definition at line 136 of file DictionaryEntry.h.

◆ hasIdiomatic()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::hasIdiomatic ( ) const
inline

Definition at line 135 of file DictionaryEntry.h.

◆ hasLingInfo()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::hasLingInfo ( ) const
inline

Definition at line 133 of file DictionaryEntry.h.

◆ isEmpty()

bool Lima::LinguisticProcessing::Dictionary::DictionaryEntry::isEmpty ( ) const

Returns true if self is empty.

Definition at line 265 of file DictionaryEntry.cpp.

◆ lingPropertiesStartAddr() [1/2]

unsigned char * Lima::LinguisticProcessing::Dictionary::DictionaryEntry::lingPropertiesStartAddr ( )
inline

Definition at line 99 of file DictionaryEntry.h.

◆ lingPropertiesStartAddr() [2/2]

const unsigned char * Lima::LinguisticProcessing::Dictionary::DictionaryEntry::lingPropertiesStartAddr ( ) const
inline

Definition at line 100 of file DictionaryEntry.h.

◆ nextAccented()

Lima::LimaString Lima::LinguisticProcessing::Dictionary::DictionaryEntry::nextAccented ( )

Gets the next accented entry if exists This call "increments" the internal accented entry pointer.

If there is no accented entry anymore, an empty LimaString is returned

Definition at line 288 of file DictionaryEntry.cpp.

◆ nextConcatenated()

ConcatenatedEntry Lima::LinguisticProcessing::Dictionary::DictionaryEntry::nextConcatenated ( )

Gets the next ConcatenatedEntry if exists This call "increments" the internal ConcatenatedEntry pointer.

If there is no Concatenated anymore, an empty ConcatenatedEntry is returned

Definition at line 328 of file DictionaryEntry.cpp.

◆ nextHyphenLingInfo()

LingInfoEntry Lima::LinguisticProcessing::Dictionary::DictionaryEntry::nextHyphenLingInfo ( )

Gets the next hyphen LingInfoEntry if exists This call "increments" the internal hyphen LingInfoEntry pointer.

If there is no hyphen LingInfo anymore, an empty LingInfoEntry is returned

Definition at line 313 of file DictionaryEntry.cpp.

◆ nextIdiomatic()

uint64_t Lima::LinguisticProcessing::Dictionary::DictionaryEntry::nextIdiomatic ( )

Gets the next idiomatic entry if exists This call "increments" the internal idiomatic entry pointer.

If there is no idiomatic entry anymore, a null integer is returned

Definition at line 301 of file DictionaryEntry.cpp.

◆ nextLingInfo()

LingInfoEntry Lima::LinguisticProcessing::Dictionary::DictionaryEntry::nextLingInfo ( )

Gets the next LingInfoEntry if exists This call "increments" the internal LingInfoEntry pointer.

If there is no LingInfo anymore, an empty LingInfoEntry is returned

Definition at line 273 of file DictionaryEntry.cpp.

◆ nextLingProperty()

LingPropertyEntry Lima::LinguisticProcessing::Dictionary::DictionaryEntry::nextLingProperty ( )

Gets the next LingPropertyEntry if exists This call "increments" the internal LingPropertyEntry pointer.

If there is no LingPropertyEntry anymore, an empty LingPropertyEntry is returned

Definition at line 346 of file DictionaryEntry.cpp.

◆ operator=()

DictionaryEntry & Lima::LinguisticProcessing::Dictionary::DictionaryEntry::operator= ( const DictionaryEntry &  dictionaryEntry)

Assignment operator.

Copies the specified DictionaryEntry into self. Returns a reference to self. After assignment, internal iteration pointers of self are reset

Definition at line 163 of file DictionaryEntry.cpp.

◆ reset()

DictionaryEntry & Lima::LinguisticProcessing::Dictionary::DictionaryEntry::reset ( )

Reset internal iteration pointers of self.

After this call, self is in its creation state Returns a reference to self.

Definition at line 184 of file DictionaryEntry.cpp.

◆ stringStartAddr() [1/2]

unsigned char * Lima::LinguisticProcessing::Dictionary::DictionaryEntry::stringStartAddr ( )
inline

Definition at line 101 of file DictionaryEntry.h.

◆ stringStartAddr() [2/2]

const unsigned char * Lima::LinguisticProcessing::Dictionary::DictionaryEntry::stringStartAddr ( ) const
inline

Definition at line 102 of file DictionaryEntry.h.


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