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


IntBlockPool.h
Go to the documentation of this file.
1 // 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 
12 namespace Lucene {
13 
14 class IntBlockPool : public LuceneObject {
15 public:
16  IntBlockPool(const DocumentsWriterPtr& docWriter, bool trackAllocations);
17  virtual ~IntBlockPool();
18 
20 
21 public:
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 
31 protected:
33 
34 public:
35  void reset();
36  void nextBuffer();
37 };
38 
39 }
40 
41 #endif
int32_t intUpto
Definition: IntBlockPool.h:25
IntArray buffer
Definition: IntBlockPool.h:27
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition: LuceneTypes.h:123
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition: LuceneTypes.h:123
bool trackAllocations
Definition: IntBlockPool.h:29
Base class for all Lucene classes.
Definition: LuceneObject.h:31
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
int32_t bufferUpto
Definition: IntBlockPool.h:24
DocumentsWriterWeakPtr _docWriter
Definition: IntBlockPool.h:32
Definition: IntBlockPool.h:14
Collection< IntArray > buffers
Definition: IntBlockPool.h:19
IntBlockPool(const DocumentsWriterPtr &docWriter, bool trackAllocations)
int32_t intOffset
Definition: IntBlockPool.h:28

clucene.sourceforge.net