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

#include "asset.hpp"

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

Public Member Functions

template<typename AssetType >
 Asset (AssetType &&account)
 
 Asset (const Asset &o)
 
 Asset (Asset &&o) noexcept
 
const interface::types::AssetIdTypeassetId () const override
 
const interface::types::DomainIdTypedomainId () const override
 
interface::types::PrecisionType precision () const override
 
- Public Member Functions inherited from shared_model::proto::TrivialProto< interface::Asset, iroha::protocol::Asset >
 TrivialProto (ProtoLoader &&ref)
 
const iroha::protocol::Asset & getTransport () const
 
- Public Member Functions inherited from shared_model::interface::Asset
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::proto::TrivialProto< interface::Asset, iroha::protocol::Asset >
using TransportType = iroha::protocol::Asset
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Asset >
using ModelType = Asset
 
- Protected Attributes inherited from shared_model::proto::TrivialProto< interface::Asset, iroha::protocol::Asset >
detail::ReferenceHolder< iroha::protocol::Asset > proto_
 

Constructor & Destructor Documentation

template<typename AssetType >
shared_model::proto::Asset::Asset ( AssetType &&  account)
inlineexplicit
shared_model::proto::Asset::Asset ( const Asset o)
inline
shared_model::proto::Asset::Asset ( Asset &&  o)
inlinenoexcept

Member Function Documentation

const interface::types::AssetIdType& shared_model::proto::Asset::assetId ( ) const
inlineoverridevirtual
Returns
Identity of asset

Implements shared_model::interface::Asset.

const interface::types::DomainIdType& shared_model::proto::Asset::domainId ( ) const
inlineoverridevirtual
Returns
Identity of domain

Implements shared_model::interface::Asset.

interface::types::PrecisionType shared_model::proto::Asset::precision ( ) const
inlineoverridevirtual
Returns
Asset's fixed precision

Implements shared_model::interface::Asset.


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