LCOV - code coverage report
Current view: top level - api - postlist.cc (source / functions) Hit Total Coverage
Test: Test Coverage for xapian-core r Lines: 6 16 37.5 %
Date: 2011-08-21 Functions: 3 10 30.0 %
Branches: 1 6 16.7 %

           Branch data     Line data    Source code
       1                 :            : /** @file postlist.cc
       2                 :            :  * @brief Abstract base class for postlists.
       3                 :            :  */
       4                 :            : /* Copyright (C) 2007,2009 Olly Betts
       5                 :            :  *
       6                 :            :  * This program is free software; you can redistribute it and/or
       7                 :            :  * modify it under the terms of the GNU General Public License as
       8                 :            :  * published by the Free Software Foundation; either version 2 of the
       9                 :            :  * License, or (at your option) any later version.
      10                 :            :  *
      11                 :            :  * This program is distributed in the hope that it will be useful,
      12                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      13                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14                 :            :  * GNU General Public License for more details.
      15                 :            :  *
      16                 :            :  * You should have received a copy of the GNU General Public License
      17                 :            :  * along with this program; if not, write to the Free Software
      18                 :            :  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
      19                 :            :  */
      20                 :            : 
      21                 :            : #include <config.h>
      22                 :            : 
      23                 :            : #include "postlist.h"
      24                 :            : 
      25                 :            : #include <xapian/error.h>
      26                 :            : 
      27                 :            : #include "omassert.h"
      28                 :            : 
      29                 :            : using namespace std;
      30                 :            : 
      31                 :            : namespace Xapian {
      32                 :            : 
      33 [ #  # ][ #  # ]:     799799 : PostingIterator::Internal::~Internal() { }
                 [ -  + ]
      34                 :            : 
      35                 :            : TermFreqs
      36                 :          0 : PostingIterator::Internal::get_termfreq_est_using_stats(
      37                 :            :         const Xapian::Weight::Internal &) const
      38                 :            : {
      39                 :            :     throw Xapian::InvalidOperationError(
      40                 :          0 :      "get_termfreq_est_using_stats() not meaningful for this PostingIterator");
      41                 :            : }
      42                 :            : 
      43                 :            : Xapian::termcount
      44                 :          0 : PostingIterator::Internal::get_wdf() const
      45                 :            : {
      46                 :          0 :     throw Xapian::InvalidOperationError("get_wdf() not meaningful for this PostingIterator");
      47                 :            : }
      48                 :            : 
      49                 :            : const string *
      50                 :      11422 : PostingIterator::Internal::get_collapse_key() const
      51                 :            : {
      52                 :      11422 :     return NULL;
      53                 :            : }
      54                 :            : 
      55                 :            : PositionList *
      56                 :          0 : PostList::read_position_list()
      57                 :            : {
      58                 :          0 :     throw Xapian::InvalidOperationError("read_position_list() not meaningful for this PostingIterator");
      59                 :            : }
      60                 :            : 
      61                 :            : PositionList *
      62                 :          0 : PostList::open_position_list() const
      63                 :            : {
      64                 :          0 :     throw Xapian::InvalidOperationError("open_position_list() not meaningful for this PostingIterator");
      65                 :            : }
      66                 :            : 
      67                 :            : PostList *
      68                 :       9162 : PostList::check(Xapian::docid did, Xapian::weight w_min, bool &valid)
      69                 :            : {
      70                 :       9162 :     valid = true;
      71                 :       9162 :     return skip_to(did, w_min);
      72                 :            : }
      73                 :            : 
      74                 :            : Xapian::termcount
      75                 :          0 : PostList::count_matching_subqs() const
      76                 :            : {
      77                 :            :     Assert(false);
      78                 :          0 :     return 0;
      79                 :            : }
      80                 :            : 
      81                 :            : }

Generated by: LCOV version 1.8