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:
parent
bc614da0e8
commit
3ca4631bbe
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue