diff options
author | John Fultz <jfultz@wolfram.com> | 2015-10-11 18:19:20 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2015-10-11 18:19:20 -0500 |
commit | 6339dec22e2190fd341500206c80425593324bdc (patch) | |
tree | 56edb08f484d4c917289bb51e3e4765f524b3400 /quackleio/dawgfactory.h | |
parent | 69e3dcefb882c743b136df8e5c81b4182b135f6b (diff) |
Fix up lexicon dialog box checks.
Get enables and disables right, efficient computation
of word counts, etc.
Diffstat (limited to 'quackleio/dawgfactory.h')
-rw-r--r-- | quackleio/dawgfactory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quackleio/dawgfactory.h b/quackleio/dawgfactory.h index 8dd6e03..5872dc3 100644 --- a/quackleio/dawgfactory.h +++ b/quackleio/dawgfactory.h @@ -30,7 +30,8 @@ public: DawgFactory(const QString &alphabetFile); ~DawgFactory(); - int wordCount() const; + void computeWordCount() const; + int wordCount() const { return m_wordCount; }; string letterCountString() const; int nodeCount() const { return m_nodelist.size(); }; int encodableWords() const { return m_encodableWords; }; @@ -78,6 +79,7 @@ private: int m_unencodableWords; int m_duplicateWords; vector< Node* > m_nodelist; + mutable int m_wordCount; mutable vector<unsigned int> m_countsByLength; Quackle::AlphabetParameters *m_alphas; Node m_root; |