hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::TransactionResponse::Impl Struct Reference
Collaboration diagram for shared_model::proto::TransactionResponse::Impl:
Collaboration graph

Public Member Functions

 Impl (TransportType &&ref)
 
 Impl (const TransportType &ref)
 

Public Attributes

TransportType proto_
 
const ProtoResponseVariantType variant_
 
const ResponseVariantType ivariant_ {variant_}
 
const crypto::Hash hash_ = crypto::Hash::fromHexString(proto_.tx_hash())
 

Constructor & Destructor Documentation

shared_model::proto::TransactionResponse::Impl::Impl ( TransportType &&  ref)
inlineexplicit
shared_model::proto::TransactionResponse::Impl::Impl ( const TransportType ref)
inlineexplicit

Member Data Documentation

const crypto::Hash shared_model::proto::TransactionResponse::Impl::hash_ = crypto::Hash::fromHexString(proto_.tx_hash())
const ResponseVariantType shared_model::proto::TransactionResponse::Impl::ivariant_ {variant_}
TransportType shared_model::proto::TransactionResponse::Impl::proto_
const ProtoResponseVariantType shared_model::proto::TransactionResponse::Impl::variant_
Initial value:
{[this] {
const auto &ar = proto_;
unsigned which = ar.GetDescriptor()
->FindFieldByName("tx_status")
->enum_type()
->FindValueByNumber(ar.tx_status())
->index();
constexpr unsigned last =
boost::mpl::size<ProtoResponseListType>::type::value - 1;
template load<ProtoResponseVariantType>(
std::forward<decltype(ar)>(ar), which > last ? last : which);
}()}

The documentation for this struct was generated from the following file: