My Project 3.2.0
C++ Distributed Hash Table
Loading...
Searching...
No Matches
dht::FieldValue Class Reference

Describes a value filter. More...

#include <value.h>

Public Member Functions

 FieldValue (Value::Field f, uint64_t int_value)
 
 FieldValue (Value::Field f, InfoHash hash_value)
 
 FieldValue (Value::Field f, Blob blob_value)
 
bool operator== (const FieldValue &fd) const
 
Value::Field getField () const
 
uint64_t getInt () const
 
InfoHash getHash () const
 
Blob getBlob () const
 
template<typename Packer>
void msgpack_pack (Packer &p) const
 
void msgpack_unpack (const msgpack::object &msg)
 
Value::Filter getLocalFilter () const
 

Detailed Description

Describes a value filter.

This structure holds the value for a specified field. It's type can either be uint64_t, InfoHash or Blob.

Definition at line 657 of file value.h.

Constructor & Destructor Documentation

◆ FieldValue() [1/4]

dht::FieldValue::FieldValue ( )
inline

Definition at line 659 of file value.h.

◆ FieldValue() [2/4]

dht::FieldValue::FieldValue ( Value::Field f,
uint64_t int_value )
inline

Definition at line 660 of file value.h.

◆ FieldValue() [3/4]

dht::FieldValue::FieldValue ( Value::Field f,
InfoHash hash_value )
inline

Definition at line 661 of file value.h.

◆ FieldValue() [4/4]

dht::FieldValue::FieldValue ( Value::Field f,
Blob blob_value )
inline

Definition at line 662 of file value.h.

Member Function Documentation

◆ getBlob()

Blob dht::FieldValue::getBlob ( ) const
inline

Definition at line 670 of file value.h.

◆ getField()

Value::Field dht::FieldValue::getField ( ) const
inline

Definition at line 667 of file value.h.

◆ getHash()

InfoHash dht::FieldValue::getHash ( ) const
inline

Definition at line 669 of file value.h.

◆ getInt()

uint64_t dht::FieldValue::getInt ( ) const
inline

Definition at line 668 of file value.h.

◆ msgpack_pack()

template<typename Packer>
void dht::FieldValue::msgpack_pack ( Packer & p) const
inline

Definition at line 673 of file value.h.

◆ msgpack_unpack()

void dht::FieldValue::msgpack_unpack ( const msgpack::object & msg)
inline

Definition at line 695 of file value.h.


The documentation for this class was generated from the following file: