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


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

clucene.sourceforge.net