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
include
OffsetAttribute.h
Go to the documentation of this file.
1
2
// 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 OFFSETATTRIBUTE_H
8
#define OFFSETATTRIBUTE_H
9
10
#include "
Attribute.h
"
11
12
namespace
Lucene {
13
15
class
LPPAPI
OffsetAttribute
:
public
Attribute
{
16
public
:
17
OffsetAttribute
();
18
virtual
~
OffsetAttribute
();
19
20
LUCENE_CLASS
(
OffsetAttribute
);
21
22
protected
:
23
int32_t _startOffset;
24
int32_t
_endOffset
;
25
26
public
:
27
virtual
String toString();
28
34
virtual
int32_t startOffset();
35
38
virtual
void
setOffset(int32_t startOffset, int32_t endOffset);
39
42
virtual
int32_t endOffset();
43
44
virtual
void
clear();
45
virtual
bool
equals(
const
LuceneObjectPtr
& other);
46
virtual
int32_t hashCode();
47
virtual
void
copyTo(
const
AttributePtr
& target);
48
virtual
LuceneObjectPtr
clone(
const
LuceneObjectPtr
& other =
LuceneObjectPtr
());
49
};
50
51
}
52
53
#endif
clucene.sourceforge.net