diff options
Diffstat (limited to 'generator/form.h')
-rw-r--r-- | generator/form.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/generator/form.h b/generator/form.h index c83bbdc..1686f9b 100644 --- a/generator/form.h +++ b/generator/form.h | |||
@@ -63,6 +63,16 @@ namespace verbly { | |||
63 | return reverse_id_; | 63 | return reverse_id_; |
64 | } | 64 | } |
65 | 65 | ||
66 | void setFrequency(int freq) | ||
67 | { | ||
68 | frequency_ = freq; | ||
69 | } | ||
70 | |||
71 | int getFrequency() const | ||
72 | { | ||
73 | return frequency_; | ||
74 | } | ||
75 | |||
66 | std::set<const pronunciation*> getPronunciations() const | 76 | std::set<const pronunciation*> getPronunciations() const |
67 | { | 77 | { |
68 | return pronunciations_; | 78 | return pronunciations_; |
@@ -79,6 +89,7 @@ namespace verbly { | |||
79 | const int length_; | 89 | const int length_; |
80 | const int anagram_set_id_; | 90 | const int anagram_set_id_; |
81 | int reverse_id_ = -1; | 91 | int reverse_id_ = -1; |
92 | int frequency_ = 0; | ||
82 | 93 | ||
83 | std::set<const pronunciation*> pronunciations_; | 94 | std::set<const pronunciation*> pronunciations_; |
84 | 95 | ||