20 : in_transaction_(false)
31 std::string key(name.
root_);
34 auto pfc = std::make_unique<persist_file_context>(key);
36 std::tie(iter, std::ignore) =
contexts_.emplace(key, std::move(pfc));
38 auto& ret = iter->second;
39 if (ret->get_node() != ns)
47 for (context_map::reference ctx :
contexts_) {
48 result &= ctx.second->start_transaction();
57 for (context_map::reference ctx :
contexts_) {
58 result &= ctx.second->end_transaction();
67 for (context_map::reference ctx :
contexts_) {
68 result &= ctx.second->cancel_transaction();
persist_context & get_context(const std::string &ns)
virtual ~persist_manager()
bool cancel_transaction()
std::string::const_iterator iterator