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