LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
ltrToken.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
20#ifndef LIMA_COMMON_BAGOFWORDS__LTR_TOKEN__H
21#define LIMA_COMMON_BAGOFWORDS__LTR_TOKEN__H
22
25
26#include <vector>
27#include <iostream>
28
29#include <boost/shared_ptr.hpp>
30
31namespace Lima {
32namespace Common {
33namespace BagOfWords {
34
35class LTR_Token;
36LIMA_LINEARTEXTREPRESENTATION_EXPORT std::ostream& operator<<(std::ostream& os, const LTR_Token& tok);
37LIMA_LINEARTEXTREPRESENTATION_EXPORT QDebug& operator<<(QDebug& os, const LTR_Token& tok);
38
48 std::vector<std::pair< boost::shared_ptr< Lima::Common::BagOfWords::BoWToken >, bool> > {
49
50public: // -- methods
54 //}@
55
58 ~LTR_Token();
59 //}@
60
63 LTR_Token(const LTR_Token& tok);
64 //}@
65
68 void binaryWriteOn(std::ostream& os) const;
69 void binaryReadFrom(std::istream& is);
70 //}@
71
74 friend LIMA_LINEARTEXTREPRESENTATION_EXPORT std::ostream& operator<<(std::ostream& os, const LTR_Token& tok);
75 friend LIMA_LINEARTEXTREPRESENTATION_EXPORT QDebug& operator<<(QDebug& os, const LTR_Token& tok);
76 //}@
77
78private: // -- methods
81 // prevent from using affectation
82 LTR_Token& operator=(const LTR_Token&);
83 //}@
84};
85
86
87} // BagOfWords
88} // Common
89} // Lima
90
91
92#endif // LIMA_COMMON_BAGOFWORDS__LTR_TOKEN__H
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition QsLog.cpp:39
#define LIMA_LINEARTEXTREPRESENTATION_EXPORT
a token of a linear text representation Each LTR_Token represents the set of words that start at a po...
Definition ltrToken.h:48
T & operator<<(T &qd, const BoWType &bt)
NAUTITIA.