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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LengthFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 LENGTHFILTER_H
8 #define LENGTHFILTER_H
9
10 #include "TokenFilter.h"
11
12 namespace Lucene
13 {
15 class LPPAPI LengthFilter : public TokenFilter
16 {
17 public:
19 LengthFilter(TokenStreamPtr input, int32_t min, int32_t max);
20 virtual ~LengthFilter();
21
22 LUCENE_CLASS(LengthFilter);
23
24 public:
25 int32_t min;
26 int32_t max;
27
28 protected:
29 TermAttributePtr termAtt;
30
31 public:
33 virtual bool incrementToken();
34 };
35 }
36
37 #endif

clucene.sourceforge.net