|
MVault 1.0.0
Simple c++ database
|
A class for requests to Vault. More...
#include <VaultRequest.h>
Public Member Functions | |
| VaultRequest () noexcept=default | |
| Default construcor. | |
| VaultRequest (const VaultRequest< Type > &other) noexcept=default | |
| Copy constructor. | |
| VaultRequest (VaultRequest< Type > &&other) noexcept=default | |
| Move constructor. | |
| VaultRequest & | operator= (const VaultRequest< Type > &other) noexcept=default |
| Assignment operator. | |
| VaultRequest & | operator= (VaultRequest< Type > &&other) noexcept=default |
| Move assignment operator. | |
| template<class T > | |
| VaultRequest (const std::string &key, const T &keyValue, const std::function< bool(const VaultRecordRef &ref)> &requestPredicat=DefaultRequestPredicat) noexcept | |
| Request constructor. | |
| template<VaultRequestType RequestType1, VaultRequestType RequestType2> | |
| VaultRequest (const VaultRequest< RequestType1 > &request1, const VaultRequest< RequestType2 > &request2) noexcept | |
| Request constructor. | |
| void | Request (Vault *vlt, std::unordered_set< VaultRecord * > &vaultRecords) const |
| Function for requesting data from Vault. | |
| ~VaultRequest () noexcept | |
| Default destructor. | |
Friends | |
| template<VaultRequestType TType> | |
| class | VaultRequest |
| Making the all VaultRequest templates friendly. | |
| template<VaultRequestType TType> | |
| VaultRequest | operator&& (const VaultRequest &lhs, const VaultRequest &rhs) noexcept |
| Friend operator&&. | |
| template<VaultRequestType TType> | |
| VaultRequest | operator|| (const VaultRequest &lhs, const VaultRequest &rhs) noexcept |
| Friend operator||. | |
A class for requests to Vault.
| <VaultRequestType> | type of the request |
|
defaultnoexcept |
Copy constructor.
| [in] | other | object to copy |
|
defaultnoexcept |
Move constructor.
| [in] | other | object to move |
|
noexcept |
Request constructor.
| <T> | Any type of data except c-arrays |
| [in] | key | requested key |
| [in] | keyValue | requested data |
| [in] | requestPredicat | A function that accepts VaultRecordRef and decides whether to add an record to the request. When the function returns true, the record is added, and when false is not added. |
|
noexcept |
Request constructor.
| <RequestType1> | First request type |
| <RequestType2> | Second request type |
| [in] | request1 | first request |
| [in] | request2 | second request |
|
defaultnoexcept |
Assignment operator.
| [in] | other | object to copy |
|
defaultnoexcept |
Move assignment operator.
| [in] | other | object to move |
| void mvlt::VaultRequest< Type >::Request | ( | Vault * | vlt, |
| std::unordered_set< VaultRecord * > & | vaultRecords | ||
| ) | const |