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
SegmentInfoCollection.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 SEGMENTINFOCOLLECTION_H
8
#define SEGMENTINFOCOLLECTION_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene {
13
15
class
LPPAPI
SegmentInfoCollection
:
public
LuceneObject
{
16
public
:
17
SegmentInfoCollection
();
18
virtual
~
SegmentInfoCollection
();
19
20
LUCENE_CLASS
(
SegmentInfoCollection
);
21
22
protected
:
23
Collection<SegmentInfoPtr>
segmentInfos;
24
25
public
:
26
int32_t size();
27
bool
empty();
28
void
clear();
29
void
add(
const
SegmentInfoPtr
& info);
30
void
add(int32_t pos,
const
SegmentInfoPtr
& info);
31
void
addAll(
const
SegmentInfoCollectionPtr
& segmentInfos);
32
bool
equals(
const
SegmentInfoCollectionPtr
& other);
33
int32_t find(
const
SegmentInfoPtr
& info);
34
bool
contains(
const
SegmentInfoPtr
& info);
35
void
remove
(int32_t pos);
36
void
remove
(int32_t start, int32_t end);
37
38
virtual
LuceneObjectPtr
clone(
const
LuceneObjectPtr
& other =
LuceneObjectPtr
());
39
};
40
41
}
42
43
#endif
clucene.sourceforge.net