From 0ba0fff06fb679f5cabedd52257fc0c38a600279 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 24 Jan 2017 21:46:18 -0500 Subject: Added word::getGroup --- lib/word.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/word.h') diff --git a/lib/word.h b/lib/word.h index f71dad9..7b3c0f7 100644 --- a/lib/word.h +++ b/lib/word.h @@ -97,11 +97,23 @@ namespace verbly { const lemma& getLemma() const; + bool hasGroup() const + { + if (!valid_) + { + throw std::domain_error("Bad access to uninitialized word"); + } + + return hasGroup_; + } + + const group& getGroup() const; + // Convenience accessors std::string getBaseForm() const; - std::list getInflections(inflection infl) const; + std::vector getInflections(inflection infl) const; // Type info -- cgit 1.4.1