diff options
Diffstat (limited to 'lib/pronunciation.h')
| -rw-r--r-- | lib/pronunciation.h | 23 |
1 files changed, 17 insertions, 6 deletions
| diff --git a/lib/pronunciation.h b/lib/pronunciation.h index e171fe8..1162360 100644 --- a/lib/pronunciation.h +++ b/lib/pronunciation.h | |||
| @@ -12,7 +12,6 @@ struct sqlite3_stmt; | |||
| 12 | namespace verbly { | 12 | namespace verbly { |
| 13 | 13 | ||
| 14 | class form; | 14 | class form; |
| 15 | class lemma; | ||
| 16 | class word; | 15 | class word; |
| 17 | class database; | 16 | class database; |
| 18 | 17 | ||
| @@ -131,14 +130,26 @@ namespace verbly { | |||
| 131 | return (id == id_); | 130 | return (id == id_); |
| 132 | } | 131 | } |
| 133 | 132 | ||
| 134 | static filter rhymesWith(const pronunciation& arg); | ||
| 135 | static filter rhymesWith(const class form& arg); | ||
| 136 | static filter rhymesWith(const lemma& arg); | ||
| 137 | static filter rhymesWith(const word& arg); | ||
| 138 | |||
| 139 | // Relationships to other objects | 133 | // Relationships to other objects |
| 140 | 134 | ||
| 141 | static const field forms; | 135 | static const field forms; |
| 136 | |||
| 137 | // Rhyming relationship | ||
| 138 | |||
| 139 | class rhymes_field { | ||
| 140 | public: | ||
| 141 | |||
| 142 | filter operator%=(filter joinCondition) const; | ||
| 143 | |||
| 144 | operator filter() const; | ||
| 145 | |||
| 146 | private: | ||
| 147 | |||
| 148 | static const field rhymeJoin; | ||
| 149 | |||
| 150 | }; | ||
| 151 | |||
| 152 | static const rhymes_field rhymes; | ||
| 142 | 153 | ||
| 143 | private: | 154 | private: |
| 144 | bool valid_ = false; | 155 | bool valid_ = false; |
