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

#include "peer.hpp"

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

Public Member Functions

template<typename PeerType >
 Peer (PeerType &&peer)
 
 Peer (const Peer &o)
 
 Peer (Peer &&o) noexcept
 
const interface::types::AddressTypeaddress () const override
 
const boost::optional< interface::types::TLSCertificateType > & tlsCertificate () const override
 
const interface::types::PubkeyTypepubkey () const override
 
- Public Member Functions inherited from shared_model::interface::Peer
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Peer >
virtual bool operator== (const ModelType &rhs) const=0
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Peer() [1/3]

template<typename PeerType >
shared_model::proto::Peer::Peer ( PeerType &&  peer)
inlineexplicit

◆ Peer() [2/3]

shared_model::proto::Peer::Peer ( const Peer o)
inline

◆ Peer() [3/3]

shared_model::proto::Peer::Peer ( Peer &&  o)
inlinenoexcept

Member Function Documentation

◆ address()

const interface::types::AddressType& shared_model::proto::Peer::address ( ) const
inlineoverridevirtual
Returns
Peer address, for fetching data

Implements shared_model::interface::Peer.

◆ pubkey()

const interface::types::PubkeyType& shared_model::proto::Peer::pubkey ( ) const
inlineoverridevirtual
Returns
Public key, for fetching data

Implements shared_model::interface::Peer.

Here is the call graph for this function:

◆ tlsCertificate()

const boost::optional<interface::types::TLSCertificateType>& shared_model::proto::Peer::tlsCertificate ( ) const
inlineoverridevirtual
Returns
Peer TLS certficate

Implements shared_model::interface::Peer.


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