From b7c34c6f019a67f159b325d83000db9d04e8a270 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 23 Jan 2017 12:04:44 -0500 Subject: Added ability to filter on existence of inflection --- lib/lemma.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/lemma.cpp') diff --git a/lib/lemma.cpp b/lib/lemma.cpp index f9e9fcc..7fdc360 100644 --- a/lib/lemma.cpp +++ b/lib/lemma.cpp @@ -21,6 +21,11 @@ namespace verbly { return (lemma::formJoin %= joinCondition) && (lemma::inflectionCategory == check.getCategory()); } + lemma::inflection_field::operator filter() const + { + return (lemma::inflectionCategory == category_); + } + lemma::lemma(const database& db, sqlite3_stmt* row) : db_(&db), valid_(true) { id_ = sqlite3_column_int(row, 0); -- cgit 1.4.1