summary refs log tree commit diff stats
path: root/lib/lemma.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-01-23 12:04:44 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-01-23 12:04:44 -0500
commitb7c34c6f019a67f159b325d83000db9d04e8a270 (patch)
tree57cd5f9dbc92a280661604007804f9394f4a88ef /lib/lemma.cpp
parentc4743dd4dd15681b1ff9d2be64c8307d0dce53b9 (diff)
downloadverbly-b7c34c6f019a67f159b325d83000db9d04e8a270.tar.gz
verbly-b7c34c6f019a67f159b325d83000db9d04e8a270.tar.bz2
verbly-b7c34c6f019a67f159b325d83000db9d04e8a270.zip
Added ability to filter on existence of inflection
Diffstat (limited to 'lib/lemma.cpp')
-rw-r--r--lib/lemma.cpp5
1 files changed, 5 insertions, 0 deletions
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 {
21 return (lemma::formJoin %= joinCondition) && (lemma::inflectionCategory == check.getCategory()); 21 return (lemma::formJoin %= joinCondition) && (lemma::inflectionCategory == check.getCategory());
22 } 22 }
23 23
24 lemma::inflection_field::operator filter() const
25 {
26 return (lemma::inflectionCategory == category_);
27 }
28
24 lemma::lemma(const database& db, sqlite3_stmt* row) : db_(&db), valid_(true) 29 lemma::lemma(const database& db, sqlite3_stmt* row) : db_(&db), valid_(true)
25 { 30 {
26 id_ = sqlite3_column_int(row, 0); 31 id_ = sqlite3_column_int(row, 0);