From e1fa4a088dd95caef22045f905a9d5d22b71bef0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 24 Jan 2017 21:50:39 -0500 Subject: Whitespace changes --- lib/lemma.h | 78 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'lib/lemma.h') diff --git a/lib/lemma.h b/lib/lemma.h index 8c8d1c1..407fa3c 100644 --- a/lib/lemma.h +++ b/lib/lemma.h @@ -13,110 +13,110 @@ struct sqlite3_stmt; namespace verbly { - + class database; - + class lemma { public: - + // Default constructor - + lemma() = default; - + // Construct from database - + lemma(const database& db, sqlite3_stmt* row); - + // Accessors - + operator bool() const { return valid_; } - + int getId() const { if (!valid_) { throw std::domain_error("Bad access to uninitialized lemma"); } - + return id_; } - + const form& getBaseForm() const; - + bool hasInflection(inflection category) const; - + const std::vector
& getInflections(inflection category) const; - + // Type info - + static const object objectType; - + static const std::list select; - + // Query fields - + static const field id; - + operator filter() const { if (!valid_) { throw std::domain_error("Bad access to uninitialized lemma"); } - + return (id == id_); } - + // Relationships to other objects - + static const field word; - + class inflection_field { public: - + inflection_field(inflection category) : category_(category) { } - + const inflection getCategory() const { return category_; } - + operator filter() const; - + private: - + const inflection category_; }; - + static const inflection_field form(inflection category) { return inflection_field(category); } - + friend filter operator%=(lemma::inflection_field check, filter joinCondition); - + private: - + void initializeForm(inflection category) const; - + bool valid_ = false; - + int id_; - + mutable std::map> forms_; - + const database* db_; - + static const field formJoin; static const field inflectionCategory; - + }; - + }; #endif /* end of include guard: LEMMA_H_0A180D30 */ -- cgit 1.4.1