diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-23 12:04:44 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-23 12:04:44 -0500 |
| commit | b7c34c6f019a67f159b325d83000db9d04e8a270 (patch) | |
| tree | 57cd5f9dbc92a280661604007804f9394f4a88ef /lib/lemma.cpp | |
| parent | c4743dd4dd15681b1ff9d2be64c8307d0dce53b9 (diff) | |
| download | verbly-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.cpp | 5 |
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); |
