LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
indexElementIterator.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#ifndef INDEXELEMENTITERATOR_H
7#define INDEXELEMENTITERATOR_H
8
10
11namespace Lima {
12namespace Common {
13 class AbstractLexiconIdGenerator;
14namespace BagOfWords {
15
16class BoWText;
17class IndexElement;
18
19class IndexElementIteratorPrivate;
20
27{
28 public:
44 IndexElementIterator(const BoWText& bowText,
45 AbstractLexiconIdGenerator* idAccessor=0,
46 const uint64_t maxCompoundSize=0,
47 const uint64_t nbMaxPartialCompounds=1000);
49
50 bool isAtEnd() const;
51 const IndexElement& getElement() const;
52 IndexElement getElement();
53 IndexElementIterator& operator++(); //prefix ++
54 IndexElementIterator operator++(int); //postfix++
55
56private:
60};
61
62} // end namespace
63} // end namespace
64} // end namespace
65
66#endif
#define LIMA_BOW_EXPORT
This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple...
Definition bowText.h:48
An iterator on the bowText that returns IndexElements.
const IndexElement & getElement() const
Represent an element of an index If it is a predicate, its simple term is "PredicateElement" and its ...
NAUTITIA.