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

#include "asset.hpp"

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

Public Member Functions

virtual const types::AccountIdTypeassetId () const =0
 
virtual const types::DomainIdTypedomainId () const =0
 
virtual types::PrecisionType precision () const =0
 
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Asset >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::interface::ModelPrimitive< Asset >
using ModelType = Asset
 

Detailed Description

Representation of valuable goods in the system

Member Function Documentation

◆ assetId()

virtual const types::AccountIdType& shared_model::interface::Asset::assetId ( ) const
pure virtual
Returns
Identity of asset

Implemented in shared_model::proto::Asset.

Here is the caller graph for this function:

◆ domainId()

virtual const types::DomainIdType& shared_model::interface::Asset::domainId ( ) const
pure virtual
Returns
Identity of domain

Implemented in shared_model::proto::Asset.

Here is the caller graph for this function:

◆ operator==()

bool shared_model::interface::Asset::operator== ( const ModelType rhs) const
inlineoverridevirtual

Checks equality of objects inside

Parameters
rhs- other wrapped value
Returns
true, if wrapped objects are same

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

Here is the call graph for this function:

◆ precision()

virtual types::PrecisionType shared_model::interface::Asset::precision ( ) const
pure virtual
Returns
Asset's fixed precision

Implemented in shared_model::proto::Asset.

Here is the caller graph for this function:

◆ toString()

std::string shared_model::interface::Asset::toString ( ) const
inlineoverridevirtual

Stringify the data.

Returns
the content of asset.

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

Here is the call graph for this function:

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