CatapultServer
v0.5.0.1 (Elephant)
|
A tuple composed of a block, a hash and a generation hash. More...
Public Member Functions | |
constexpr | WeakBlockInfo () |
Creates a block info. More... | |
constexpr | WeakBlockInfo (const model::BlockElement &blockElement) |
Creates a block info around blockElement. More... | |
constexpr const GenerationHash & | generationHash () const |
Gets the generation hash. More... | |
Public Member Functions inherited from catapult::model::WeakEntityInfoT< model::Block > | |
constexpr | WeakEntityInfoT () |
Creates an entity info. More... | |
constexpr | WeakEntityInfoT (const model::Block &entity) |
constexpr | WeakEntityInfoT (const model::Block &entity, const Hash256 &hash) |
Creates an entity info around entity and hash. More... | |
constexpr | WeakEntityInfoT (const model::Block &entity, const Hash256 &hash, const BlockHeader &associatedBlockHeader) |
Creates an entity info around entity, hash and associatedBlockHeader. More... | |
constexpr bool | isSet () const |
Returns true if this info has an associated entity. More... | |
constexpr bool | isHashSet () const |
Returns true if this info has an associated hash. More... | |
constexpr bool | isAssociatedBlockHeaderSet () const |
Returns true if this info has an associated block header. More... | |
constexpr const model::Block & | entity () const |
Gets the entity. More... | |
constexpr EntityType | type () const |
Gets the entity type. More... | |
constexpr const Hash256 & | hash () const |
Gets the entity hash. More... | |
constexpr const BlockHeader & | associatedBlockHeader () const |
Gets the associated block header. More... | |
WeakEntityInfoT< TEntityResult > | cast () const |
Coerces this info into a differently typed info. More... | |
constexpr bool | operator== (const WeakEntityInfoT &rhs) const |
Returns true if this info is equal to rhs. More... | |
constexpr bool | operator!= (const WeakEntityInfoT &rhs) const |
Returns true if this info is not equal to rhs. More... | |
Private Attributes | |
const GenerationHash * | m_pGenerationHash |
A tuple composed of a block, a hash and a generation hash.
|
inlineconstexpr |
Creates a block info.
|
inlineexplicitconstexpr |
Creates a block info around blockElement.
|
inlineconstexpr |
Gets the generation hash.
|
private |