CCF
Loading...
Searching...
No Matches
endpoint_context_impl.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
6#include "kv/committable_tx.h"
7
8namespace ccf
9{
10 // Implementation of EndpointContext, private to the framework (not visible
11 // to user apps)
13 {
14 std::unique_ptr<ccf::kv::CommittableTx> owned_tx = nullptr;
15
17 const std::shared_ptr<ccf::RpcContext>& r,
18 std::unique_ptr<ccf::kv::CommittableTx> t) :
19 ccf::endpoints::EndpointContext(r, *t),
20 owned_tx(std::move(t))
21 {}
22 };
23}
Definition app_interface.h:14
STL namespace.
Definition endpoint_context_impl.h:13
std::unique_ptr< ccf::kv::CommittableTx > owned_tx
Definition endpoint_context_impl.h:14
EndpointContextImpl(const std::shared_ptr< ccf::RpcContext > &r, std::unique_ptr< ccf::kv::CommittableTx > t)
Definition endpoint_context_impl.h:16
Definition endpoint_context.h:55
EndpointContext(const std::shared_ptr< ccf::RpcContext > &r, ccf::kv::Tx &t)
Definition endpoint_context.h:56