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

#include "proto_blocks_query.hpp"

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

Public Types

using TransportType = iroha::protocol::Query
 
using TransportType = iroha::protocol::Transaction
 
- Public Types inherited from shared_model::interface::Transaction
using CommandsType = boost::any_range< Command, boost::random_access_traversal_tag, const Command & >
 Type of ordered collection of commands. More...
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Transaction >
using ModelType = Transaction
 
- Public Types inherited from Cloneable< ModelPrimitive< Transaction > >
using base_type = ModelPrimitive< Transaction >
 
- Public Types inherited from shared_model::proto::CopyableProto< interface::QueryPayloadMeta, iroha::protocol::QueryPayloadMeta, QueryPayloadMeta >
using TransportType = iroha::protocol::QueryPayloadMeta
 
- Public Types inherited from shared_model::interface::ModelPrimitive< QueryPayloadMeta >
using ModelType = QueryPayloadMeta
 
- Public Types inherited from Cloneable< ModelPrimitive< QueryPayloadMeta > >
using base_type = ModelPrimitive< QueryPayloadMeta >
 
- 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 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 >
 

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
 
interface::types::TimestampType createdTime () const override
 
 Query (const Query &o)
 
 Query (Query &&o) noexcept
 
 Query (const TransportType &ref)
 
 Query (TransportType &&ref)
 
 ~Query () override
 
const Query::QueryVariantType & get () 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
 
interface::types::TimestampType createdTime () const override
 
const TransportTypegetTransport () const
 
template<typename QueryPayloadMetaType >
 QueryPayloadMeta (QueryPayloadMetaType &&query)
 
 QueryPayloadMeta (const QueryPayloadMeta &o)
 
 QueryPayloadMeta (QueryPayloadMeta &&o) noexcept
 
const interface::types::AccountIdTypecreatorAccountId () const override
 
interface::types::CounterType queryCounter () const override
 
interface::types::TimestampType createdTime () const override
 
 Transaction (const TransportType &transaction)
 
 Transaction (TransportType &&transaction)
 
 Transaction (const Transaction &transaction)
 
 Transaction (Transaction &&o) noexcept
 
 ~Transaction () override
 
const interface::types::AccountIdTypecreatorAccountId () const override
 
Transaction::CommandsType commands () const override
 
const interface::types::BlobTypeblob () const override
 
const interface::types::BlobTypepayload () const override
 
const interface::types::BlobTypereducedPayload () const override
 
interface::types::SignatureRangeType signatures () const override
 
const interface::types::HashTypereducedHash () const override
 
bool addSignature (const crypto::Signed &signed_blob, const crypto::PublicKey &public_key) override
 
const TransportTypegetTransport () const
 
interface::types::TimestampType createdTime () const override
 
interface::types::QuorumType quorum () const override
 
boost::optional< std::shared_ptr< interface::BatchMeta > > batchMeta () const override
 
- Public Member Functions inherited from shared_model::interface::Transaction
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::Signable< Transaction >
bool operator== (const Transaction &rhs) const override
 
bool equalsByValue (const Transaction &rhs) const
 
virtual const types::HashTypehash () const
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Transaction >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< Transaction > >
virtual ~Cloneable ()=default
 
- Public Member Functions inherited from shared_model::proto::CopyableProto< interface::QueryPayloadMeta, iroha::protocol::QueryPayloadMeta, QueryPayloadMeta >
 CopyableProto (ProtoLoader &&ref)
 
const iroha::protocol::QueryPayloadMeta & getTransport () const
 
- Public Member Functions inherited from shared_model::interface::QueryPayloadMeta
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< QueryPayloadMeta >
virtual std::string toString () const
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< QueryPayloadMeta > >
virtual ~Cloneable ()=default
 
- 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
 
virtual const types::HashTypehash () 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
 
- 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
 
virtual const types::HashTypehash () 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
 

Protected Member Functions

Queryclone () const override
 
Transaction::ModelType * clone () const override
 
- Protected Member Functions inherited from shared_model::proto::CopyableProto< interface::QueryPayloadMeta, iroha::protocol::QueryPayloadMeta, QueryPayloadMeta >
interface::QueryPayloadMeta::ModelTypeclone () const overridefinal
 
- Protected Member Functions inherited from shared_model::proto::CopyableProto< interface::BlocksQuery, iroha::protocol::BlocksQuery, BlocksQuery >
interface::BlocksQuery::ModelTypeclone () const overridefinal
 

Additional Inherited Members

- Protected Types inherited from shared_model::interface::Signable< Transaction >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 
- Protected Types inherited from shared_model::interface::Signable< Query >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 
- Protected Types inherited from shared_model::interface::Signable< BlocksQuery >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 
- Protected Attributes inherited from shared_model::proto::CopyableProto< interface::QueryPayloadMeta, iroha::protocol::QueryPayloadMeta, QueryPayloadMeta >
detail::ReferenceHolder< iroha::protocol::QueryPayloadMeta > proto_
 
- Protected Attributes inherited from shared_model::proto::CopyableProto< interface::BlocksQuery, iroha::protocol::BlocksQuery, BlocksQuery >
detail::ReferenceHolder< iroha::protocol::BlocksQuery > proto_
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

shared_model::proto::FINAL::~Query ( )
override
shared_model::proto::FINAL::~Transaction ( )
override

Member Function Documentation

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

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

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

boost::optional<std::shared_ptr<interface::BatchMeta> > shared_model::proto::FINAL::batchMeta ( ) const
overridevirtual
const interface::types::BlobType& shared_model::proto::FINAL::blob ( ) const
overridevirtual
Returns
blob representation of object include signatures

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

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

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

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

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

template<typename BlocksQueryType >
shared_model::proto::FINAL::BlocksQuery ( BlocksQueryType &&  query)
explicit
shared_model::proto::FINAL::BlocksQuery ( const BlocksQuery &  o)
shared_model::proto::FINAL::BlocksQuery ( BlocksQuery &&  o)
noexcept
Query* shared_model::proto::FINAL::clone ( ) const
overrideprotectedvirtual

Polymorphic clone constructor. Method guarantees deep-copy.

Returns
pointer to cloned object

Implements Cloneable< ModelPrimitive< Query > >.

Here is the caller graph for this function:

Transaction::ModelType* shared_model::proto::FINAL::clone ( ) const
overrideprotectedvirtual

Polymorphic clone constructor. Method guarantees deep-copy.

Returns
pointer to cloned object

Implements Cloneable< ModelPrimitive< Query > >.

Here is the caller graph for this function:

Transaction::CommandsType shared_model::proto::FINAL::commands ( ) const
overridevirtual
Returns
attached commands

Implements shared_model::interface::Transaction.

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

Implements shared_model::interface::QueryPayloadMeta.

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

Implements shared_model::interface::QueryPayloadMeta.

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

Implements shared_model::interface::QueryPayloadMeta.

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

Implements shared_model::interface::QueryPayloadMeta.

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

Implements shared_model::interface::Query.

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

Implements shared_model::interface::Query.

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

Implements shared_model::interface::Query.

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

Implements shared_model::interface::Query.

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

Implements shared_model::interface::Query.

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

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

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

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

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

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

shared_model::proto::FINAL::Query ( const Query &  o)
shared_model::proto::FINAL::Query ( Query &&  o)
noexcept
shared_model::proto::FINAL::Query ( const TransportType ref)
explicit
shared_model::proto::FINAL::Query ( TransportType &&  ref)
explicit
interface::types::CounterType shared_model::proto::FINAL::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::CounterType shared_model::proto::FINAL::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::CounterType shared_model::proto::FINAL::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.

template<typename QueryPayloadMetaType >
shared_model::proto::FINAL::QueryPayloadMeta ( QueryPayloadMetaType &&  query)
explicit
shared_model::proto::FINAL::QueryPayloadMeta ( const QueryPayloadMeta &  o)
shared_model::proto::FINAL::QueryPayloadMeta ( QueryPayloadMeta &&  o)
noexcept
interface::types::QuorumType shared_model::proto::FINAL::quorum ( ) const
overridevirtual
Returns
quorum of transaction

Implements shared_model::interface::Transaction.

const interface::types::HashType& shared_model::proto::FINAL::reducedHash ( ) const
overridevirtual
Returns
hash of reduced payload

Implements shared_model::interface::Transaction.

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

Implements shared_model::interface::Transaction.

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

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

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

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

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

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

shared_model::proto::FINAL::Transaction ( const TransportType transaction)
explicit
shared_model::proto::FINAL::Transaction ( TransportType &&  transaction)
explicit
shared_model::proto::FINAL::Transaction ( const Transaction &  transaction)
shared_model::proto::FINAL::Transaction ( Transaction &&  o)
noexcept

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