1#ifndef XRPL_NODESTORE_NODEOBJECT_H_INCLUDED
2#define XRPL_NODESTORE_NODEOBJECT_H_INCLUDED
4#include <xrpl/basics/Blob.h>
5#include <xrpl/basics/CountedObject.h>
6#include <xrpl/basics/base_uint.h>
Tracks the number of instances of an object.
A simple object that the Ledger uses to store entries.
static constexpr std::size_t keyBytes
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.
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.