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

#include "account_asset.hpp"

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

Public Member Functions

template<typename AccountAssetType >
 AccountAsset (AccountAssetType &&accountAssetType)
 
 AccountAsset (const AccountAsset &o)
 
 AccountAsset (AccountAsset &&o) noexcept
 
const interface::types::AccountIdTypeaccountId () const override
 
const interface::types::AssetIdTypeassetId () const override
 
const interface::Amountbalance () const override
 
- Public Member Functions inherited from shared_model::proto::CopyableProto< interface::AccountAsset, iroha::protocol::AccountAsset, AccountAsset >
 CopyableProto (ProtoLoader &&ref)
 
const iroha::protocol::AccountAsset & getTransport () const
 
- Public Member Functions inherited from shared_model::interface::AccountAsset
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< AccountAsset >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< AccountAsset > >
virtual ~Cloneable ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::proto::CopyableProto< interface::AccountAsset, iroha::protocol::AccountAsset, AccountAsset >
using TransportType = iroha::protocol::AccountAsset
 
- Public Types inherited from shared_model::interface::ModelPrimitive< AccountAsset >
using ModelType = AccountAsset
 
- Public Types inherited from Cloneable< ModelPrimitive< AccountAsset > >
using base_type = ModelPrimitive< AccountAsset >
 
- Protected Member Functions inherited from shared_model::proto::CopyableProto< interface::AccountAsset, iroha::protocol::AccountAsset, AccountAsset >
interface::AccountAsset::ModelTypeclone () const overridefinal
 
- Protected Attributes inherited from shared_model::proto::CopyableProto< interface::AccountAsset, iroha::protocol::AccountAsset, AccountAsset >
detail::ReferenceHolder< iroha::protocol::AccountAsset > proto_
 

Constructor & Destructor Documentation

template<typename AccountAssetType >
shared_model::proto::AccountAsset::AccountAsset ( AccountAssetType &&  accountAssetType)
inlineexplicit
shared_model::proto::AccountAsset::AccountAsset ( const AccountAsset o)
inline
shared_model::proto::AccountAsset::AccountAsset ( AccountAsset &&  o)
inlinenoexcept

Member Function Documentation

const interface::types::AccountIdType& shared_model::proto::AccountAsset::accountId ( ) const
inlineoverridevirtual
Returns
Identity of user, for fetching data

Implements shared_model::interface::AccountAsset.

const interface::types::AssetIdType& shared_model::proto::AccountAsset::assetId ( ) const
inlineoverridevirtual
Returns
Identity of asset, for fetching data

Implements shared_model::interface::AccountAsset.

const interface::Amount& shared_model::proto::AccountAsset::balance ( ) const
inlineoverridevirtual
Returns
Current balance

Implements shared_model::interface::AccountAsset.


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