Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef OFFSETATTRIBUTE_H
8 #define OFFSETATTRIBUTE_H
38 virtual void setOffset(int32_t startOffset, int32_t endOffset);
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Shallow clone. Subclasses must override this if they need to clone any members deeply.
virtual void copyTo(const AttributePtr &target)
Copies the values from this Attribute into the passed-in target attribute. The target implementation ...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
virtual void setOffset(int32_t startOffset, int32_t endOffset)
Set the starting and ending offset.
Base class for Attributes that can be added to a AttributeSource.
Definition: Attribute.h:18
virtual int32_t endOffset()
Returns this Token's ending offset, one greater than the position of the last character corresponding...
Definition: AbstractAllTermDocs.h:12
virtual ~OffsetAttribute()
virtual int32_t hashCode()
Subclasses must implement this method and should compute a hashCode similar to this:
virtual void clear()
Clears the values in this Attribute and resets it to its default value. If this implementation implem...
int32_t _startOffset
Definition: OffsetAttribute.h:20
boost::shared_ptr< Attribute > AttributePtr
Definition: LuceneTypes.h:518
The start and end character offset of a Token.
Definition: OffsetAttribute.h:15
virtual int32_t startOffset()
Returns this Token's starting offset, the position of the first character corresponding to this token...
virtual String toString()
Returns a string representation of the object.
virtual bool equals(const LuceneObjectPtr &other)
All values used for computation of hashCode() should be checked here for equality.
int32_t _endOffset
Definition: OffsetAttribute.h:24
clucene.sourceforge.net