Serializable dht::Value filter.
More...
#include <value.h>
|
OPENDHT_PUBLIC friend std::ostream & | operator<< (std::ostream &s, const dht::Where &q) |
|
Serializable dht::Value filter.
This is container for a list of FieldValue instances. It describes a complete WHERE query for dht::Value.
Definition at line 796 of file value.h.
◆ Where()
◆ empty()
bool dht::Where::empty |
( |
| ) |
const |
|
inline |
◆ getFilter()
◆ id()
Where && dht::Where::id |
( |
Value::Id | id | ) |
|
|
inline |
Adds restriction on Value::Id based on the id argument.
- Parameters
-
- Returns
- the resulting Where instance.
Definition at line 810 of file value.h.
◆ msgpack_pack()
template<typename Packer >
void dht::Where::msgpack_pack |
( |
Packer & | pk | ) |
const |
|
inline |
◆ msgpack_unpack()
void dht::Where::msgpack_unpack |
( |
const msgpack::object & | o | ) |
|
|
inline |
◆ owner()
Adds restriction on Value::OwnerPk based on the owner_pk_hash argument.
- Parameters
-
owner_pk_hash | the owner public key fingerprint. |
- Returns
- the resulting Where instance.
Definition at line 838 of file value.h.
◆ seq()
Where && dht::Where::seq |
( |
uint16_t | seq_no | ) |
|
|
inline |
Adds restriction on Value::OwnerPk based on the owner_pk_hash argument.
- Parameters
-
owner_pk_hash | the owner public key fingerprint. |
- Returns
- the resulting Where instance.
Definition at line 852 of file value.h.
◆ toString()
std::string dht::Where::toString |
( |
| ) |
const |
|
inline |
◆ userType()
Where && dht::Where::userType |
( |
std::string_view | user_type | ) |
|
|
inline |
Adds restriction on Value::UserType based on the user_type argument.
- Parameters
-
- Returns
- the resulting Where instance.
Definition at line 866 of file value.h.
◆ valueType()
Where && dht::Where::valueType |
( |
ValueType::Id | type | ) |
|
|
inline |
Adds restriction on Value::ValueType based on the type argument.
- Parameters
-
- Returns
- the resulting Where instance.
Definition at line 824 of file value.h.
The documentation for this class was generated from the following file:
- /home/iurt/rpmbuild/BUILD/opendht-3.2.0/include/opendht/value.h