btck::ChainView

Non-owning view over a btck_Chain, a sequence of block tree entries by height.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class ChainView
    : public View<btck_Chain>

Base Classes

NameDescription
View<btck_Chain>Non-owning view over a const C handle of type CType.

Member Functions

NameDescription
ChainView [constructor]Constructs a view over ptr.
Contains Tests whether an entry belongs to this chain.
CountEntries Returns the number of entries in the chain.
Entries Returns a range over all entries in the chain, ordered by height.
GetByHeight Returns the chain entry at a given height.
Height Returns the height of the chain tip.
get Returns the borrowed C handle.

Protected Data Members

NameDescription
m_ptr The borrowed C handle.