#include <expression.h>
Inherits Expression.
Public Methods | |
AndExpression () | |
~AndExpression () | |
void | add (Expression *e) |
bool | eval (const LogRecord &r) const |
void | print (ostream &os) const |
Private Attributes | |
list<Expression*> | exps_ |
|
Definition at line 61 of file expression.h. 00061 {} |
|
Definition at line 66 of file expression.C. 00066 { 00067 for (list<Expression*>::const_iterator i=exps_.begin(); i!=exps_.end(); ++i) 00068 delete *i; 00069 } |
|
Definition at line 63 of file expression.h. Referenced by Configuration::add_expression().
00063 { if (e) exps_.push_back(e); } |
|
Reimplemented from Expression. Definition at line 78 of file expression.C. 00078 { 00079 for (list<Expression*>::const_iterator i=exps_.begin(); i!=exps_.end(); ++i) 00080 if (!(*i)->eval(r)) 00081 return false; 00082 return true; 00083 } |
|
Reimplemented from Expression. Definition at line 72 of file expression.C. 00072 { 00073 for (list<Expression*>::const_iterator i=exps_.begin(); i!=exps_.end(); ++i) 00074 os << **i << "\n"; 00075 } |
|
Definition at line 67 of file expression.h. |