Changeset 394 for trunk/gsdl/src


Ignore:
Timestamp:
1999-07-16T12:14:01+12:00 (25 years ago)
Author:
sjboddie
Message:

added termfreqclassarray type

Location:
trunk/gsdl/src/colservr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/queryinfo.cpp

    r358 r394  
    1212/*
    1313   $Log$
     14   Revision 1.9  1999/07/16 00:14:01  sjboddie
     15   added termfreqclassarray type
     16
    1417   Revision 1.8  1999/07/09 02:19:44  rjmcnab
    1518   Fixed a couple of compiler conflicts
     
    333336
    334337void queryresultsclass::sortuniqqueryterms() {
    335   vector<termfreqclass> tempterms = orgterms;
     338  termfreqclassarray tempterms = orgterms;
    336339  text_tset seenterms;
    337340  terms.erase(terms.begin(), terms.end());
     
    341344
    342345  // insert first occurance of each term (maximum)
    343   vector<termfreqclass>::reverse_iterator here = tempterms.rbegin();
    344   vector<termfreqclass>::reverse_iterator end = tempterms.rend();
     346  termfreqclassarray::reverse_iterator here = tempterms.rbegin();
     347  termfreqclassarray::reverse_iterator end = tempterms.rend();
    345348  while (here != end) {
    346349    if (seenterms.find((*here).termstr) == seenterms.end()) {
     
    374377
    375378  outs << "orgterms\n";
    376   vector<termfreqclass>::iterator orgtermshere = q.orgterms.begin();
    377   vector<termfreqclass>::iterator orgtermsend = q.orgterms.end();
     379  termfreqclassarray::iterator orgtermshere = q.orgterms.begin();
     380  termfreqclassarray::iterator orgtermsend = q.orgterms.end();
    378381  while (orgtermshere != orgtermsend) {
    379382    outs << (*orgtermshere);
     
    382385
    383386  outs << "terms\n";
    384   vector<termfreqclass>::iterator termshere = q.terms.begin();
    385   vector<termfreqclass>::iterator termsend = q.terms.end();
     387  termfreqclassarray::iterator termshere = q.terms.begin();
     388  termfreqclassarray::iterator termsend = q.terms.end();
    386389  while (termshere != termsend) {
    387390    outs << (*termshere);
  • trunk/gsdl/src/colservr/queryinfo.h

    r351 r394  
    7676};
    7777
     78typedef vector<termfreqclass> termfreqclassarray;
     79
    7880bool operator==(const termfreqclass &x, const termfreqclass &y);
    7981bool operator!=(const termfreqclass &x, const termfreqclass &y);
     
    147149 
    148150  docresultsclass docs;
    149   vector<termfreqclass> orgterms; // terms before they are sorted and uniqued
    150   vector<termfreqclass> terms;
     151  termfreqclassarray orgterms; // terms before they are sorted and uniqued
     152  termfreqclassarray terms;
    151153  text_tset termvariants;
    152154 
Note: See TracChangeset for help on using the changeset viewer.