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 >
 Type of variant, that handle concrete query. More...
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Query >
using ModelType = Query
 
- Public Types inherited from Cloneable< ModelPrimitive< Query > >
using base_type = ModelPrimitive< 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
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< Query > >
virtual ~Cloneable ()=default
 

Protected Member Functions

Queryclone () const override
 

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

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

Constructor & Destructor Documentation

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

Here is the caller graph for this function:

shared_model::proto::Query::Query ( Query &&  o)
defaultnoexcept
shared_model::proto::Query::Query ( const TransportType ref)
explicit
shared_model::proto::Query::Query ( TransportType &&  ref)
explicit

Here is the call graph for this function:

shared_model::proto::Query::~Query ( )
overridedefault

Here is the caller graph for this function:

Member Function Documentation

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:

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

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

Query * shared_model::proto::Query::clone ( ) const
overrideprotectedvirtual

Polymorphic clone constructor. Method guarantees deep-copy.

Returns
pointer to cloned object

Implements Cloneable< ModelPrimitive< Query > >.

Here is the call graph for this function:

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

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

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

Implements shared_model::interface::Query.

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

Implements shared_model::interface::Query.

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

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

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.

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: