Lucene++ - a full-featured, c++ search engine
API Documentation


IntBlockPool.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 INTBLOCKPOOL_H
8#define INTBLOCKPOOL_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
14class IntBlockPool : public LuceneObject {
15public:
17 virtual ~IntBlockPool();
18
20
21public:
23
24 int32_t bufferUpto; // Which buffer we are upto
25 int32_t intUpto; // Where we are in head buffer
26
27 IntArray buffer; // Current head buffer
28 int32_t intOffset; // Current head offset
30
31protected:
33
34public:
35 void reset();
36 void nextBuffer();
37};
38
39}
40
41#endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: IntBlockPool.h:14
int32_t intUpto
Definition: IntBlockPool.h:25
IntBlockPool(const DocumentsWriterPtr &docWriter, bool trackAllocations)
int32_t bufferUpto
Definition: IntBlockPool.h:24
DocumentsWriterWeakPtr _docWriter
Definition: IntBlockPool.h:32
Collection< IntArray > buffers
Definition: IntBlockPool.h:22
bool trackAllocations
Definition: IntBlockPool.h:29
IntArray buffer
Definition: IntBlockPool.h:27
int32_t intOffset
Definition: IntBlockPool.h:28
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition: LuceneTypes.h:123
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition: LuceneTypes.h:123

clucene.sourceforge.net