Lucene++ - a full-featured, c++ search engine
API Documentation
#include <BitSet.h>
Inheritance diagram for Lucene::BitSet:Public Member Functions | |
| BitSet (uint32_t size=0) | |
| virtual | ~BitSet () |
| virtual String | getClassName () |
| boost::shared_ptr< BitSet > | shared_from_this () |
| const uint64_t * | getBits () |
| void | clear () |
| void | clear (uint32_t bitIndex) |
| void | fastClear (uint32_t bitIndex) |
| void | clear (uint32_t fromIndex, uint32_t toIndex) |
| void | fastClear (uint32_t fromIndex, uint32_t toIndex) |
| void | set (uint32_t bitIndex) |
| void | fastSet (uint32_t bitIndex) |
| void | set (uint32_t bitIndex, bool value) |
| void | fastSet (uint32_t bitIndex, bool value) |
| void | set (uint32_t fromIndex, uint32_t toIndex) |
| void | fastSet (uint32_t fromIndex, uint32_t toIndex) |
| void | set (uint32_t fromIndex, uint32_t toIndex, bool value) |
| void | fastSet (uint32_t fromIndex, uint32_t toIndex, bool value) |
| void | flip (uint32_t bitIndex) |
| void | fastFlip (uint32_t bitIndex) |
| void | flip (uint32_t fromIndex, uint32_t toIndex) |
| void | fastFlip (uint32_t fromIndex, uint32_t toIndex) |
| uint32_t | size () const |
| uint32_t | numBlocks () const |
| bool | isEmpty () const |
| bool | get (uint32_t bitIndex) const |
| bool | fastGet (uint32_t bitIndex) const |
| int32_t | nextSetBit (uint32_t fromIndex) const |
| void | _and (const BitSetPtr &set) |
| void | _or (const BitSetPtr &set) |
| void | _xor (const BitSetPtr &set) |
| void | andNot (const BitSetPtr &set) |
| bool | intersectsBitSet (const BitSetPtr &set) const |
| uint32_t | cardinality () |
| void | resize (uint32_t size) |
| virtual bool | equals (const LuceneObjectPtr &other) |
| Return whether two objects are equal. | |
| virtual int32_t | hashCode () |
| Return hash code for this object. | |
| virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
| Return clone of this object. | |
Public Member Functions inherited from Lucene::LuceneObject | |
| virtual | ~LuceneObject () |
| virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed. | |
| virtual int32_t | compareTo (const LuceneObjectPtr &other) |
| Compare two objects. | |
| virtual String | toString () |
| Returns a string representation of the object. | |
Public Member Functions inherited from Lucene::LuceneSync | |
| virtual | ~LuceneSync () |
| virtual SynchronizePtr | getSync () |
| Return this object synchronize lock. | |
| virtual LuceneSignalPtr | getSignal () |
| Return this object signal. | |
| virtual void | lock (int32_t timeout=0) |
| Lock this object using an optional timeout. | |
| virtual void | unlock () |
| Unlock this object. | |
| virtual bool | holdsLock () |
| Returns true if this object is currently locked by current thread. | |
| virtual void | wait (int32_t timeout=0) |
| Wait for signal using an optional timeout. | |
| virtual void | notifyAll () |
| Notify all threads waiting for signal. | |
Static Public Member Functions | |
| static String | _getClassName () |
Protected Types | |
| typedef boost::dynamic_bitset< uint64_t > | bitset_type |
Protected Attributes | |
| bitset_type | bitSet |
Protected Attributes inherited from Lucene::LuceneSync | |
| SynchronizePtr | objectLock |
| LuceneSignalPtr | objectSignal |
Additional Inherited Members | |
Protected Member Functions inherited from Lucene::LuceneObject | |
| LuceneObject () | |
|
protected |
| Lucene::BitSet::BitSet | ( | uint32_t | size = 0 | ) |
|
virtual |
| void Lucene::BitSet::_and | ( | const BitSetPtr & | set | ) |
|
inlinestatic |
| void Lucene::BitSet::_or | ( | const BitSetPtr & | set | ) |
| void Lucene::BitSet::_xor | ( | const BitSetPtr & | set | ) |
| void Lucene::BitSet::andNot | ( | const BitSetPtr & | set | ) |
| uint32_t Lucene::BitSet::cardinality | ( | ) |
| void Lucene::BitSet::clear | ( | ) |
| void Lucene::BitSet::clear | ( | uint32_t | bitIndex | ) |
| void Lucene::BitSet::clear | ( | uint32_t | fromIndex, |
| uint32_t | toIndex | ||
| ) |
|
virtual |
Return clone of this object.
| other | clone reference - null when called initially, then set in top virtual override. |
Reimplemented from Lucene::LuceneObject.
|
virtual |
Return whether two objects are equal.
Reimplemented from Lucene::LuceneObject.
| void Lucene::BitSet::fastClear | ( | uint32_t | bitIndex | ) |
| void Lucene::BitSet::fastClear | ( | uint32_t | fromIndex, |
| uint32_t | toIndex | ||
| ) |
| void Lucene::BitSet::fastFlip | ( | uint32_t | bitIndex | ) |
| void Lucene::BitSet::fastFlip | ( | uint32_t | fromIndex, |
| uint32_t | toIndex | ||
| ) |
| bool Lucene::BitSet::fastGet | ( | uint32_t | bitIndex | ) | const |
| void Lucene::BitSet::fastSet | ( | uint32_t | bitIndex | ) |
| void Lucene::BitSet::fastSet | ( | uint32_t | bitIndex, |
| bool | value | ||
| ) |
| void Lucene::BitSet::fastSet | ( | uint32_t | fromIndex, |
| uint32_t | toIndex | ||
| ) |
| void Lucene::BitSet::fastSet | ( | uint32_t | fromIndex, |
| uint32_t | toIndex, | ||
| bool | value | ||
| ) |
| void Lucene::BitSet::flip | ( | uint32_t | bitIndex | ) |
| void Lucene::BitSet::flip | ( | uint32_t | fromIndex, |
| uint32_t | toIndex | ||
| ) |
| bool Lucene::BitSet::get | ( | uint32_t | bitIndex | ) | const |
| const uint64_t * Lucene::BitSet::getBits | ( | ) |
|
inlinevirtual |
|
virtual |
Return hash code for this object.
Reimplemented from Lucene::LuceneObject.
| bool Lucene::BitSet::intersectsBitSet | ( | const BitSetPtr & | set | ) | const |
| bool Lucene::BitSet::isEmpty | ( | ) | const |
| int32_t Lucene::BitSet::nextSetBit | ( | uint32_t | fromIndex | ) | const |
| uint32_t Lucene::BitSet::numBlocks | ( | ) | const |
| void Lucene::BitSet::resize | ( | uint32_t | size | ) |
| void Lucene::BitSet::set | ( | uint32_t | bitIndex | ) |
| void Lucene::BitSet::set | ( | uint32_t | bitIndex, |
| bool | value | ||
| ) |
| void Lucene::BitSet::set | ( | uint32_t | fromIndex, |
| uint32_t | toIndex | ||
| ) |
| void Lucene::BitSet::set | ( | uint32_t | fromIndex, |
| uint32_t | toIndex, | ||
| bool | value | ||
| ) |
|
inline |
| uint32_t Lucene::BitSet::size | ( | ) | const |
|
protected |