22 #ifndef DBA_MEMDB_MATCH_H
23 #define DBA_MEMDB_MATCH_H
25 #include <dballe/core/stlutils.h>
26 #include <wreport/varinfo.h>
40 virtual bool operator()(
const T&)
const = 0;
49 std::vector<Match<T>*> matches;
59 bool operator()(
const T& val)
const;
76 if (filter)
delete filter;
79 const Match<T>*
get()
const {
return filter; }
80 const Match<T>& operator*()
const {
return *filter; }
88 wreport::Varcode code;
90 Varcode(wreport::Varcode code) : code(code) {}
91 virtual bool operator()(
const T& val)
const
93 return val.var->code() == code;
100 std::set<wreport::Varcode> codes;
102 Varcodes(std::set<wreport::Varcode> codes);
103 virtual bool operator()(
const T& val)
const;
114 virtual bool operator()(
const T& val)
const;
129 virtual bool operator()(
const T& val)
const;
Definition: varmatch.h:30
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Build an And of filters step by step.
Definition: match.h:68
Base class for match functors.
Definition: match.h:36
void add(Match< T > *m)
Add a match to and, taking ownership of its memory management.
Definition: match.h:57