Class mata::nft::Levels::Ordering

class Ordering

Orderings of levels.

Public Static Functions

static inline bool Minimal(const Level lhs, const Level rhs)

Ordering for Levels in NFTs where lower levels precede higher levels.

That is, levels are ordered as follows: 0 < 1 < 2 < … < num_of_levels-1.

static inline bool Next(const Level lhs, const Level rhs)

Ordering for levels in NFTs where lower levels precede higher levels, except for 0 which is the highest level.

That is, levels are ordered as follows: 1 < 2 < … < num_of_levels-1 < 0. This ordering is used when handling intermediate states (with non-zero levels) in NFTs for determining the next lowest level of the next state.