Switch to unified view

a/src/rcldb/rclquery.h b/src/rcldb/rclquery.h
...
...
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _rclquery_h_included_
17
#ifndef _rclquery_h_included_
18
#define _rclquery_h_included_
18
#define _rclquery_h_included_
19
#include <string>
19
#include <string>
20
#include <list>
21
#include <vector>
20
#include <vector>
22
21
23
#ifndef NO_NAMESPACES
22
#ifndef NO_NAMESPACES
24
using std::string;
23
using std::string;
25
using std::list;
26
using std::vector;
24
using std::vector;
27
#endif
25
#endif
28
26
29
#include "refcntr.h"
27
#include "refcntr.h"
30
28
...
...
70
68
71
    /** Get document at rank i in current query results. */
69
    /** Get document at rank i in current query results. */
72
    bool getDoc(int i, Doc &doc);
70
    bool getDoc(int i, Doc &doc);
73
71
74
    /** Get possibly expanded list of query terms */
72
    /** Get possibly expanded list of query terms */
75
    bool getQueryTerms(list<string>& terms);
73
    bool getQueryTerms(vector<string>& terms);
76
74
77
    /** Return a list of terms which matched for a specific result document */
75
    /** Return a list of terms which matched for a specific result document */
78
    bool getMatchTerms(const Doc& doc, list<string>& terms);
76
    bool getMatchTerms(const Doc& doc, vector<string>& terms);
79
    bool getMatchTerms(unsigned long xdocid, list<string>& terms);
77
    bool getMatchTerms(unsigned long xdocid, vector<string>& terms);
80
78
81
    /** Expand query to look for documents like the one passed in */
79
    /** Expand query to look for documents like the one passed in */
82
    list<string> expand(const Doc &doc);
80
    vector<string> expand(const Doc &doc);
83
81
84
    /** Return the Db we're set for */
82
    /** Return the Db we're set for */
85
    Db *whatDb();
83
    Db *whatDb();
86
84
87
    /* make this public for access from embedded Db::Native */
85
    /* make this public for access from embedded Db::Native */