|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
RAII wrapper for the URI query list used by uriparser. More...
#include <URIQueryList.hpp>
Construction and Destruction | |
| URIQueryList ()=default | |
| Default constructor. More... | |
| virtual | ~URIQueryList () |
| Destructor clearing the underlying query list if necessary. More... | |
Getters | |
| UriQueryListA * | get () noexcept |
| Gets a pointer to the underlying query list. More... | |
| const UriQueryListA * | getc () const noexcept |
| Gets a const pointer to the underlying query list. More... | |
| UriQueryListA ** | getPtr () noexcept |
| Gets a pointer to the pointer containing the address of the underlying query list. More... | |
| bool | valid () const noexcept |
| Checks whether the underlying query list is valid. More... | |
Cleanup | |
| void | clear () noexcept |
| Clears the underlying query list if necessary. More... | |
Copy and Move | |
| URIQueryList (URIQueryList &)=delete | |
| Deleted copy constructor. More... | |
| URIQueryList & | operator= (URIQueryList &)=delete |
| Deleted copy assignment operator. More... | |
| URIQueryList (URIQueryList &&other) noexcept | |
| Move constructor. More... | |
| URIQueryList & | operator= (URIQueryList &&other) noexcept |
| Move assignment operator. More... | |
RAII wrapper for the URI query list used by uriparser.
Accepts an externally created URI query list and automatically frees it on destruction, avoiding memory leaks.
At the moment, this class is used exclusively by Parsing::URI::getSubUrl().
For more information about the uriparser API, see its GitHub repository.
|
default |
Default constructor.
|
inlinevirtual |
Destructor clearing the underlying query list if necessary.
References clear().
|
delete |
Deleted copy constructor.
|
inlinenoexcept |
Move constructor.
Moves the query list from the specified location into this instance of the class.
| other | The query list to move from. |
|
inlinenoexcept |
Clears the underlying query list if necessary.
Referenced by operator=(), and ~URIQueryList().
|
inlinenoexcept |
Gets a pointer to the underlying query list.
nullptr if no query list has been assigned or the query list has already been freed.
|
inlinenoexcept |
Gets a const pointer to the underlying query list.
nullptr if no query list has been assigned or the query list has already been freed. Referenced by crawlservpp::Parsing::URI::getSubUri().
|
inlinenoexcept |
Gets a pointer to the pointer containing the address of the underlying query list.
nullptr if no query list has been assigned or the query list has already been freed. Referenced by crawlservpp::Parsing::URI::getSubUri().
|
delete |
Deleted copy assignment operator.
|
inlinenoexcept |
Move assignment operator.
Moves the query list from the specified location into this instance of the class.
| other | The query list to move from. |
References clear().
|
inlinenoexcept |
Checks whether the underlying query list is valid.