Public Member Functions | |
| void | operator() (const NewsgroupFilter &f1, const NewsgroupFilter &f2) |
|
||||||||||||
|
Definition at line 69 of file cNewsgroupFilter.cc. References ef, NewsgroupFilter::matches(), newsgroups, newsgroups_n, and V.
00070 {
00071 NewsgroupFilter f1OPf2(f1);
00072 f1OPf2 |= f2;
00073
00074 for (int i = 0; i < newsgroups_n; i++) {
00075 int f1OPf2m =
00076 (f1OPf2.matches(newsgroups[i]) > 0) ? 1 : -1;
00077 int f1OPf2n = (f1.matches(newsgroups[i]) > 0
00078 || f2.matches(newsgroups[i]) >
00079 0) ? 1 : -1;
00080
00081 if (f1OPf2n == f1OPf2m) {
00082 cout << "+" << flush;
00083 } else {
00084 cout << "-" << flush;
00085 ef++;
00086 V(cout << endl;
00087 cout << "{" << f1 << "} and {" << f2 <<
00088 "}=={" << f1OPf2 << "}" << endl;
00089 cout << newsgroups[i] << flush;
00090 );
00091 }
00092 }
00093 cout << " " << flush;
00094 }
|
1.3.6-20040222