Lucene++ - a full-featured, c++ search engine
API Documentation


TokenFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef TOKENFILTER_H
8 #define TOKENFILTER_H
9 
10 #include "TokenStream.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI TokenFilter : public TokenStream {
19 protected:
21  TokenFilter(const TokenStreamPtr& input);
22 
23 public:
24  virtual ~TokenFilter();
25 
27 
28 protected:
30  TokenStreamPtr input;
31 
32 public:
35  virtual void end();
36 
38  virtual void close();
39 
41  virtual void reset();
42 };
43 
44 }
45 
46 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition: TokenFilter.h:18
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63
A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text...
Definition: TokenStream.h:44

clucene.sourceforge.net