LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
defaultIdGenerator.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 *
8 * @file defaultIdGenerator.h
9 * @author Besancon Romaric (romaric.besancon@cea.fr)
10 * @date Tue Feb 7 2006
11 * copyright Copyright (C) 2006-2012 by CEA LIST
12 * Project BagOfWords
13 *
14 * @brief default index element id generator: for each index element,
15 * give an increasing id (last id given +1). First id given is 1 (0 is
16 * reserved).
17 *
18 *
19 ***********************************************************************/
20
21#ifndef DEFAULTIDGENERATOR_H
22#define DEFAULTIDGENERATOR_H
23
26#include <assert.h>
27
28namespace Lima {
29namespace Common {
30namespace BagOfWords {
31
32class DefaultIdGeneratorPrivate;
34{
35 public:
37 const uint64_t lastId=1);
39
40 uint64_t getId(const LimaString& /*unused word*/) override;
41
42 uint64_t getId( const std::vector<uint64_t>& /*unused structure*/ ) override;
43
44 uint64_t getSize() const override;
45
46 uint64_t getSimpleTermSize() const override;
47
48private:
50};
51
52} // end namespace
53} // end namespace
54} // end namespace
55
56#endif
#define LIMA_BOW_EXPORT
NAUTITIA.
QString LimaString
Definition LimaString.h:33