crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
RAII wrapper for aspell
word lists.
More...
#include <AspellList.hpp>
Public Member Functions | |
MAIN_EXCEPTION_CLASS () | |
Class for aspell word list-specific exceptions. More... | |
Construction and Destruction | |
AspellList (const AspellWordList *source) | |
Constructor creating a new word list. More... | |
virtual | ~AspellList () |
Destructor deleting the word list, if necessary. More... | |
Getters | |
bool | valid () const |
Gets whether the word list is valid. More... | |
List Iteration | |
bool | next (std::string &nextTo) |
Checks for the next list element. More... | |
Cleanup | |
void | clear () |
Deletes the word list, if necessary. More... | |
Copy and Move | |
AspellList (const AspellList &other) | |
Copy constructor. More... | |
AspellList (AspellList &&other) noexcept | |
Move constructor. More... | |
AspellList & | operator= (const AspellList &other) |
Copy assignment operator. More... | |
AspellList & | operator= (AspellList &&other) noexcept |
Move assignment operator. More... | |
RAII wrapper for aspell
word lists.
Creates the word list on construction and deletes it on destruction, if still necessary, avoiding memory leaks.
|
inlineexplicit |
Constructor creating a new word list.
source | The source of the word list, e.g. as returned by aspell_speller_suggest . |
|
inlinevirtual |
|
inline |
Copy constructor.
Creates a copy of the underlying word list in the given instance, saving it in this instance.
If the other word list is invalid, the current instance will also be invalid.
other | The word list to copy from. |
|
inlinenoexcept |
Move constructor.
Moves the word list from the specified location into this instance of the class.
other | The word list to move from. |
|
inline |
Deletes the word list, if necessary.
Referenced by operator=(), and ~AspellList().
crawlservpp::Wrapper::AspellList::MAIN_EXCEPTION_CLASS | ( | ) |
Class for aspell
word list-specific exceptions.
|
inline |
Checks for the next list element.
nextTo | Reference to a string to which the next list element will be written, if available. |
nextTo
. False otherwise. Referenced by crawlservpp::Wrapper::AspellChecker::check().
|
inline |
Copy assignment operator.
Clears the existing word list if necessary and creates a copy of the underlying word list in the given instance, saving it in this instance.
other | The word list to copy from. |
*this
). References clear().
|
inlinenoexcept |
Move assignment operator.
Moves the word list from the specified location into this instance of the class.
other | The word list to move from. |
*this
).References clear().
|
inline |
Gets whether the word list is valid.