Line data Source code
1 :
2 : #include "ErrorHandler/MessageAnalyzer/ma_domain_andexpr.h"
3 :
4 : using namespace novadaq::errorhandler;
5 :
6 0 : ma_domain_andexpr::ma_domain_andexpr()
7 : //: conditions (conds)
8 : {
9 0 : }
10 :
11 0 : void ma_domain_andexpr::evaluate(ma_domains& domains) const
12 : {
13 0 : ma_domains mydomains;
14 :
15 0 : domain_conds_t::const_iterator it = conds.begin();
16 :
17 0 : for (; it != conds.end(); ++it)
18 : {
19 0 : it->evaluate(mydomains);
20 0 : if (mydomains.empty()) return;
21 : }
22 :
23 : // cat the domain list
24 : {
25 0 : domains.splice(domains.end(), mydomains);
26 : }
27 0 : }
|