CatapultServer  v0.5.0.1 (Elephant)
catapult::state::BlockDifficultyInfo Struct Reference
Collaboration diagram for catapult::state::BlockDifficultyInfo:

Public Member Functions

constexpr BlockDifficultyInfo ()
 Creates a default block difficulty info. More...
 
constexpr BlockDifficultyInfo (Height height)
 Creates a block difficulty info from a height. More...
 
constexpr BlockDifficultyInfo (Height height, Timestamp timestamp, Difficulty difficulty)
 Creates a block difficulty info from a height, a timestamp and a difficulty. More...
 
constexpr bool operator< (const BlockDifficultyInfo &rhs) const
 Returns true if this block difficulty info is less than rhs. More...
 
constexpr bool operator== (const BlockDifficultyInfo &rhs) const
 Returns true if this block difficulty info is equal to rhs. More...
 
constexpr bool operator!= (const BlockDifficultyInfo &rhs) const
 Returns true if this block difficulty info is not equal to rhs. More...
 

Public Attributes

Height BlockHeight
 Block height. More...
 
Timestamp BlockTimestamp
 Block timestamp. More...
 
Difficulty BlockDifficulty
 Block difficulty. More...
 

Detailed Description

Represents detailed information about a block difficulty including the block height and the block timestamp.

Constructor & Destructor Documentation

◆ BlockDifficultyInfo() [1/3]

constexpr catapult::state::BlockDifficultyInfo::BlockDifficultyInfo ( )
inlineconstexpr

Creates a default block difficulty info.

◆ BlockDifficultyInfo() [2/3]

constexpr catapult::state::BlockDifficultyInfo::BlockDifficultyInfo ( Height  height)
inlineexplicitconstexpr

Creates a block difficulty info from a height.

◆ BlockDifficultyInfo() [3/3]

constexpr catapult::state::BlockDifficultyInfo::BlockDifficultyInfo ( Height  height,
Timestamp  timestamp,
Difficulty  difficulty 
)
inlineexplicitconstexpr

Creates a block difficulty info from a height, a timestamp and a difficulty.

Member Function Documentation

◆ operator!=()

constexpr bool catapult::state::BlockDifficultyInfo::operator!= ( const BlockDifficultyInfo rhs) const
inlineconstexpr

Returns true if this block difficulty info is not equal to rhs.

◆ operator<()

constexpr bool catapult::state::BlockDifficultyInfo::operator< ( const BlockDifficultyInfo rhs) const
inlineconstexpr

Returns true if this block difficulty info is less than rhs.

◆ operator==()

constexpr bool catapult::state::BlockDifficultyInfo::operator== ( const BlockDifficultyInfo rhs) const
inlineconstexpr

Returns true if this block difficulty info is equal to rhs.

Member Data Documentation

◆ BlockDifficulty

Difficulty catapult::state::BlockDifficultyInfo::BlockDifficulty

Block difficulty.

◆ BlockHeight

Height catapult::state::BlockDifficultyInfo::BlockHeight

Block height.

◆ BlockTimestamp

Timestamp catapult::state::BlockDifficultyInfo::BlockTimestamp

Block timestamp.


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