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:
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
Lucene::IntBlockPool::bufferUpto
int32_t bufferUpto
Definition: IntBlockPool.h:24
Lucene::IntBlockPool::reset
void reset()
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::IntBlockPool::buffer
IntArray buffer
Definition: IntBlockPool.h:27
Lucene::DocumentsWriterWeakPtr
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition: LuceneTypes.h:123
Lucene::Collection< IntArray >
Lucene::DocumentsWriterPtr
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition: LuceneTypes.h:123
Lucene::IntBlockPool::trackAllocations
bool trackAllocations
Definition: IntBlockPool.h:29
Lucene::IntBlockPool::intOffset
int32_t intOffset
Definition: IntBlockPool.h:28
Lucene::IntBlockPool::~IntBlockPool
virtual ~IntBlockPool()
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::IntBlockPool
Definition: IntBlockPool.h:14
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Lucene::IntBlockPool::_docWriter
DocumentsWriterWeakPtr _docWriter
Definition: IntBlockPool.h:32
Lucene::IntBlockPool::intUpto
int32_t intUpto
Definition: IntBlockPool.h:25
Lucene::IntBlockPool::IntBlockPool
IntBlockPool(const DocumentsWriterPtr &docWriter, bool trackAllocations)
Lucene::IntBlockPool::buffers
Collection< IntArray > buffers
Definition: IntBlockPool.h:19
Lucene::IntBlockPool::nextBuffer
void nextBuffer()
LuceneObject.h

clucene.sourceforge.net