Bitcoin ABC  0.24.7
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
avalanche::Slot Struct Reference

#include <peermanager.h>

Public Member Functions

 Slot (uint64_t startIn, uint32_t scoreIn, PeerId peeridIn)
 
Slot withStart (uint64_t startIn) const
 
Slot withScore (uint64_t scoreIn) const
 
Slot withPeerId (PeerId peeridIn) const
 
uint64_t getStart () const
 
uint64_t getStop () const
 
uint32_t getScore () const
 
PeerId getPeerId () const
 
bool contains (uint64_t slot) const
 
bool precedes (uint64_t slot) const
 
bool follows (uint64_t slot) const
 

Private Attributes

uint64_t start
 
uint32_t score
 
PeerId peerid
 

Detailed Description

Definition at line 44 of file peermanager.h.

Constructor & Destructor Documentation

◆ Slot()

avalanche::Slot::Slot ( uint64_t  startIn,
uint32_t  scoreIn,
PeerId  peeridIn 
)
inline

Definition at line 51 of file peermanager.h.

Here is the caller graph for this function:

Member Function Documentation

◆ contains()

bool avalanche::Slot::contains ( uint64_t  slot) const
inline

Definition at line 69 of file peermanager.h.

Here is the call graph for this function:

◆ follows()

bool avalanche::Slot::follows ( uint64_t  slot) const
inline

Definition at line 73 of file peermanager.h.

Here is the call graph for this function:

◆ getPeerId()

PeerId avalanche::Slot::getPeerId ( ) const
inline

Definition at line 67 of file peermanager.h.

Here is the caller graph for this function:

◆ getScore()

uint32_t avalanche::Slot::getScore ( ) const
inline

Definition at line 66 of file peermanager.h.

◆ getStart()

uint64_t avalanche::Slot::getStart ( ) const
inline

Definition at line 64 of file peermanager.h.

Here is the caller graph for this function:

◆ getStop()

uint64_t avalanche::Slot::getStop ( ) const
inline

Definition at line 65 of file peermanager.h.

Here is the caller graph for this function:

◆ precedes()

bool avalanche::Slot::precedes ( uint64_t  slot) const
inline

Definition at line 72 of file peermanager.h.

Here is the call graph for this function:

◆ withPeerId()

Slot avalanche::Slot::withPeerId ( PeerId  peeridIn) const
inline

Definition at line 60 of file peermanager.h.

Here is the call graph for this function:

◆ withScore()

Slot avalanche::Slot::withScore ( uint64_t  scoreIn) const
inline

Definition at line 57 of file peermanager.h.

Here is the call graph for this function:

◆ withStart()

Slot avalanche::Slot::withStart ( uint64_t  startIn) const
inline

Definition at line 54 of file peermanager.h.

Here is the call graph for this function:

Member Data Documentation

◆ peerid

PeerId avalanche::Slot::peerid
private

Definition at line 48 of file peermanager.h.

◆ score

uint32_t avalanche::Slot::score
private

Definition at line 47 of file peermanager.h.

◆ start

uint64_t avalanche::Slot::start
private

Definition at line 46 of file peermanager.h.


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