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/form.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/form.cpp')
| -rw-r--r-- | lib/form.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
| diff --git a/lib/form.cpp b/lib/form.cpp index 778e5d3..ef9703a 100644 --- a/lib/form.cpp +++ b/lib/form.cpp | |||
| @@ -33,7 +33,12 @@ namespace verbly { | |||
| 33 | { | 33 | { |
| 34 | return (form::lemmaJoin %= (joinCondition && (form::inflectionCategory == check.getCategory()))); | 34 | return (form::lemmaJoin %= (joinCondition && (form::inflectionCategory == check.getCategory()))); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | form::inflection_field::operator filter() const | ||
| 38 | { | ||
| 39 | return (form::lemmaJoin %= (form::inflectionCategory == category_)); | ||
| 40 | } | ||
| 41 | |||
| 37 | const std::vector<pronunciation>& form::getPronunciations() const | 42 | const std::vector<pronunciation>& form::getPronunciations() const |
| 38 | { | 43 | { |
| 39 | if (!valid_) | 44 | if (!valid_) |
