Bitcoin ABC  0.22.15
P2P Digital Currency
Public Types | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
avalanche::BlockUpdate Class Reference

#include <processor.h>

Collaboration diagram for avalanche::BlockUpdate:
[legend]

Public Types

enum  Status : uint8_t { Invalid, Rejected, Accepted, Finalized }
 

Public Member Functions

 BlockUpdate (CBlockIndex *pindexIn, Status statusIn)
 
Status getStatus () const
 
CBlockIndexgetBlockIndex ()
 
const CBlockIndexgetBlockIndex () const
 

Private Attributes

union {
   CBlockIndex *   pindex
 
   uintptr_t   raw
 
}; 
 

Static Private Attributes

static const size_t STATUS_BITS = 2
 
static const uintptr_t MASK = (1 << STATUS_BITS) - 1
 

Detailed Description

Definition at line 150 of file processor.h.

Member Enumeration Documentation

◆ Status

Enumerator
Invalid 
Rejected 
Accepted 
Finalized 

Definition at line 164 of file processor.h.

Constructor & Destructor Documentation

◆ BlockUpdate()

avalanche::BlockUpdate::BlockUpdate ( CBlockIndex pindexIn,
Status  statusIn 
)
inline

Definition at line 171 of file processor.h.

Member Function Documentation

◆ getBlockIndex() [1/2]

CBlockIndex* avalanche::BlockUpdate::getBlockIndex ( )
inline

Definition at line 177 of file processor.h.

Here is the caller graph for this function:

◆ getBlockIndex() [2/2]

const CBlockIndex* avalanche::BlockUpdate::getBlockIndex ( ) const
inline

Definition at line 181 of file processor.h.

◆ getStatus()

Status avalanche::BlockUpdate::getStatus ( ) const
inline

Definition at line 175 of file processor.h.

Here is the caller graph for this function:

Member Data Documentation

◆ @1

union { ... }

◆ MASK

const uintptr_t avalanche::BlockUpdate::MASK = (1 << STATUS_BITS) - 1
staticprivate

Definition at line 157 of file processor.h.

◆ pindex

CBlockIndex* avalanche::BlockUpdate::pindex

Definition at line 152 of file processor.h.

◆ raw

uintptr_t avalanche::BlockUpdate::raw

Definition at line 153 of file processor.h.

◆ STATUS_BITS

const size_t avalanche::BlockUpdate::STATUS_BITS = 2
staticprivate

Definition at line 156 of file processor.h.


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