32 #ifndef WRAPPER_URIQUERYLIST_HPP_ 33 #define WRAPPER_URIQUERYLIST_HPP_ 35 #include <uriparser/Uri.h> 70 [[nodiscard]] UriQueryListA *
get() noexcept;
71 [[nodiscard]]
const UriQueryListA *
getc()
const noexcept;
72 [[nodiscard]] UriQueryListA **
getPtr() noexcept;
73 [[nodiscard]]
bool valid()
const noexcept;
79 void clear() noexcept;
100 UriQueryListA * ptr{
nullptr};
156 return this->ptr !=
nullptr;
161 if(this->ptr !=
nullptr) {
162 uriFreeQueryListA(this->ptr);
207 this->ptr = other.ptr;
UriQueryListA * get() noexcept
Gets a pointer to the underlying query list.
Definition: URIQueryList.hpp:126
bool valid() const noexcept
Checks whether the underlying query list is valid.
Definition: URIQueryList.hpp:155
URIQueryList()=default
Default constructor.
UriQueryListA ** getPtr() noexcept
Gets a pointer to the pointer containing the address of the underlying query list.
Definition: URIQueryList.hpp:147
const UriQueryListA * getc() const noexcept
Gets a const pointer to the underlying query list.
Definition: URIQueryList.hpp:136
virtual ~URIQueryList()
Destructor clearing the underlying query list if necessary.
Definition: URIQueryList.hpp:112
Namespace for RAII wrappers and Wrapper::Database.
Definition: Database.hpp:109
void clear() noexcept
Clears the underlying query list if necessary.
Definition: URIQueryList.hpp:160
URIQueryList & operator=(URIQueryList &)=delete
Deleted copy assignment operator.
RAII wrapper for the URI query list used by uriparser.
Definition: URIQueryList.hpp:56