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

#include "block_query_response.hpp"

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

Public Types

using QueryResponseVariantType = w< BlockResponse, BlockErrorResponse >
 Type of container with all concrete query response. More...
using QueryResponseListType = QueryResponseVariantType::types
 Type of all available query responses. More...
- Public Types inherited from shared_model::interface::ModelPrimitive< BlockQueryResponse >
using ModelType = BlockQueryResponse

Public Member Functions

virtual const QueryResponseVariantTypeget () const =0
std::string toString () const override
bool operator== (const ModelType &rhs) const override
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< BlockQueryResponse >
virtual bool operator== (const ModelType &rhs) const=0
virtual bool operator!= (const ModelType &rhs) const
virtual ~ModelPrimitive ()=default

Detailed Description

Class BlockQueryResponse(qr) provides container with concrete block query responses available in the system. General note: this class is container for QRs but not a base class.

Member Typedef Documentation

◆ QueryResponseListType

Type of all available query responses.

◆ QueryResponseVariantType

Type of container with all concrete query response.

Member Function Documentation

◆ get()

virtual const QueryResponseVariantType& shared_model::interface::BlockQueryResponse::get ( ) const
pure virtual
reference to const variant with concrete qr

Implemented in shared_model::proto::BlockQueryResponse.

◆ operator==()

bool shared_model::interface::BlockQueryResponse::operator== ( const ModelType rhs) const

◆ toString()

std::string shared_model::interface::BlockQueryResponse::toString ( ) const

Make string developer representation of object

string with internal state of object

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

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