Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
IntBlockPool.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2011 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
{
16
public
:
17
IntBlockPool
(
DocumentsWriterPtr
docWriter,
bool
trackAllocations
);
18
virtual
~IntBlockPool
();
19
20
LUCENE_CLASS
(
IntBlockPool
);
21
22
public
:
23
Collection<IntArray>
buffers
;
24
25
int32_t
bufferUpto
;
// Which buffer we are upto
26
int32_t
intUpto
;
// Where we are in head buffer
27
28
IntArray
buffer
;
// Current head buffer
29
int32_t
intOffset
;
// Current head offset
30
bool
trackAllocations
;
31
32
protected
:
33
DocumentsWriterWeakPtr
_docWriter
;
34
35
public
:
36
void
reset
();
37
void
nextBuffer
();
38
};
39
}
40
41
#endif
clucene.sourceforge.net