Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CheckOR Class Reference

List of all members.

Public Member Functions

void operator() (const NewsgroupFilter &f1, const NewsgroupFilter &f2)

Member Function Documentation

void CheckOR::operator() const NewsgroupFilter f1,
const NewsgroupFilter f2
[inline]
 

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         }


The documentation for this class was generated from the following file:
Generated on Fri Aug 20 10:58:09 2004 for NewsCache by doxygen 1.3.6-20040222