diff options
Diffstat (limited to 'rep/usr/include/xapian/postingiterator.h.gcov.html')
-rw-r--r-- | rep/usr/include/xapian/postingiterator.h.gcov.html | 230 |
1 files changed, 0 insertions, 230 deletions
diff --git a/rep/usr/include/xapian/postingiterator.h.gcov.html b/rep/usr/include/xapian/postingiterator.h.gcov.html deleted file mode 100644 index 7137a28..0000000 --- a/rep/usr/include/xapian/postingiterator.h.gcov.html +++ /dev/null @@ -1,230 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> - -<html lang="en"> - -<head> - <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> - <title>LCOV - lcov.info - /usr/include/xapian/postingiterator.h</title> - <link rel="stylesheet" type="text/css" href="../../../gcov.css"> -</head> - -<body> - - <table width="100%" border=0 cellspacing=0 cellpadding=0> - <tr><td class="title">LTP GCOV extension - code coverage report</td></tr> - <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr> - - <tr> - <td width="100%"> - <table cellpadding=1 border=0 width="100%"> - <tr> - <td class="headerItem" width="20%">Current view:</td> - <td class="headerValue" width="80%" colspan=4><a href="../../../index.html">directory</a> - <a href="index.html">usr/include/xapian</a> - postingiterator.h</td> - </tr> - <tr> - <td class="headerItem" width="20%">Test:</td> - <td class="headerValue" width="80%" colspan=4>lcov.info</td> - </tr> - <tr> - <td class="headerItem" width="20%">Date:</td> - <td class="headerValue" width="20%">2008-08-14</td> - <td width="20%"></td> - <td class="headerItem" width="20%">Instrumented lines:</td> - <td class="headerValue" width="20%">2</td> - </tr> - <tr> - <td class="headerItem" width="20%">Code covered:</td> - <td class="headerValue" width="20%">100.0 %</td> - <td width="20%"></td> - <td class="headerItem" width="20%">Executed lines:</td> - <td class="headerValue" width="20%">2</td> - </tr> - </table> - </td> - </tr> - <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr> - </table> - - <table cellpadding=0 cellspacing=0 border=0> - <tr> - <td><br></td> - </tr> - <tr> - <td><pre class="source"> -<span class="lineNum"> 1 </span> : /** \file postingiterator.h -<span class="lineNum"> 2 </span> : * \brief Classes for iterating through posting lists -<span class="lineNum"> 3 </span> : */ -<span class="lineNum"> 4 </span> : /* Copyright 1999,2000,2001 BrightStation PLC -<span class="lineNum"> 5 </span> : * Copyright 2002 Ananova Ltd -<span class="lineNum"> 6 </span> : * Copyright 2003,2004,2005,2007 Olly Betts -<span class="lineNum"> 7 </span> : * -<span class="lineNum"> 8 </span> : * This program is free software; you can redistribute it and/or -<span class="lineNum"> 9 </span> : * modify it under the terms of the GNU General Public License as -<span class="lineNum"> 10 </span> : * published by the Free Software Foundation; either version 2 of the -<span class="lineNum"> 11 </span> : * License, or (at your option) any later version. -<span class="lineNum"> 12 </span> : * -<span class="lineNum"> 13 </span> : * This program is distributed in the hope that it will be useful, -<span class="lineNum"> 14 </span> : * but WITHOUT ANY WARRANTY; without even the implied warranty of -<span class="lineNum"> 15 </span> : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -<span class="lineNum"> 16 </span> : * GNU General Public License for more details. -<span class="lineNum"> 17 </span> : * -<span class="lineNum"> 18 </span> : * You should have received a copy of the GNU General Public License -<span class="lineNum"> 19 </span> : * along with this program; if not, write to the Free Software -<span class="lineNum"> 20 </span> : * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 -<span class="lineNum"> 21 </span> : * USA -<span class="lineNum"> 22 </span> : */ -<span class="lineNum"> 23 </span> : -<span class="lineNum"> 24 </span> : #ifndef XAPIAN_INCLUDED_POSTINGITERATOR_H -<span class="lineNum"> 25 </span> : #define XAPIAN_INCLUDED_POSTINGITERATOR_H -<span class="lineNum"> 26 </span> : -<span class="lineNum"> 27 </span> : #include <iterator> -<span class="lineNum"> 28 </span> : #include <string> -<span class="lineNum"> 29 </span> : -<span class="lineNum"> 30 </span> : #include <xapian/base.h> -<span class="lineNum"> 31 </span> : #include <xapian/types.h> -<span class="lineNum"> 32 </span> : #include <xapian/positioniterator.h> -<span class="lineNum"> 33 </span> : #include <xapian/visibility.h> -<span class="lineNum"> 34 </span> : -<span class="lineNum"> 35 </span> : namespace Xapian { -<span class="lineNum"> 36 </span> : -<span class="lineNum"> 37 </span> : class Database; -<span class="lineNum"> 38 </span> : -<span class="lineNum"> 39 </span> : /** @internal A wrapper class for a docid which returns the docid if -<span class="lineNum"> 40 </span> : * dereferenced with *. We need this to implement input_iterator semantics. -<span class="lineNum"> 41 </span> : */ -<span class="lineNum"> 42 </span> : class DocIDWrapper { -<span class="lineNum"> 43 </span> : private: -<span class="lineNum"> 44 </span> : docid did; -<span class="lineNum"> 45 </span> : public: -<span class="lineNum"> 46 </span> : explicit DocIDWrapper(docid did_) : did(did_) { } -<span class="lineNum"> 47 </span> : docid operator*() const { return did; } -<span class="lineNum"> 48 </span> : }; -<span class="lineNum"> 49 </span> : -<span class="lineNum"> 50 </span> : /** An iterator pointing to items in a list of postings. -<span class="lineNum"> 51 </span> : */ -<span class="lineNum"> 52 </span> : class XAPIAN_VISIBILITY_DEFAULT PostingIterator { -<span class="lineNum"> 53 </span> : public: -<span class="lineNum"> 54 </span> : class Internal; -<span class="lineNum"> 55 </span> : /// @private @internal Reference counted internals. -<span class="lineNum"> 56 </span> : Xapian::Internal::RefCntPtr<Internal> internal; -<span class="lineNum"> 57 </span> : -<span class="lineNum"> 58 </span> : private: -<span class="lineNum"> 59 </span> : friend class Database; // So Database can construct us -<span class="lineNum"> 60 </span> : -<span class="lineNum"> 61 </span> : explicit PostingIterator(Internal *internal_); -<span class="lineNum"> 62 </span> : -<span class="lineNum"> 63 </span> : public: -<span class="lineNum"> 64 </span> : friend bool operator==(const PostingIterator &a, -<span class="lineNum"> 65 </span> : const PostingIterator &b); -<span class="lineNum"> 66 </span> : -<span class="lineNum"> 67 </span> : /// Default constructor - for declaring an uninitialised iterator -<span class="lineNum"> 68 </span> : PostingIterator(); -<span class="lineNum"> 69 </span> : -<span class="lineNum"> 70 </span> : /// Destructor -<span class="lineNum"> 71 </span> : ~PostingIterator(); -<span class="lineNum"> 72 </span> : -<span class="lineNum"> 73 </span> : /** Copying is allowed. The internals are reference counted, so -<span class="lineNum"> 74 </span> : * copying is also cheap. -<span class="lineNum"> 75 </span> : */ -<span class="lineNum"> 76 </span> : PostingIterator(const PostingIterator &other); -<span class="lineNum"> 77 </span> : -<span class="lineNum"> 78 </span> : /** Assignment is allowed. The internals are reference counted, -<span class="lineNum"> 79 </span> : * so assignment is also cheap. -<span class="lineNum"> 80 </span> : */ -<span class="lineNum"> 81 </span> : void operator=(const PostingIterator &other); -<span class="lineNum"> 82 </span> : -<span class="lineNum"> 83 </span> : PostingIterator & operator++(); -<span class="lineNum"> 84 </span> : -<span class="lineNum"> 85 </span> : DocIDWrapper operator++(int) { -<span class="lineNum"> 86 </span> : Xapian::docid tmp = **this; -<span class="lineNum"> 87 </span> : operator++(); -<span class="lineNum"> 88 </span> : return DocIDWrapper(tmp); -<span class="lineNum"> 89 </span> : } -<span class="lineNum"> 90 </span> : -<span class="lineNum"> 91 </span> : /** Skip the iterator to document did, or the first document after did -<span class="lineNum"> 92 </span> : * if did isn't in the list of documents being iterated. -<span class="lineNum"> 93 </span> : */ -<span class="lineNum"> 94 </span> : void skip_to(Xapian::docid did); -<span class="lineNum"> 95 </span> : -<span class="lineNum"> 96 </span> : // Get the weight of the posting at the current position: will -<span class="lineNum"> 97 </span> : // need to set a weight object for this to work. -<span class="lineNum"> 98 </span> : // Xapian::weight get_weight() const; -<span class="lineNum"> 99 </span> : -<span class="lineNum"> 100 </span> : /// Get the document id at the current position in the postlist. -<span class="lineNum"> 101 </span> : Xapian::docid operator *() const; -<span class="lineNum"> 102 </span> : -<span class="lineNum"> 103 </span> : /** Get the length of the document at the current position in the -<span class="lineNum"> 104 </span> : * postlist. -<span class="lineNum"> 105 </span> : * -<span class="lineNum"> 106 </span> : * This information may be stored in the postlist, in which case -<span class="lineNum"> 107 </span> : * this lookup should be extremely fast (indeed, not require further -<span class="lineNum"> 108 </span> : * disk access). If the information is not present in the postlist, -<span class="lineNum"> 109 </span> : * it will be retrieved from the database, at a greater performance -<span class="lineNum"> 110 </span> : * cost. -<span class="lineNum"> 111 </span> : */ -<span class="lineNum"> 112 </span> : Xapian::doclength get_doclength() const; -<span class="lineNum"> 113 </span> : -<span class="lineNum"> 114 </span> : /** Get the within document frequency of the document at the -<span class="lineNum"> 115 </span> : * current position in the postlist. -<span class="lineNum"> 116 </span> : */ -<span class="lineNum"> 117 </span> : Xapian::termcount get_wdf() const; -<span class="lineNum"> 118 </span> : -<span class="lineNum"> 119 </span> : /** Return PositionIterator pointing to start of positionlist for -<span class="lineNum"> 120 </span> : * current document. -<span class="lineNum"> 121 </span> : */ -<span class="lineNum"> 122 </span> : PositionIterator positionlist_begin() const; -<span class="lineNum"> 123 </span> : -<span class="lineNum"> 124 </span> : /** Return PositionIterator pointing to end of positionlist for -<span class="lineNum"> 125 </span> : * current document. -<span class="lineNum"> 126 </span> : */ -<span class="lineNum"> 127 </span> : PositionIterator positionlist_end() const { -<span class="lineNum"> 128 </span> : return PositionIterator(NULL); -<span class="lineNum"> 129 </span> : } -<span class="lineNum"> 130 </span> : -<span class="lineNum"> 131 </span> : // Don't expose these methods here. A container iterator doesn't -<span class="lineNum"> 132 </span> : // provide a method to find the size of the container... -<span class="lineNum"> 133 </span> : // Xapian::doccount get_termfreq() const; -<span class="lineNum"> 134 </span> : // Xapian::termcount get_collection_freq() const; -<span class="lineNum"> 135 </span> : -<span class="lineNum"> 136 </span> : /// Return a string describing this object. -<span class="lineNum"> 137 </span> : std::string get_description() const; -<span class="lineNum"> 138 </span> : -<span class="lineNum"> 139 </span> : /// Allow use as an STL iterator -<span class="lineNum"> 140 </span> : //@{ -<span class="lineNum"> 141 </span> : typedef std::input_iterator_tag iterator_category; -<span class="lineNum"> 142 </span> : typedef Xapian::docid value_type; -<span class="lineNum"> 143 </span> : typedef Xapian::doccount_diff difference_type; -<span class="lineNum"> 144 </span> : typedef Xapian::docid * pointer; -<span class="lineNum"> 145 </span> : typedef Xapian::docid & reference; -<span class="lineNum"> 146 </span> : //@} -<span class="lineNum"> 147 </span> : }; -<span class="lineNum"> 148 </span> : -<span class="lineNum"> 149 </span> : /// Test equality of two PostingIterators -<span class="lineNum"> 150 </span><span class="lineCov"> 10 : inline bool operator==(const PostingIterator &a, const PostingIterator &b)</span> -<span class="lineNum"> 151 </span> : { -<span class="lineNum"> 152 </span><span class="lineCov"> 10 : return (a.internal.get() == b.internal.get());</span> -<span class="lineNum"> 153 </span> : } -<span class="lineNum"> 154 </span> : -<span class="lineNum"> 155 </span> : /// Test inequality of two PostingIterators -<span class="lineNum"> 156 </span> : inline bool operator!=(const PostingIterator &a, const PostingIterator &b) -<span class="lineNum"> 157 </span> : { -<span class="lineNum"> 158 </span> : return !(a == b); -<span class="lineNum"> 159 </span> : } -<span class="lineNum"> 160 </span> : -<span class="lineNum"> 161 </span> : } -<span class="lineNum"> 162 </span> : -<span class="lineNum"> 163 </span> : #endif /* XAPIAN_INCLUDED_POSTINGITERATOR_H */ -</pre> - </td> - </tr> - </table> - <br> - - <table width="100%" border=0 cellspacing=0 cellpadding=0> - <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr> - <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr> - </table> - <br> - -</body> -</html> |