1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

common/include/eoskeygen/core/dictionary.h: adding getWords() method.

This commit is contained in:
Henrik Hautakoski 2020-04-14 16:34:28 +02:00
parent bc614da0e8
commit 3ca4631bbe
2 changed files with 8 additions and 0 deletions

View file

@ -53,6 +53,9 @@ public :
// Clear all words from the dictionary.
void clear();
// Returns the list of words in the dictionary.
const std::set<std::string>& getWords() const;
// Returns true if word exists in the dictionary.
bool contains(const std::string& word) const;

View file

@ -79,6 +79,11 @@ void Dictionary::add(const Dictionary& dictionary)
);
}
const std::set<std::string>& Dictionary::getWords() const
{
return m_words;
}
void Dictionary::clear()
{
m_words.clear();