CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace model {
struct BlockHeader; } }
29 namespace catapult {
namespace model {
32 template<
typename TEntity>
82 constexpr
const TEntity&
entity()
const {
103 template<
typename TEntityResult>
105 const auto& typedEntity = static_cast<const TEntityResult&>(
entity());
119 return !(*
this == rhs);
131 template<
typename TEntity>
133 if (!entityInfo.
isSet()) {
134 out <<
"WeakEntityInfo (unset)";
136 const auto& hash = entityInfo.
hash();
constexpr bool operator==(const WeakEntityInfoT &rhs) const
Returns true if this info is equal to rhs.
Definition: WeakEntityInfo.h:113
const Hash256 * m_pHash
Definition: WeakEntityInfo.h:124
constexpr WeakEntityInfoT(const TEntity &entity, const Hash256 &hash)
Creates an entity info around entity and hash.
Definition: WeakEntityInfo.h:51
constexpr void HexFormat(const ByteArray< N, TTag > &)
constexpr WeakEntityInfoT(const TEntity &entity)
Definition: WeakEntityInfo.h:44
EntityType
Enumeration of entity types.
Definition: EntityType.h:43
constexpr WeakEntityInfoT(const TEntity &entity, const Hash256 &hash, const BlockHeader &associatedBlockHeader)
Creates an entity info around entity, hash and associatedBlockHeader.
Definition: WeakEntityInfo.h:58
constexpr WeakEntityInfoT()
Creates an entity info.
Definition: WeakEntityInfo.h:36
Wrapper around a strongly typed entity and its associated metadata.
Definition: WeakEntityInfo.h:33
constexpr const TEntity & entity() const
Gets the entity.
Definition: WeakEntityInfo.h:82
constexpr EntityType type() const
Gets the entity type.
Definition: WeakEntityInfo.h:87
const TEntity * m_pEntity
Definition: WeakEntityInfo.h:123
constexpr const Hash256 & hash() const
Gets the entity hash.
Definition: WeakEntityInfo.h:92
constexpr bool operator!=(const WeakEntityInfoT &rhs) const
Returns true if this info is not equal to rhs.
Definition: WeakEntityInfo.h:118
constexpr const BlockHeader & associatedBlockHeader() const
Gets the associated block header.
Definition: WeakEntityInfo.h:97
std::ostream & operator<<(std::ostream &out, const EmbeddedTransaction &transaction)
Insertion operator for outputting transaction to out.
Definition: EmbeddedTransaction.cpp:28
constexpr bool isSet() const
Returns true if this info has an associated entity.
Definition: WeakEntityInfo.h:66
constexpr bool isHashSet() const
Returns true if this info has an associated hash.
Definition: WeakEntityInfo.h:71
Definition: AddressExtractionExtension.cpp:28
const BlockHeader * m_pAssociatedBlockHeader
Definition: WeakEntityInfo.h:125
WeakEntityInfoT< TEntityResult > cast() const
Coerces this info into a differently typed info.
Definition: WeakEntityInfo.h:104
constexpr bool isAssociatedBlockHeaderSet() const
Returns true if this info has an associated block header.
Definition: WeakEntityInfo.h:76
std::vector< WeakEntityInfo > WeakEntityInfos
A container of weak entity infos.
Definition: WeakEntityInfo.h:144