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

Loading...
Searching...
No Matches
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
12 namespace Lucene {
13
14 class IntBlockPool : public LuceneObject {
15 public:
16 IntBlockPool(const DocumentsWriterPtr& docWriter, bool trackAllocations);
17 virtual ~IntBlockPool();
18
19 LUCENE_CLASS(IntBlockPool);
20
21 public:
22 Collection<IntArray> buffers;
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
29 bool trackAllocations;
30
31 protected:
32 DocumentsWriterWeakPtr _docWriter;
33
34 public:
35 void reset();
36 void nextBuffer();
37};
38
39}
40
41#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Lucene::IntBlockPool::intUpto
int32_t intUpto
Definition IntBlockPool.h:25
Lucene::IntBlockPool::IntBlockPool
IntBlockPool(const DocumentsWriterPtr &docWriter, bool trackAllocations)
Lucene::IntBlockPool::bufferUpto
int32_t bufferUpto
Definition IntBlockPool.h:24
Lucene::IntBlockPool::nextBuffer
void nextBuffer()
Lucene::IntBlockPool::_docWriter
DocumentsWriterWeakPtr _docWriter
Definition IntBlockPool.h:32
Lucene::IntBlockPool::buffers
Collection< IntArray > buffers
Definition IntBlockPool.h:22
Lucene::IntBlockPool::trackAllocations
bool trackAllocations
Definition IntBlockPool.h:29
Lucene::IntBlockPool::buffer
IntArray buffer
Definition IntBlockPool.h:27
Lucene::IntBlockPool::~IntBlockPool
virtual ~IntBlockPool()
Lucene::IntBlockPool::intOffset
int32_t intOffset
Definition IntBlockPool.h:28
Lucene::IntBlockPool::reset
void reset()
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::DocumentsWriterWeakPtr
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition LuceneTypes.h:123
Lucene::DocumentsWriterPtr
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition LuceneTypes.h:123

clucene.sourceforge.net