CatapultServer  v0.5.0.1 (Elephant)
catapult::consumers::WeakBlockInfo Class Reference

A tuple composed of a block, a hash and a generation hash. More...

Inheritance diagram for catapult::consumers::WeakBlockInfo:
Collaboration diagram for catapult::consumers::WeakBlockInfo:

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 GenerationHashgenerationHash () 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::Blockentity () const
 Gets the entity. More...
 
constexpr EntityType type () const
 Gets the entity type. More...
 
constexpr const Hash256hash () const
 Gets the entity hash. More...
 
constexpr const BlockHeaderassociatedBlockHeader () 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 GenerationHashm_pGenerationHash
 

Detailed Description

A tuple composed of a block, a hash and a generation hash.

Constructor & Destructor Documentation

◆ WeakBlockInfo() [1/2]

constexpr catapult::consumers::WeakBlockInfo::WeakBlockInfo ( )
inlineconstexpr

Creates a block info.

◆ WeakBlockInfo() [2/2]

constexpr catapult::consumers::WeakBlockInfo::WeakBlockInfo ( const model::BlockElement blockElement)
inlineexplicitconstexpr

Creates a block info around blockElement.

Member Function Documentation

◆ generationHash()

constexpr const GenerationHash& catapult::consumers::WeakBlockInfo::generationHash ( ) const
inlineconstexpr

Gets the generation hash.

Member Data Documentation

◆ m_pGenerationHash

const GenerationHash* catapult::consumers::WeakBlockInfo::m_pGenerationHash
private

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