20 #include <ripple/nodestore/NodeObject.h>
32 : mType(type), mHash(hash), mData(
std::move(data))
39 return std::make_shared<NodeObject>(
NodeObjectType
The types of node objects.
static std::shared_ptr< NodeObject > createObject(NodeObjectType type, Blob &&data, uint256 const &hash)
Create an object from fields.
Blob const & getData() const
Returns the underlying data.
NodeObjectType getType() const
Returns the type of this object.
const NodeObjectType mType
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
uint256 const & getHash() const
Returns the hash of the data.
NodeObject(NodeObjectType type, Blob &&data, uint256 const &hash, PrivateAccess)