LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
bowTokenIterator.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 bowTokenIterator.h
9 * @author Besancon Romaric (romaric.besancon@cea.fr)
10 * @date Thu Feb 9 2006
11 * copyright Copyright (C) 2006-2012 by CEA LIST
12 * Project BagOfWords
13 *
14 * @brief an iterator on BoWText that returns BoWTokens (including partial complex tokens)
15 *
16 *
17 ***********************************************************************/
18
19#ifndef BOWTOKENITERATOR_H
20#define BOWTOKENITERATOR_H
21
23
24#include <deque>
25
26#include <boost/shared_ptr.hpp>
27
28namespace Lima {
29namespace Common {
30namespace BagOfWords {
31
36
37class BoWText;
38class AbstractBoWElement;
39
59class BoWTokenIteratorPrivate;
61 public:
74 BoWTokenIterator(const BoWText& bowText,
75 const uint64_t nbMaxPartialCompounds=1000,
78
79 bool isAtEnd() const;
80 boost::shared_ptr< Lima::Common::BagOfWords::AbstractBoWElement > getElement();
81 BoWTokenIterator& operator++(); //prefix ++
82 BoWTokenIterator operator++(int); //postfix++
83
85
86private:
88 BoWTokenIterator& operator=(const BoWTokenIterator&);
90};
91
92} // end namespace
93} // end namespace
94} // end namespace
95
96#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
NAUTITIA.