LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
tokensstream.h
Go to the documentation of this file.
1// Copyright (C) 2003 by CEA LIST (LVIC)
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef LINGUISTICPROCESSINGSTOKENSSTREAM_H
7#define LINGUISTICPROCESSINGSTOKENSSTREAM_H
8
10#include "indextoken.h"
11
12#include <queue>
13#include <iostream>
14
15namespace Lima {
16namespace DocumentsReader {
21class DOCUMENTSREADER_EXPORT TokensStream : public std::deque< IndexToken* >
22{
23public:
26 TokensStream& operator = (const TokensStream&);
27 virtual ~TokensStream();
28
29 // helper functions for constructors, destructor and copy assignment
30 void copy(const TokensStream&);
31 void clear();
32
33
34 void push(const IndexToken&);
35
39 bool hasToken() const;
40
44 IndexToken* nextToken();
45
46 // friend std::wostream& operator << (std::wostream&, TokensStream&);
47 // friend std::wistream& operator >> (std::wistream&, TokensStream&);
48
49}
50;
51
52} // namespace DocumentsReader
53} // namespace Lima
54
55#endif // LINGUISTICPROCESSINGSTOKENSSTREAM_H
This is a stream of tokens.
#define DOCUMENTSREADER_EXPORT
NAUTITIA.