CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
29 namespace catapult {
namespace model {
32 template<
typename TEntity>
52 explicit operator bool() const noexcept {
58 template<
typename TEntity>
59 struct EntityInfoHasher {
67 template<
typename TEntity>
68 struct EntityInfoComparer {
95 return transactionInfo;
126 return transactionInfo;
TransactionInfo()=default
Creates a transaction info.
DetachedTransactionInfo()=default
Creates a transaction info.
TransactionInfo(const std::shared_ptr< const Transaction > &pTransaction)
Creates a transaction info around pTransaction without any metadata.
Definition: EntityInfo.h:110
DetachedTransactionInfo copy() const
Creates a (shallow) copy of this info.
Definition: EntityInfo.h:92
Hash256 MerkleComponentHash
Modified hash that should be used as a hash in the merkle tree.
Definition: EntityInfo.h:131
A transaction and its associated metadata.
Definition: EntityInfo.h:104
bool operator()(const EntityInfo< TEntity > &lhs, const EntityInfo< TEntity > &rhs) const
Returns true if lhs and rhs are equal.
Definition: EntityInfo.h:70
std::shared_ptr< const UnresolvedAddressSet > OptionalExtractedAddresses
Extracted addresses (optional).
Definition: EntityInfo.h:100
def info(*args)
Definition: forwardsValidation.py:12
EntityInfo(const std::shared_ptr< TEntity > &pEntityParam, const Hash256 &hash)
Creates an entity info around pEntityParam and its associated metadata (hash).
Definition: EntityInfo.h:39
EntityInfo()=default
Creates an entity info.
A class that can be moved but not copied.
Definition: NonCopyable.h:43
TransactionInfo(const std::shared_ptr< const Transaction > &pTransaction, const Hash256 &hash)
Creates a transaction info around pTransaction and its associated metadata (hash).
Definition: EntityInfo.h:115
std::shared_ptr< TEntity > pEntity
Entity pointer.
Definition: EntityInfo.h:45
Definition: AddressExtractionExtension.cpp:28
size_t operator()(const EntityInfo< TEntity > &info) const
Hashes info.
Definition: EntityInfo.h:61
Hash256 EntityHash
Entity hash.
Definition: EntityInfo.h:48
Tuple composed of an entity and its associated metadata.
Definition: EntityInfo.h:33
Definition: EntityInfo.h:77
TransactionInfo copy() const
Creates a (shallow) copy of this info.
Definition: EntityInfo.h:122
DetachedTransactionInfo(const std::shared_ptr< const Transaction > &pTransaction)
Creates a transaction info around pTransaction without any metadata.
Definition: EntityInfo.h:86