summary refs log tree commit diff stats
path: root/generator/form.h
diff options
context:
space:
mode:
Diffstat (limited to 'generator/form.h')
-rw-r--r--generator/form.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/generator/form.h b/generator/form.h index f3dd779..c83bbdc 100644 --- a/generator/form.h +++ b/generator/form.h
@@ -15,7 +15,7 @@ namespace verbly {
15 15
16 // Constructor 16 // Constructor
17 17
18 explicit form(std::string text); 18 form(std::string text, int anagram_set_id);
19 19
20 // Mutators 20 // Mutators
21 21
@@ -48,6 +48,21 @@ namespace verbly {
48 return length_; 48 return length_;
49 } 49 }
50 50
51 int getAnagramSetId() const
52 {
53 return anagram_set_id_;
54 }
55
56 void setReverseId(int id)
57 {
58 reverse_id_ = id;
59 }
60
61 int getReverseId() const
62 {
63 return reverse_id_;
64 }
65
51 std::set<const pronunciation*> getPronunciations() const 66 std::set<const pronunciation*> getPronunciations() const
52 { 67 {
53 return pronunciations_; 68 return pronunciations_;
@@ -62,6 +77,8 @@ namespace verbly {
62 const int complexity_; 77 const int complexity_;
63 const bool proper_; 78 const bool proper_;
64 const int length_; 79 const int length_;
80 const int anagram_set_id_;
81 int reverse_id_ = -1;
65 82
66 std::set<const pronunciation*> pronunciations_; 83 std::set<const pronunciation*> pronunciations_;
67 84