MVault 0.0.1
|
A class for requests to Vault. More...
#include <VaultRequest.h>
Public Member Functions | |
template<class T > | |
VaultRequest (const std::string &key, const T &keyValue, std::function< bool(const VaultRecordRef &)> requestPredicat=DefaultRequestPredicat) | |
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 |
mvlt::VaultRequest< Type >::VaultRequest | ( | const std::string & | key, |
const T & | keyValue, | ||
std::function< bool(const VaultRecordRef &)> | requestPredicat = DefaultRequestPredicat |
||
) |
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 |
[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. |
void mvlt::VaultRequest< Type >::Request | ( | Vault * | vlt, |
std::unordered_set< VaultRecord * > & | vaultRecords | ||
) | const |