My Project 3.2.0
C++ Distributed Hash Table
|
An index for field values. More...
#include <value.h>
Public Member Functions | |
FieldValueIndex (const Value &v, const Select &s={}) | |
bool | containedIn (const FieldValueIndex &other) const |
void | msgpack_unpack_fields (const std::set< Value::Field > &fields, const msgpack::object &o, unsigned offset) |
Public Attributes | |
std::map< Value::Field, FieldValue > | index {} |
Friends | |
OPENDHT_PUBLIC friend std::ostream & | operator<< (std::ostream &os, const FieldValueIndex &fvi) |
An index for field values.
This structures is meant to manipulate a subset of fields normally contained in Value.
bool dht::FieldValueIndex::containedIn | ( | const FieldValueIndex & | other | ) | const |
Tells if all the fields of this are contained in the other FieldValueIndex with the same value.
other | The other FieldValueIndex instance. |
std::map<Value::Field, FieldValue> dht::FieldValueIndex::index {} |