CatapultServer  v0.5.0.1 (Elephant)
catapult::model::TransactionInfo Struct Reference

A transaction and its associated metadata. More...

Inheritance diagram for catapult::model::TransactionInfo:
Collaboration diagram for catapult::model::TransactionInfo:

Public Member Functions

 TransactionInfo ()=default
 Creates a transaction info. More...
 
 TransactionInfo (const std::shared_ptr< const Transaction > &pTransaction)
 Creates a transaction info around pTransaction without any metadata. More...
 
 TransactionInfo (const std::shared_ptr< const Transaction > &pTransaction, const Hash256 &hash)
 Creates a transaction info around pTransaction and its associated metadata (hash). More...
 
TransactionInfo copy () const
 Creates a (shallow) copy of this info. More...
 
- Public Member Functions inherited from catapult::model::DetachedTransactionInfo
 DetachedTransactionInfo ()=default
 Creates a transaction info. More...
 
 DetachedTransactionInfo (const std::shared_ptr< const Transaction > &pTransaction)
 Creates a transaction info around pTransaction without any metadata. More...
 
DetachedTransactionInfo copy () const
 Creates a (shallow) copy of this info. More...
 
- Public Member Functions inherited from catapult::model::EntityInfo< const Transaction >
 EntityInfo ()=default
 Creates an entity info. More...
 
 EntityInfo (const std::shared_ptr< const Transaction > &pEntityParam, const Hash256 &hash)
 Creates an entity info around pEntityParam and its associated metadata (hash). More...
 
 operator bool () const noexcept
 Returns true if the info is not empty and contains a valid entity pointer, false otherwise. More...
 
- Public Member Functions inherited from catapult::utils::MoveOnly
constexpr MoveOnly ()=default
 Default constructor. More...
 
 ~MoveOnly ()=default
 Default destructor. More...
 
 MoveOnly (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
 MoveOnly (MoveOnly &&)=default
 Default move constructor. More...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 

Public Attributes

Hash256 MerkleComponentHash
 Modified hash that should be used as a hash in the merkle tree. More...
 
- Public Attributes inherited from catapult::model::DetachedTransactionInfo
std::shared_ptr< const UnresolvedAddressSetOptionalExtractedAddresses
 Extracted addresses (optional). More...
 
- Public Attributes inherited from catapult::model::EntityInfo< const Transaction >
std::shared_ptr< const TransactionpEntity
 Entity pointer. More...
 
Hash256 EntityHash
 Entity hash. More...
 

Detailed Description

A transaction and its associated metadata.

Constructor & Destructor Documentation

◆ TransactionInfo() [1/3]

catapult::model::TransactionInfo::TransactionInfo ( )
default

Creates a transaction info.

Here is the caller graph for this function:

◆ TransactionInfo() [2/3]

catapult::model::TransactionInfo::TransactionInfo ( const std::shared_ptr< const Transaction > &  pTransaction)
inlineexplicit

Creates a transaction info around pTransaction without any metadata.

◆ TransactionInfo() [3/3]

catapult::model::TransactionInfo::TransactionInfo ( const std::shared_ptr< const Transaction > &  pTransaction,
const Hash256 hash 
)
inlineexplicit

Creates a transaction info around pTransaction and its associated metadata (hash).

Member Function Documentation

◆ copy()

TransactionInfo catapult::model::TransactionInfo::copy ( ) const
inline

Creates a (shallow) copy of this info.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ MerkleComponentHash

Hash256 catapult::model::TransactionInfo::MerkleComponentHash

Modified hash that should be used as a hash in the merkle tree.


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