LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
fsaStringsPool.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// C++ Interface: stringspool
8//
9// Description:
10//
11//
12// Author: CEA LIST <Gael.de-Chalendar@cea.fr>
13//
14// Copyright: See COPYING file that comes with this distribution
15//
16//
17#ifndef LIMA_DATA_FSASTRINGSPOOL_H
18#define LIMA_DATA_FSASTRINGSPOOL_H
19
20#include "common/LimaCommon.h"
22#include "stringspool.h"
24
25namespace Lima {
26
27class FsaStringsPoolPrivate;
32{
33public:
35
36 virtual ~FsaStringsPool();
37
40
41 StringsPoolIndex operator[](const LimaString& str);
42 const LimaString& operator[](const StringsPoolIndex ind) const;
43
44 /*
45 * @TODO create a distinct FsaStringsPool
46 * A simple FsaStringsPool should be kept, and a FsaStringsPool
47 * using an automaton as source. It would allow to not merge both
48 */
49
50 void registerMainKeys(std::shared_ptr<Common::AbstractAccessByString> mainKeys);
51
52 void registerUser(void* p);
53 void unregisterUser(void* p);
54
55 void endResourcesPool();
56
57private:
58
60};
61
62} // closing namespace Lima
63
64#endif // LIMA_DATA_STRINGSPOOL_H
#define LIMA_COMMONMISC_EXPORT
Definition LimaCommon.h:133
FsaStringsPool(const FsaStringsPool &)=delete
FsaStringsPool & operator=(const FsaStringsPool &)=delete
NAUTITIA.
QString LimaString
Definition LimaString.h:33