|
CatapultServer
v0.5.0.1 (Elephant)
|
Lifetime of a namespace. More...

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... | |
Lifetime of a namespace.
Creates a lifetime with start height and end height.
| catapult::state::NamespaceLifetime::NamespaceLifetime | ( | Height | start, |
| Height | end, | ||
| BlockDuration | gracePeriodDuration | ||
| ) |
Creates a lifetime with start height, end height and a grace period (gracePeriodDuration).
| bool catapult::state::NamespaceLifetime::isActiveAndUnlocked | ( | Height | height | ) | const |
Returns true if history is active at height (excluding grace period).

| bool catapult::state::NamespaceLifetime::isActiveOrGracePeriod | ( | Height | height | ) | const |
Returns true if history is active at height (including grace period).

| bool catapult::state::NamespaceLifetime::operator!= | ( | const NamespaceLifetime & | rhs | ) | const |
Returns true if this NamespaceLifetime is not equal to rhs.
| bool catapult::state::NamespaceLifetime::operator== | ( | const NamespaceLifetime & | rhs | ) | const |
Returns true if this NamespaceLifetime is equal to rhs.
| Height catapult::state::NamespaceLifetime::End |
End height excluding grace period.
| Height catapult::state::NamespaceLifetime::GracePeriodEnd |
End height including grace period.
| Height catapult::state::NamespaceLifetime::Start |
Start height.