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
9
#include "
documentsreader_export.h
"
10
#include "indextoken.h"
11
12
#include <queue>
13
#include <iostream>
14
15
namespace
Lima
{
16
namespace
DocumentsReader {
21
class
DOCUMENTSREADER_EXPORT
TokensStream
:
public
std::deque< IndexToken* >
22
{
23
public
:
24
TokensStream
();
25
TokensStream
(
const
TokensStream
&);
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
Lima::DocumentsReader::TokensStream
This is a stream of tokens.
Definition
tokensstream.h:22
documentsreader_export.h
DOCUMENTSREADER_EXPORT
#define DOCUMENTSREADER_EXPORT
Definition
documentsreader_export.h:33
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
core
DocumentsReader
tokensstream.h
Generated by
1.9.8