CatapultServer  v0.5.0.1 (Elephant)
catapult::model::WeakCosignedTransactionInfo Class Reference

Wrapper around a transaction and its cosignatures. More...

Collaboration diagram for catapult::model::WeakCosignedTransactionInfo:

Public Member Functions

 WeakCosignedTransactionInfo ()
 Creates an empty weak transaction info. More...
 
 WeakCosignedTransactionInfo (const Transaction *pTransaction, const std::vector< Cosignature > *pCosignatures)
 Creates a weak transaction info around pTransaction and pCosignatures. More...
 
const Transactiontransaction () const
 Gets the transaction. More...
 
const std::vector< Cosignature > & cosignatures () const
 Gets the cosignatures. More...
 
bool hasCosigner (const Key &signer) const
 Returns true if a cosignature from signer is present. More...
 
 operator bool () const noexcept
 Returns true if the info is not empty and contains a valid entity pointer, false otherwise. More...
 

Private Attributes

const Transactionm_pTransaction
 
const std::vector< Cosignature > * m_pCosignatures
 

Detailed Description

Wrapper around a transaction and its cosignatures.

Constructor & Destructor Documentation

◆ WeakCosignedTransactionInfo() [1/2]

catapult::model::WeakCosignedTransactionInfo::WeakCosignedTransactionInfo ( )
inline

Creates an empty weak transaction info.

◆ WeakCosignedTransactionInfo() [2/2]

catapult::model::WeakCosignedTransactionInfo::WeakCosignedTransactionInfo ( const Transaction pTransaction,
const std::vector< Cosignature > *  pCosignatures 
)
inline

Creates a weak transaction info around pTransaction and pCosignatures.

Member Function Documentation

◆ cosignatures()

const std::vector<Cosignature>& catapult::model::WeakCosignedTransactionInfo::cosignatures ( ) const
inline

Gets the cosignatures.

Here is the caller graph for this function:

◆ hasCosigner()

bool catapult::model::WeakCosignedTransactionInfo::hasCosigner ( const Key signer) const
inline

Returns true if a cosignature from signer is present.

◆ operator bool()

catapult::model::WeakCosignedTransactionInfo::operator bool ( ) const
inlineexplicitnoexcept

Returns true if the info is not empty and contains a valid entity pointer, false otherwise.

◆ transaction()

const Transaction& catapult::model::WeakCosignedTransactionInfo::transaction ( ) const
inline

Gets the transaction.

Here is the caller graph for this function:

Member Data Documentation

◆ m_pCosignatures

const std::vector<Cosignature>* catapult::model::WeakCosignedTransactionInfo::m_pCosignatures
private

◆ m_pTransaction

const Transaction* catapult::model::WeakCosignedTransactionInfo::m_pTransaction
private

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