CCF
|
#include <tx.h>
Inherits ccf::kv::BaseTx.
Inherited by ccf::kv::Tx.
Public Member Functions | |
template<class M > | |
M::ReadOnlyHandle * | ro (M &m) |
template<class M > | |
M::ReadOnlyHandle * | ro (const std::string &map_name) |
BaseTx (AbstractStore *store_) | |
BaseTx (const BaseTx &that)=delete | |
![]() | |
BaseTx (AbstractStore *store_) | |
BaseTx (const BaseTx &that)=delete | |
BaseTx & | operator= (BaseTx &&other)=default |
virtual | ~BaseTx () |
std::optional< ccf::crypto::Sha256Hash > | get_root_at_read_version () |
Additional Inherited Members | |
![]() | |
void | retain_change_set (const std::string &map_name, std::unique_ptr< untyped::ChangeSet > &&change_set, const std::shared_ptr< AbstractMap > &abstract_map) |
void | retain_handle (const std::string &map_name, std::unique_ptr< AbstractHandle > &&handle) |
MapChanges | get_map_and_change_set_by_name (const std::string &map_name, bool track_deletes_on_missing_keys) |
std::list< AbstractHandle * > | get_possible_handles (const std::string &map_name) |
void | compacted_version_conflict (const std::string &map_name) |
template<class THandle > | |
THandle * | get_handle_by_name (const std::string &map_name, bool track_deletes_on_missing_keys) |
![]() | |
std::unique_ptr< PrivateImpl > | pimpl |
OrderedChanges | all_changes |
std::optional< ccf::crypto::Sha256Hash > | root_at_read_version = std::nullopt |
Used to create read-only handles for accessing a Map.
Acquiring a handle will create the map in the KV if it does not yet exist. The returned handles can view state written by previous transactions, and any additional modifications made in this transaction.
ccf::kv::BaseTx::BaseTx | ( | AbstractStore * | store_ | ) |
|
delete |
|
inline |
Get a read-only handle by map name. Map type must be specified as explicit template parameter.
map_name | Name of map |
|
inline |
Get a read-only handle from a map instance.
m | Map instance |