LCOV - code coverage report
Current view: top level - queryparser - termgenerator_internal.h (source / functions) Hit Total Coverage
Test: Test Coverage for xapian-core r Lines: 3 3 100.0 %
Date: 2011-08-21 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /** @file termgenerator_internal.h
       2                 :            :  * @brief TermGenerator class internals
       3                 :            :  */
       4                 :            : /* Copyright (C) 2007 Olly Betts
       5                 :            :  *
       6                 :            :  * This program is free software; you can redistribute it and/or modify
       7                 :            :  * it under the terms of the GNU General Public License as published by
       8                 :            :  * the Free Software Foundation; either version 2 of the License, or
       9                 :            :  * (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                 :            : #ifndef XAPIAN_INCLUDED_TERMGENERATOR_INTERNAL_H
      22                 :            : #define XAPIAN_INCLUDED_TERMGENERATOR_INTERNAL_H
      23                 :            : 
      24                 :            : #include <xapian/base.h>
      25                 :            : #include <xapian/database.h>
      26                 :            : #include <xapian/document.h>
      27                 :            : #include <xapian/termgenerator.h>
      28                 :            : #include <xapian/stem.h>
      29                 :            : 
      30                 :            : namespace Xapian {
      31                 :            : 
      32                 :            : class Stopper;
      33                 :            : 
      34                 :          5 : class TermGenerator::Internal : public Xapian::Internal::RefCntBase {
      35                 :            :     friend class TermGenerator;
      36                 :            :     Stem stemmer;
      37                 :            :     const Stopper * stopper;
      38                 :            :     Document doc;
      39                 :            :     termcount termpos;
      40                 :            :     TermGenerator::flags flags;
      41                 :            :     WritableDatabase db;
      42                 :            : 
      43                 :            :   public:
      44                 :          5 :     Internal() : stopper(NULL), termpos(0),
      45                 :          5 :         flags(TermGenerator::flags(0)) { }
      46                 :            :     void index_text(Utf8Iterator itor,
      47                 :            :                     termcount weight,
      48                 :            :                     const std::string & prefix,
      49                 :            :                     bool with_positions);
      50                 :            : };
      51                 :            : 
      52                 :            : }
      53                 :            : 
      54                 :            : #endif // XAPIAN_INCLUDED_TERMGENERATOR_INTERNAL_H

Generated by: LCOV version 1.8