[#btck-ChainView] = xref:btck.adoc[btck]::ChainView :relfileprefix: ../ :mrdocs: Non‐owning view over a `btck_Chain`, a sequence of block tree entries by height. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ChainView : public xref:btck/View-041.adoc[View<btck_Chain>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:btck/View-041.adoc[View<btck_Chain>]` | Non‐owning view over a const C handle of type `CType.` |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:btck/ChainView/2constructor.adoc[`ChainView`] [.small]#[constructor]# | Constructs a view over `ptr.` | xref:btck/ChainView/Contains.adoc[`Contains`] | Tests whether an entry belongs to this chain. | xref:btck/ChainView/CountEntries.adoc[`CountEntries`] | Returns the number of entries in the chain. | xref:btck/ChainView/Entries-06e.adoc[`Entries`] | Returns a range over all entries in the chain, ordered by height. | xref:btck/ChainView/GetByHeight.adoc[`GetByHeight`] | Returns the chain entry at a given height. | xref:btck/ChainView/Height.adoc[`Height`] | Returns the height of the chain tip. | xref:btck/ChainView/get.adoc[`get`] | Returns the borrowed C handle. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:btck/ChainView/m_ptr.adoc[`m_ptr`] | The borrowed C handle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#