LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::Common::AbstractAccessByString Class Referenceabstract

define abstract interface for access method More...

#include <common/misc/AbstractAccessByString.h>

Inheritance diagram for Lima::Common::AbstractAccessByString:
Lima::Common::FsaAccess::FsaAccessReader16< selected_graph_types16::builderGraphType > Lima::Common::FsaAccess::FsaAccessReader16< selected_graph_types16::spareGraphType > Lima::Common::AbstractEnhancedAccess Lima::Common::FsaAccess::FsaAccessReader16< graphType > Lima::Common::FsaAccess::FsaAccessBuilderRandom16 Lima::Common::FsaAccess::FsaAccessSpare16

Public Member Functions

virtual ~AbstractAccessByString ()
 
virtual uint64_t getSize () const =0
 gives the number of entries
 
virtual uint64_t getIndex (const Lima::LimaString &word) const =0
 get key index
 
virtual std::pair< AccessSubWordIterator, AccessSubWordIterator > getSubWords (const uint64_t offset, const Lima::LimaString &word) const =0
 get subwords from a string A subword is a word in the key string that begin at the given offset.
 
virtual std::pair< AccessSuperWordIterator, AccessSuperWordIterator > getSuperWords (const Lima::LimaString &word) const =0
 get superWords from a string A superword entry is an entry that begins with the given key
 
virtual Lima::LimaString getSpelling (const uint64_t index) const =0
 get string from index
 

Detailed Description

define abstract interface for access method

Definition at line 26 of file AbstractAccessByString.h.

Constructor & Destructor Documentation

◆ ~AbstractAccessByString()

virtual Lima::Common::AbstractAccessByString::~AbstractAccessByString ( )
inlinevirtual

Definition at line 30 of file AbstractAccessByString.h.

Member Function Documentation

◆ getIndex()

virtual uint64_t Lima::Common::AbstractAccessByString::getIndex ( const Lima::LimaString &  word) const
pure virtual

get key index

Parameters
word
Returns
key index or 0 if key does not exist.

◆ getSize()

virtual uint64_t Lima::Common::AbstractAccessByString::getSize ( ) const
pure virtual

◆ getSpelling()

virtual Lima::LimaString Lima::Common::AbstractAccessByString::getSpelling ( const uint64_t  index) const
pure virtual

◆ getSubWords()

virtual std::pair< AccessSubWordIterator, AccessSubWordIterator > Lima::Common::AbstractAccessByString::getSubWords ( const uint64_t  offset,
const Lima::LimaString &  word 
) const
pure virtual

get subwords from a string A subword is a word in the key string that begin at the given offset.

Parameters
offset
word
Returns
subword iterators.

◆ getSuperWords()

virtual std::pair< AccessSuperWordIterator, AccessSuperWordIterator > Lima::Common::AbstractAccessByString::getSuperWords ( const Lima::LimaString &  word) const
pure virtual

get superWords from a string A superword entry is an entry that begins with the given key

Parameters
offset
word
Returns
superword iterators.

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