C++ Distributed Hash Table
Public Member Functions | List of all members
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 (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 612 of file value.h.


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