diff options
Diffstat (limited to 'generator/mood.h')
| -rw-r--r-- | generator/mood.h | 22 |
1 files changed, 11 insertions, 11 deletions
| diff --git a/generator/mood.h b/generator/mood.h index df5d28f..c36e5ee 100644 --- a/generator/mood.h +++ b/generator/mood.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | namespace cadence { | 6 | namespace cadence { |
| 7 | namespace generator { | 7 | namespace generator { |
| 8 | 8 | ||
| 9 | class mood { | 9 | class mood { |
| 10 | public: | 10 | public: |
| 11 | enum class type { | 11 | enum class type { |
| @@ -19,41 +19,41 @@ namespace cadence { | |||
| 19 | sad, | 19 | sad, |
| 20 | instrumental | 20 | instrumental |
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | // Constructor | 23 | // Constructor |
| 24 | 24 | ||
| 25 | mood(type t, double prob); | 25 | mood(type t, double prob); |
| 26 | 26 | ||
| 27 | // Accessors | 27 | // Accessors |
| 28 | 28 | ||
| 29 | type getType() const | 29 | type getType() const |
| 30 | { | 30 | { |
| 31 | return type_; | 31 | return type_; |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | double getProbability() const | 34 | double getProbability() const |
| 35 | { | 35 | { |
| 36 | return probability_; | 36 | return probability_; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | bool getPositive() const | 39 | bool getPositive() const |
| 40 | { | 40 | { |
| 41 | return positive_; | 41 | return positive_; |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | std::string getCategory() const | 44 | std::string getCategory() const |
| 45 | { | 45 | { |
| 46 | return category_; | 46 | return category_; |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | private: | 49 | private: |
| 50 | type type_; | 50 | type type_; |
| 51 | double probability_; | 51 | double probability_; |
| 52 | bool positive_; | 52 | bool positive_; |
| 53 | std::string category_; | 53 | std::string category_; |
| 54 | 54 | ||
| 55 | }; | 55 | }; |
| 56 | 56 | ||
| 57 | }; | 57 | }; |
| 58 | }; | 58 | }; |
| 59 | 59 | ||
