summaryrefslogtreecommitdiff
path: root/src/predicate.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-10 02:43:52 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-10 02:43:52 -0500
commita779751fc77a3e8703093737618d9778dd95e0ea (patch)
tree44c17ce678907b62adc424e6295ed79abb85f09f /src/predicate.h
parent294bf5a83d1687638f840e776abb16ef009fb4ef (diff)
downloadfork-ledger-a779751fc77a3e8703093737618d9778dd95e0ea.tar.gz
fork-ledger-a779751fc77a3e8703093737618d9778dd95e0ea.tar.bz2
fork-ledger-a779751fc77a3e8703093737618d9778dd95e0ea.zip
query_t objects are now convertible to predicate_t
Diffstat (limited to 'src/predicate.h')
-rw-r--r--src/predicate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/predicate.h b/src/predicate.h
index 17a2d36a..943b5a12 100644
--- a/src/predicate.h
+++ b/src/predicate.h
@@ -48,6 +48,8 @@
namespace ledger {
+class query_t;
+
class predicate_t : public expr_t
{
public:
@@ -61,6 +63,7 @@ public:
: expr_t(other), what_to_keep(other.what_to_keep) {
TRACE_CTOR(predicate_t, "copy");
}
+ predicate_t(const query_t& other);
predicate_t(const string& str, const keep_details_t& _what_to_keep,
const parse_flags_t& flags = PARSE_DEFAULT)