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

#include "query.hpp"

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

Public Types

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

virtual const QueryVariantTypeget () const =0
 
virtual const types::AccountIdTypecreatorAccountId () const =0
 
virtual types::CounterType queryCounter () const =0
 
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::Signable< Query >
virtual types::SignatureRangeType signatures () const =0
 
virtual bool addSignature (const crypto::Signed &signed_blob, const crypto::PublicKey &public_key)=0
 
virtual types::TimestampType createdTime () const =0
 
virtual const types::BlobTypepayload () const =0
 
virtual const types::BlobTypeblob () const =0
 
bool operator== (const Query &rhs) const override
 
bool equalsByValue (const Query &rhs) const
 
virtual const types::HashTypehash () const =0
 
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
 

Additional Inherited Members

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

Detailed Description

Class Query provides container with one of concrete query available in system. General note: this class is container for queries but not a base class.

Member Typedef Documentation

Member Function Documentation

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

Implemented in shared_model::proto::Query.

Here is the caller graph for this function:

virtual const QueryVariantType& shared_model::interface::Query::get ( ) const
pure virtual
Returns
reference to const variant with concrete command

Implemented in shared_model::proto::Query.

Here is the caller graph for this function:

bool shared_model::interface::Query::operator== ( const ModelType rhs) const
overridevirtual

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

Here is the call graph for this function:

virtual types::CounterType shared_model::interface::Query::queryCounter ( ) const
pure virtual

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

Returns
attached query counter

Implemented in shared_model::proto::Query.

Here is the caller graph for this function:

std::string shared_model::interface::Query::toString ( ) const
overridevirtual

Make string developer representation of object

Returns
string with internal state of object

Reimplemented from shared_model::interface::ModelPrimitive< Query >.

Here is the call graph for this function:


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