2015-02-25 22:30:48 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef MESSMER_BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATAINNERNODE_CHILDENTRY_H_
|
|
|
|
#define MESSMER_BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATAINNERNODE_CHILDENTRY_H_
|
|
|
|
|
|
|
|
#include <messmer/cpp-utils/macros.h>
|
|
|
|
|
|
|
|
namespace blobstore{
|
|
|
|
namespace onblocks{
|
|
|
|
namespace datanodestore{
|
|
|
|
|
2015-11-27 14:06:48 +01:00
|
|
|
struct DataInnerNode_ChildEntry final {
|
2015-02-25 22:30:48 +01:00
|
|
|
public:
|
|
|
|
blockstore::Key key() const {
|
|
|
|
return blockstore::Key::FromBinary(_keydata);
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
void setKey(const blockstore::Key &key) {
|
|
|
|
key.ToBinary(_keydata);
|
|
|
|
}
|
|
|
|
friend class DataInnerNode;
|
2015-04-09 20:07:21 +02:00
|
|
|
uint8_t _keydata[blockstore::Key::BINARY_LENGTH];
|
2015-11-27 14:06:48 +01:00
|
|
|
|
2015-02-25 22:30:48 +01:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(DataInnerNode_ChildEntry);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|