Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef TYPEATTRIBUTE_H
8 #define TYPEATTRIBUTE_H
virtual String toString()
Returns a string representation of the object.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual void copyTo(const AttributePtr &target)
Copies the values from this Attribute into the passed-in target attribute. The target implementation ...
String _type
Definition: TypeAttribute.h:21
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Base class for Attributes that can be added to a AttributeSource.
Definition: Attribute.h:18
A Token's lexical type. The Default value is "word".
Definition: TypeAttribute.h:15
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Shallow clone. Subclasses must override this if they need to clone any members deeply.
Definition: AbstractAllTermDocs.h:12
TypeAttribute(const String &type)
String type()
Returns this Token's lexical type. Defaults to "word".
virtual void clear()
Clears the values in this Attribute and resets it to its default value. If this implementation implem...
virtual int32_t hashCode()
Subclasses must implement this method and should compute a hashCode similar to this:
static const String & DEFAULT_TYPE()
boost::shared_ptr< Attribute > AttributePtr
Definition: LuceneTypes.h:518
virtual bool equals(const LuceneObjectPtr &other)
All values used for computation of hashCode() should be checked here for equality.
void setType(const String &type)
Set the lexical type.
clucene.sourceforge.net