Debian Codegraph @

backends/glass/glass_alltermslist.h

raw symbols SCIP
1 /** @file
2 * @brief A termlist containing all terms in a glass database.
3 */
4 /* Copyright (C) 2005,2007,2008,2009,2010,2011 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
19 * USA
20 */
21
22 #ifndef XAPIAN_INCLUDED_GLASS_ALLTERMSLIST_H
23 #define XAPIAN_INCLUDED_GLASS_ALLTERMSLIST_Hcxx . . $ `backends/glass/glass_alltermslist.h:23:9`!
24
25 #include "backends/alltermslist.h"cxx . . $ `<file>/backends/alltermslist.h`/
26 #include "glass_database.h"cxx . . $ `<file>/backends/glass/glass_database.h`/
27 #include "glass_postlist.h"cxx . . $ `<file>/backends/glass/glass_postlist.h`/
28
29 class GlassCursorcxx . . $ GlassCursor#;
30
31 class GlassAllTermsListcxx . . $ GlassAllTermsList# : public AllTermsListcxx . . $ AllTermsList# {
32 /// Copying is not allowed.
33 GlassAllTermsListcxx . . $ GlassAllTermsList#GlassAllTermsList(30d638f0001eee57).(const GlassAllTermsListcxx . . $ GlassAllTermsList# &);
34
35 /// Assignment is not allowed.
36 void operatorcxx . . $ GlassAllTermsList#`operator=`(30d638f0001eee57).=(const GlassAllTermsListcxx . . $ GlassAllTermsList# &);
37
38 /// Keep a reference to our database to stop it being deleted.
39 Xapiancxx . . $ Xapian/::Internalcxx . . $ Xapian/Internal/::intrusive_ptrcxx . . $ Xapian/Internal/intrusive_ptr#<const GlassDatabasecxx . . $ GlassDatabase#> databasecxx . . $ GlassAllTermsList#database.;
40
41 /** A cursor which runs through the postlist table reading termnames from
42 * the keys.
43 */
44 GlassCursorcxx . . $ GlassCursor# * cursorcxx . . $ GlassAllTermsList#cursor.;
45
46 /// The termname at the current position.
47 stdcxx . . $ std/::stringcxx . . $ std/string# current_termcxx . . $ GlassAllTermsList#current_term.;
48
49 /// The prefix to restrict the terms to.
50 stdcxx . . $ std/::stringcxx . . $ std/string# prefixcxx . . $ GlassAllTermsList#prefix.;
51
52 /** The term frequency of the term at the current position.
53 *
54 * If this value is zero, then we haven't read the term frequency for the
55 * current term yet. We need to call read_termfreq() to read this.
56 */
57 mutable Xapiancxx . . $ Xapian/::doccountcxx . . $ Xapian/doccount# termfreqcxx . . $ GlassAllTermsList#termfreq.;
58
59 /// Read and cache the term frequency.
60 void read_termfreqcxx . . $ GlassAllTermsList#read_termfreq(83f5f38750778ac8).() const;
61
62 public:
63 GlassAllTermsListcxx . . $ GlassAllTermsList#GlassAllTermsList(1cfda0a4a69d9a42).(Xapiancxx . . $ Xapian/::Internalcxx . . $ Xapian/Internal/::intrusive_ptrcxx . . $ Xapian/Internal/intrusive_ptr#<const GlassDatabasecxx . . $ GlassDatabase#> database_,
64 const stdcxx . . $ std/::stringcxx . . $ std/string# & prefix_)
65 : databasecxx . . $ GlassAllTermsList#database.(database_), cursorcxx . . $ GlassAllTermsList#cursor.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!), prefixcxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(prefix_), termfreqcxx . . $ GlassAllTermsList#termfreq.(0) { }
66
67 /// Destructor.
68 ~cxx . . $ GlassAllTermsList#`~GlassAllTermsList`(ced63f7c635d850d).GlassAllTermsListcxx . . $ GlassAllTermsList#();
69
70 /** Returns the current termname.
71 *
72 * Either next() or skip_to() must have been called before this
73 * method can be called.
74 */
75 stdcxx . . $ std/::stringcxx . . $ std/string# get_termnamecxx . . $ GlassAllTermsList#get_termname(219584694fe2b248).() const;
76
77 /** Returns the term frequency of the current term.
78 *
79 * Either next() or skip_to() must have been called before this
80 * method can be called.
81 */
82 Xapiancxx . . $ Xapian/::doccountcxx . . $ Xapian/doccount# get_termfreqcxx . . $ GlassAllTermsList#get_termfreq(ddd8539a2fcdd4ce).() const;
83
84 /// Advance to the next term in the list.
85 TermListcxx . . $ TermList# * nextcxx . . $ GlassAllTermsList#next(cd86c745428e820f).();
86
87 /// Advance to the first term which is >= tname.
88 TermListcxx . . $ TermList# * skip_tocxx . . $ GlassAllTermsList#skip_to(c2d075377a6ea65f).(const stdcxx . . $ std/::stringcxx . . $ std/string# &tname);
89
90 /// True if we're off the end of the list
91 bool at_endcxx . . $ GlassAllTermsList#at_end(50ce9a9e25b4a850).() const;
92 };
93
94 #endif /* XAPIAN_INCLUDED_GLASS_ALLTERMSLIST_H */