CatapultServer  v0.5.0.1 (Elephant)
catapult::state::NamespaceLifetime Struct Reference

Lifetime of a namespace. More...

Collaboration diagram for catapult::state::NamespaceLifetime:

Public Member Functions

 NamespaceLifetime (Height start, Height end)
 Creates a lifetime with start height and end height. More...
 
 NamespaceLifetime (Height start, Height end, BlockDuration gracePeriodDuration)
 Creates a lifetime with start height, end height and a grace period (gracePeriodDuration). More...
 
bool isActiveAndUnlocked (Height height) const
 Returns true if history is active at height (excluding grace period). More...
 
bool isActiveOrGracePeriod (Height height) const
 Returns true if history is active at height (including grace period). More...
 
bool operator== (const NamespaceLifetime &rhs) const
 Returns true if this NamespaceLifetime is equal to rhs. More...
 
bool operator!= (const NamespaceLifetime &rhs) const
 Returns true if this NamespaceLifetime is not equal to rhs. More...
 

Public Attributes

Height Start
 Start height. More...
 
Height End
 End height excluding grace period. More...
 
Height GracePeriodEnd
 End height including grace period. More...
 

Detailed Description

Lifetime of a namespace.

Constructor & Destructor Documentation

◆ NamespaceLifetime() [1/2]

catapult::state::NamespaceLifetime::NamespaceLifetime ( Height  start,
Height  end 
)

Creates a lifetime with start height and end height.

◆ NamespaceLifetime() [2/2]

catapult::state::NamespaceLifetime::NamespaceLifetime ( Height  start,
Height  end,
BlockDuration  gracePeriodDuration 
)

Creates a lifetime with start height, end height and a grace period (gracePeriodDuration).

Member Function Documentation

◆ isActiveAndUnlocked()

bool catapult::state::NamespaceLifetime::isActiveAndUnlocked ( Height  height) const

Returns true if history is active at height (excluding grace period).

Here is the caller graph for this function:

◆ isActiveOrGracePeriod()

bool catapult::state::NamespaceLifetime::isActiveOrGracePeriod ( Height  height) const

Returns true if history is active at height (including grace period).

Here is the caller graph for this function:

◆ operator!=()

bool catapult::state::NamespaceLifetime::operator!= ( const NamespaceLifetime rhs) const

Returns true if this NamespaceLifetime is not equal to rhs.

◆ operator==()

bool catapult::state::NamespaceLifetime::operator== ( const NamespaceLifetime rhs) const

Returns true if this NamespaceLifetime is equal to rhs.

Member Data Documentation

◆ End

Height catapult::state::NamespaceLifetime::End

End height excluding grace period.

◆ GracePeriodEnd

Height catapult::state::NamespaceLifetime::GracePeriodEnd

End height including grace period.

◆ Start

Height catapult::state::NamespaceLifetime::Start

Start height.


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