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

#include "proto_blocks_query.hpp"

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

Public Member Functions

template<typename BlocksQueryType >
 BlocksQuery (BlocksQueryType &&query)
 
 BlocksQuery (const BlocksQuery &o)
 
 BlocksQuery (BlocksQuery &&o) noexcept
 
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
 
- Public Member Functions inherited from shared_model::proto::CopyableProto< interface::BlocksQuery, iroha::protocol::BlocksQuery, BlocksQuery >
 CopyableProto (ProtoLoader &&ref)
 
const iroha::protocol::BlocksQuery & getTransport () const
 
- Public Member Functions inherited from shared_model::interface::BlocksQuery
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::Signable< BlocksQuery >
bool operator== (const BlocksQuery &rhs) const override
 
bool equalsByValue (const BlocksQuery &rhs) const
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< BlocksQuery >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< BlocksQuery > >
virtual ~Cloneable ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::proto::CopyableProto< interface::BlocksQuery, iroha::protocol::BlocksQuery, BlocksQuery >
using TransportType = iroha::protocol::BlocksQuery
 
- Public Types inherited from shared_model::interface::ModelPrimitive< BlocksQuery >
using ModelType = BlocksQuery
 
- Public Types inherited from Cloneable< ModelPrimitive< BlocksQuery > >
using base_type = ModelPrimitive< BlocksQuery >
 
- Protected Types inherited from shared_model::interface::Signable< BlocksQuery >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 
- Protected Member Functions inherited from shared_model::proto::CopyableProto< interface::BlocksQuery, iroha::protocol::BlocksQuery, BlocksQuery >
interface::BlocksQuery::ModelTypeclone () const overridefinal
 
- Static Protected Member Functions inherited from shared_model::interface::Signable< BlocksQuery >
static auto makeHash (const types::BlobType &payload)
 
- Protected Attributes inherited from shared_model::proto::CopyableProto< interface::BlocksQuery, iroha::protocol::BlocksQuery, BlocksQuery >
detail::ReferenceHolder< iroha::protocol::BlocksQuery > proto_
 

Constructor & Destructor Documentation

template<typename BlocksQueryType >
shared_model::proto::BlocksQuery::BlocksQuery ( BlocksQueryType &&  query)
explicit

Here is the call graph for this function:

shared_model::proto::BlocksQuery::BlocksQuery ( const BlocksQuery o)
shared_model::proto::BlocksQuery::BlocksQuery ( BlocksQuery &&  o)
noexcept

Member Function Documentation

bool shared_model::proto::BlocksQuery::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< BlocksQuery >.

Here is the call graph for this function:

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

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

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

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

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

Implements shared_model::interface::BlocksQuery.

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

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

interface::types::CounterType shared_model::proto::BlocksQuery::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::BlocksQuery.

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

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


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