hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::Query Class Referencefinal

#include "proto_query.hpp"

Inheritance diagram for shared_model::proto::Query:
Inheritance graph
Collaboration diagram for shared_model::proto::Query:
Collaboration graph

Public Types

using TransportType = iroha::protocol::Query
 
- Public Types inherited from shared_model::interface::Query
using QueryVariantType = wrap< GetAccount, GetSignatories, GetAccountTransactions, GetAccountAssetTransactions, GetTransactions, GetAccountAssets, GetAccountDetail, GetRoles, GetRolePermissions, GetAssetInfo, GetPendingTransactions, GetBlock, GetPeers >
 Type of variant, that handle concrete query. More...
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Query >
using ModelType = Query
 

Public Member Functions

 Query (const Query &o)
 
 Query (Query &&o) noexcept
 
 Query (const TransportType &ref)
 
 Query (TransportType &&ref)
 
 ~Query () override
 
const Query::QueryVariantTypeget () const override
 
const interface::types::AccountIdTypecreatorAccountId () const override
 
interface::types::CounterType queryCounter () const override
 
const interface::types::BlobTypeblob () const override
 
const interface::types::BlobTypepayload () const override
 
interface::types::SignatureRangeType signatures () const override
 
bool addSignature (const crypto::Signed &signed_blob, const crypto::PublicKey &public_key) override
 
const interface::types::HashTypehash () const override
 
interface::types::TimestampType createdTime () const override
 
const TransportTypegetTransport () const
 
- Public Member Functions inherited from shared_model::interface::Query
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::Signable< Query >
bool operator== (const Query &rhs) const override
 
bool equalsByValue (const Query &rhs) const
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Query >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

- Protected Types inherited from shared_model::interface::Signable< Query >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 
- Static Protected Member Functions inherited from shared_model::interface::Signable< Query >
static auto makeHash (const types::BlobType &payload)
 

Member Typedef Documentation

◆ TransportType

using shared_model::proto::Query::TransportType = iroha::protocol::Query

Constructor & Destructor Documentation

◆ Query() [1/4]

shared_model::proto::Query::Query ( const Query o)

◆ Query() [2/4]

shared_model::proto::Query::Query ( Query &&  o)
defaultnoexcept

◆ Query() [3/4]

shared_model::proto::Query::Query ( const TransportType ref)
explicit

◆ Query() [4/4]

shared_model::proto::Query::Query ( TransportType &&  ref)
explicit
Here is the call graph for this function:

◆ ~Query()

shared_model::proto::Query::~Query ( )
overridedefault
Here is the caller graph for this function:

Member Function Documentation

◆ addSignature()

bool shared_model::proto::Query::addSignature ( const crypto::Signed signed_blob,
const crypto::PublicKey public_key 
)
overridevirtual

Attach signature to object

Parameters
signature- signature object for insertion
Returns
true, if signature was added

Implements shared_model::interface::Signable< Query >.

Here is the call graph for this function:

◆ blob()

const interface::types::BlobType & shared_model::proto::Query::blob ( ) const
overridevirtual
Returns
blob representation of object include signatures

Implements shared_model::interface::Signable< Query >.

◆ createdTime()

interface::types::TimestampType shared_model::proto::Query::createdTime ( ) const
overridevirtual
Returns
time of creation

Implements shared_model::interface::Signable< Query >.

◆ creatorAccountId()

const interface::types::AccountIdType & shared_model::proto::Query::creatorAccountId ( ) const
overridevirtual
Returns
id of query creator

Implements shared_model::interface::Query.

◆ get()

const Query::QueryVariantType & shared_model::proto::Query::get ( ) const
overridevirtual
Returns
reference to const variant with concrete command

Implements shared_model::interface::Query.

◆ getTransport()

const Query::TransportType & shared_model::proto::Query::getTransport ( ) const

◆ hash()

const interface::types::HashType & shared_model::proto::Query::hash ( ) const
overridevirtual

◆ payload()

const interface::types::BlobType & shared_model::proto::Query::payload ( ) const
overridevirtual
Returns
object payload (everything except signatures)

Implements shared_model::interface::Signable< Query >.

◆ queryCounter()

interface::types::CounterType shared_model::proto::Query::queryCounter ( ) const
overridevirtual

Query counter - incremental variable reflect for number of sent to system queries plus 1. Required for preventing replay attacks.

Returns
attached query counter

Implements shared_model::interface::Query.

◆ signatures()

interface::types::SignatureRangeType shared_model::proto::Query::signatures ( ) const
overridevirtual
Returns
attached signatures

Implements shared_model::interface::Signable< Query >.


The documentation for this class was generated from the following files: