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

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

clucene.sourceforge.net