From e1fa4a088dd95caef22045f905a9d5d22b71bef0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 24 Jan 2017 21:50:39 -0500 Subject: Whitespace changes --- generator/part.h | 74 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'generator/part.h') diff --git a/generator/part.h b/generator/part.h index 86d5d57..b010f62 100644 --- a/generator/part.h +++ b/generator/part.h @@ -7,7 +7,7 @@ namespace verbly { namespace generator { - + class part { public: enum class type { @@ -19,78 +19,78 @@ namespace verbly { adverb = 4, literal = 5 }; - + // Static factories - + static part createNounPhrase(std::string role, selrestr selrestrs, std::set synrestrs); - + static part createVerb(); - + static part createPreposition(std::set choices, bool literal); - + static part createAdjective(); - + static part createAdverb(); - + static part createLiteral(std::string value); - + // Copy and move constructors - + part(const part& other); - + part(part&& other); - + // Assignment - + part& operator=(part other); - + // Swap - + friend void swap(part& first, part& second); - + // Destructor - + ~part(); - + // General accessors - + type getType() const { return type_; } - + // Noun phrase accessors - + std::string getNounRole() const; - + selrestr getNounSelrestrs() const; - + std::set getNounSynrestrs() const; - + // Preposition accessors - + std::set getPrepositionChoices() const; - + bool isPrepositionLiteral() const; - + // Literal accessors - + std::string getLiteralValue() const; - + private: - + // Private constructors - + part() { } - + part(type t) : type_(t) { } - + // Data - + union { struct { std::string role; @@ -103,11 +103,11 @@ namespace verbly { } preposition_; std::string literal_; }; - + type type_ = type::invalid; - + }; - + }; }; -- cgit 1.4.1