LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractAccessByString.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10
11#ifndef LIMA_COMMON_ABSTRACTACCESBYSTRING_H
12#define LIMA_COMMON_ABSTRACTACCESBYSTRING_H
13
16
17
18namespace Lima
19{
20namespace Common
21{
22
27{
28public:
29
31
36 virtual uint64_t getSize() const = 0;
37
43 virtual uint64_t getIndex(const Lima::LimaString & word ) const = 0;
44
45
53 virtual std::pair<AccessSubWordIterator,AccessSubWordIterator>
54 getSubWords(const uint64_t offset,
55 const Lima::LimaString & word ) const = 0;
56
64 virtual std::pair<AccessSuperWordIterator,AccessSuperWordIterator>
65 getSuperWords(const Lima::LimaString & word ) const = 0;
66
72 virtual Lima::LimaString getSpelling(const uint64_t index ) const = 0;
73
74};
75
76} // Common
77} // Lima
78
79#endif
define abstract interface for access method
virtual uint64_t getIndex(const Lima::LimaString &word) const =0
get key index
virtual uint64_t getSize() const =0
gives the number of entries
virtual Lima::LimaString getSpelling(const uint64_t index) const =0
get string from 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
NAUTITIA.
QString LimaString
Definition LimaString.h:33