Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
FlagsAttribute.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 FLAGSATTRIBUTE_H
8
#define FLAGSATTRIBUTE_H
9
10
#include "
Attribute.h
"
11
12
namespace
Lucene
{
13
16
class
LPPAPI
FlagsAttribute
:
public
Attribute
{
17
public
:
18
FlagsAttribute
();
19
virtual
~FlagsAttribute
();
20
21
LUCENE_CLASS
(
FlagsAttribute
);
22
23
protected
:
24
int32_t
flags
;
25
26
public
:
27
virtual
String
toString
();
28
32
virtual
int32_t
getFlags
();
33
35
virtual
void
setFlags
(int32_t
flags
);
36
37
virtual
void
clear
();
38
39
virtual
bool
equals
(
const
LuceneObjectPtr
& other);
40
virtual
int32_t
hashCode
();
41
virtual
void
copyTo
(
const
AttributePtr
& target);
42
virtual
LuceneObjectPtr
clone
(
const
LuceneObjectPtr
& other =
LuceneObjectPtr
());
43
};
44
45
}
46
47
#endif
Attribute.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::Attribute
Base class for Attributes that can be added to a AttributeSource.
Definition
Attribute.h:18
Lucene::FlagsAttribute::clone
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Shallow clone. Subclasses must override this if they need to clone any members deeply.
Lucene::FlagsAttribute::~FlagsAttribute
virtual ~FlagsAttribute()
Lucene::FlagsAttribute::copyTo
virtual void copyTo(const AttributePtr &target)
Copies the values from this Attribute into the passed-in target attribute. The target implementation ...
Lucene::FlagsAttribute::setFlags
virtual void setFlags(int32_t flags)
Lucene::FlagsAttribute::toString
virtual String toString()
Returns a string representation of the object.
Lucene::FlagsAttribute::FlagsAttribute
FlagsAttribute()
Lucene::FlagsAttribute::hashCode
virtual int32_t hashCode()
Subclasses must implement this method and should compute a hashCode similar to this:
Lucene::FlagsAttribute::equals
virtual bool equals(const LuceneObjectPtr &other)
All values used for computation of hashCode() should be checked here for equality.
Lucene::FlagsAttribute::getFlags
virtual int32_t getFlags()
Get the bitset for any bits that have been set. This is completely distinct from TypeAttribute#type()...
Lucene::FlagsAttribute::flags
int32_t flags
Definition
FlagsAttribute.h:24
Lucene::FlagsAttribute::clear
virtual void clear()
Clears the values in this Attribute and resets it to its default value. If this implementation implem...
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::AttributePtr
boost::shared_ptr< Attribute > AttributePtr
Definition
LuceneTypes.h:518
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition
LuceneTypes.h:539
clucene.sourceforge.net