Bitcoin ABC 0.30.3
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 52 of file peermanager.h.

Constructor & Destructor Documentation

◆ Slot()

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

Definition at line 59 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 77 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 81 of file peermanager.h.

Here is the call graph for this function:

◆ getPeerId()

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

Definition at line 75 of file peermanager.h.

Here is the caller graph for this function:

◆ getScore()

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

Definition at line 74 of file peermanager.h.

◆ getStart()

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

Definition at line 72 of file peermanager.h.

Here is the caller graph for this function:

◆ getStop()

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

Definition at line 73 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 80 of file peermanager.h.

Here is the call graph for this function:

◆ withPeerId()

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

Definition at line 68 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 65 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 62 of file peermanager.h.

Here is the call graph for this function:

Member Data Documentation

◆ peerid

PeerId avalanche::Slot::peerid
private

Definition at line 56 of file peermanager.h.

◆ score

uint32_t avalanche::Slot::score
private

Definition at line 55 of file peermanager.h.

◆ start

uint64_t avalanche::Slot::start
private

Definition at line 54 of file peermanager.h.


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