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


SegmentInfoCollection.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 SEGMENTINFOCOLLECTION_H
8 #define SEGMENTINFOCOLLECTION_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI SegmentInfoCollection : public LuceneObject {
16 public:
19 
21 
22 protected:
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 LuceneObjectPtr& 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 
39 };
40 
41 }
42 
43 #endif
Lucene::SegmentInfoCollection::remove
void remove(int32_t start, int32_t end)
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::Collection< SegmentInfoPtr >
Lucene::SegmentInfoPtr
boost::shared_ptr< SegmentInfo > SegmentInfoPtr
Definition: LuceneTypes.h:208
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Lucene::SegmentInfoCollection::remove
void remove(int32_t pos)
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::SegmentInfoCollection::equals
bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Lucene::SegmentInfoCollection::add
void add(const SegmentInfoPtr &info)
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Lucene::SegmentInfoCollection
A collection of SegmentInfo objects to be used as a base class for SegmentInfos.
Definition: SegmentInfoCollection.h:15
Lucene::SegmentInfoCollectionPtr
boost::shared_ptr< SegmentInfoCollection > SegmentInfoCollectionPtr
Definition: LuceneTypes.h:209
Lucene::SegmentInfoCollection::addAll
void addAll(const SegmentInfoCollectionPtr &segmentInfos)
Lucene::SegmentInfoCollection::contains
bool contains(const SegmentInfoPtr &info)
Lucene::SegmentInfoCollection::size
int32_t size()
Lucene::SegmentInfoCollection::segmentInfos
Collection< SegmentInfoPtr > segmentInfos
Definition: SegmentInfoCollection.h:20
Lucene::SegmentInfoCollection::SegmentInfoCollection
SegmentInfoCollection()
Lucene::SegmentInfoCollection::add
void add(int32_t pos, const SegmentInfoPtr &info)
Lucene::SegmentInfoCollection::clear
void clear()
Lucene::SegmentInfoCollection::empty
bool empty()
Lucene::SegmentInfoCollection::find
int32_t find(const SegmentInfoPtr &info)
Lucene::SegmentInfoCollection::clone
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Return clone of this object.
Lucene::SegmentInfoCollection::~SegmentInfoCollection
virtual ~SegmentInfoCollection()
LuceneObject.h

clucene.sourceforge.net