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

CheckAND Class Reference

List of all members.

Public Member Functions

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

Member Function Documentation

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

Definition at line 39 of file cNewsgroupFilter.cc.

References ef, NewsgroupFilter::matches(), newsgroups, newsgroups_n, and V.

00040                                                      {
00041                 NewsgroupFilter f1OPf2(f1);
00042                  f1OPf2 &= f2;
00043 
00044                 for (int i = 0; i < newsgroups_n; i++) {
00045                         int f1OPf2m =
00046                             (f1OPf2.matches(newsgroups[i]) > 0) ? 1 : -1;
00047                         int f1OPf2n = (f1.matches(newsgroups[i]) > 0
00048                                        && f2.matches(newsgroups[i]) >
00049                                        0) ? 1 : -1;
00050 
00051                         if (f1OPf2n == f1OPf2m) {
00052                                 cout << "+" << flush;
00053                         } else {
00054                                 cout << "-" << flush;
00055                                 ef++;
00056                                 V(cout << endl;
00057                                   cout << "{" << f1 << "} and {" << f2 <<
00058                                   "}=={" << f1OPf2 << "}" << endl;
00059                                   cout << newsgroups[i] << flush;
00060                                     );
00061                         }
00062                 }
00063                 cout << " " << flush;
00064         }


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