20 #ifndef RIPPLE_NODESTORE_NODEOBJECT_H_INCLUDED
21 #define RIPPLE_NODESTORE_NODEOBJECT_H_INCLUDED
23 #include <ripple/basics/Blob.h>
24 #include <ripple/basics/CountedObject.h>
25 #include <ripple/protocol/Protocol.h>
Tracks the number of instances of an object.
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.
static constexpr std::size_t keyBytes
uint256 const & getHash() const
Returns the hash of the data.
A simple object that the Ledger uses to store entries.
NodeObject(NodeObjectType type, Blob &&data, uint256 const &hash, PrivateAccess)