6 #ifndef __key_val_db_h__
7 #define __key_val_db_h__
14 using namespace FILEDB;
33 const K&
key()
const {
return key_;}
36 const unsigned short serialID (
void)
const {
return 456;}
39 BinaryBufferWriter bin;
41 output = bin.strPrimaryNode();
45 BinaryBufferReader bin(input);
56 static unsigned int hash (
const void* bytes,
unsigned int len) {
return 0;}
57 static int compare (
const FFDB_DBT* k1,
const FFDB_DBT* k2) {
return 0;}
81 const D&
data()
const {
return data_;}
84 const unsigned short serialID (
void)
const {
return 123;}
87 BinaryBufferWriter bin;
89 output = bin.strPrimaryNode();
93 BinaryBufferReader bin(input);
Primary include file for CHROMA library code.
Serializable value harness.
void readObject(const std::string &input)
const D & data() const
Getter.
SerialDBData(const D &d)
Constructor from data.
SerialDBData()
Default constructor.
const unsigned short serialID(void) const
void writeObject(std::string &output) const
Serializable key harness.
int hasCompareFunc(void) const
static unsigned int hash(const void *bytes, unsigned int len)
int hasHashFunc(void) const
SerialDBKey(const K &k)
Constructor from data.
static int compare(const FFDB_DBT *k1, const FFDB_DBT *k2)
void readObject(const std::string &input)
void writeObject(std::string &output) const
const unsigned short serialID(void) const
SerialDBKey()
Default constructor.
const K & key() const
Getter.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
Asqtad Staggered-Dirac operator.
static INTERNAL_PRECISION K