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
"
21
#include "
common/Data/LimaString.h
"
22
#include "
stringspool.h
"
23
#include "
AbstractAccessByString.h
"
24
25
namespace
Lima
{
26
27
class
FsaStringsPoolPrivate;
31
class
LIMA_COMMONMISC_EXPORT
FsaStringsPool
32
{
33
public
:
34
FsaStringsPool
();
35
36
virtual
~FsaStringsPool
();
37
38
FsaStringsPool
(
const
FsaStringsPool
&) =
delete
;
39
FsaStringsPool
&
operator=
(
const
FsaStringsPool
&) =
delete
;
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
57
private
:
58
59
FsaStringsPoolPrivate
* m_d;
60
};
61
62
}
// closing namespace Lima
63
64
#endif
// LIMA_DATA_STRINGSPOOL_H
AbstractAccessByString.h
LimaCommon.h
LIMA_COMMONMISC_EXPORT
#define LIMA_COMMONMISC_EXPORT
Definition
LimaCommon.h:133
LimaString.h
Lima::FsaStringsPoolPrivate
Definition
fsaStringsPool.cpp:29
Lima::FsaStringsPool
Definition
fsaStringsPool.h:32
Lima::FsaStringsPool::FsaStringsPool
FsaStringsPool(const FsaStringsPool &)=delete
Lima::FsaStringsPool::operator=
FsaStringsPool & operator=(const FsaStringsPool &)=delete
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LimaString
QString LimaString
Definition
LimaString.h:33
stringspool.h
lima_common
src
common
misc
fsaStringsPool.h
Generated by
1.9.8