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

Public Member Functions

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

Public Attributes

TransportType proto_
 
ProtoQueryVariantType variant_
 
QueryVariantType ivariant_ {variant_}
 
interface::types::BlobType blob_ {makeBlob(proto_)}
 
interface::types::BlobType payload_ {makeBlob(proto_.payload())}
 
SignatureSetType< proto::Signature > signatures_
 
interface::types::HashType hash_ = makeHash(payload_)
 

Constructor & Destructor Documentation

◆ Impl() [1/2]

iroha::protocol::Query::Impl::Impl ( TransportType &&  ref)
inlineexplicit

◆ Impl() [2/2]

iroha::protocol::Query::Impl::Impl ( const TransportType ref)
inlineexplicit

Member Data Documentation

◆ blob_

interface::types::BlobType iroha::protocol::Query::Impl::blob_ {makeBlob(proto_)}

◆ hash_

interface::types::HashType iroha::protocol::Query::Impl::hash_ = makeHash(payload_)

◆ ivariant_

QueryVariantType iroha::protocol::Query::Impl::ivariant_ {variant_}

◆ payload_

interface::types::BlobType iroha::protocol::Query::Impl::payload_ {makeBlob(proto_.payload())}

◆ proto_

TransportType iroha::protocol::Query::Impl::proto_

◆ signatures_

SignatureSetType<proto::Signature> iroha::protocol::Query::Impl::signatures_
Initial value:
{[this] {
SignatureSetType<proto::Signature> set;
if (proto_.has_signature()) {
set.emplace(*proto_.mutable_signature());
}
return set;
}()}

◆ variant_

ProtoQueryVariantType iroha::protocol::Query::Impl::variant_
Initial value:
{[this]() -> decltype(variant_) {
auto &ar = proto_;
switch (ar.payload().query_case()) {
IROHA_BIND_TYPE(kGetAccount, GetAccount, ar);
IROHA_BIND_TYPE(kGetAccountAssets, GetAccountAssets, ar);
IROHA_BIND_TYPE(kGetAccountDetail, GetAccountDetail, ar);
kGetAccountAssetTransactions, GetAccountAssetTransactions, ar);
IROHA_BIND_TYPE(kGetSignatories, GetSignatories, ar);
IROHA_BIND_TYPE(kGetAccountTransactions, GetAccountTransactions, ar);
IROHA_BIND_TYPE(kGetTransactions, GetTransactions, ar);
IROHA_BIND_TYPE(kGetRoles, GetRoles, ar);
IROHA_BIND_TYPE(kGetAssetInfo, GetAssetInfo, ar);
IROHA_BIND_TYPE(kGetRolePermissions, GetRolePermissions, ar);
IROHA_BIND_TYPE(kGetPendingTransactions, GetPendingTransactions, ar);
IROHA_BIND_TYPE(kGetBlock, GetBlock, ar);
IROHA_BIND_TYPE(kGetPeers, GetPeers, ar);
IROHA_BIND_TYPE(kGetEngineReceipts, GetEngineReceipts, ar);
default:
case iroha::protocol::Query_Payload::QueryCase::QUERY_NOT_SET:
assert(!"Unexpected query case.");
};
}()}

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