CreDB  0.1.0
Public Member Functions | Public Attributes | List of all members
event_id_t Struct Reference

Specifies the position of an event on a node's ledger. More...

#include <event_id.h>

Public Member Functions

constexpr event_id_t (shard_id_t shard_, block_id_t block_, block_index_t index_)
 
 operator bool () const
 

Public Attributes

shard_id_t shard
 Identifier of the shard (horizontal position)
 
block_index_t index
 Offset inside the block (vertical position)
 
block_id_t block
 Block identifier (vertical position)
 

Detailed Description

Specifies the position of an event on a node's ledger.

Constructor & Destructor Documentation

◆ event_id_t()

constexpr event_id_t ( shard_id_t  shard_,
block_id_t  block_,
block_index_t  index_ 
)
inline

Explicitly construct the event identifier

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inlineexplicit

Test whether or not the identifier is valid


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