[#btck-ChainView]
= xref:btck.adoc[btck]::ChainView
:relfileprefix: ../
:mrdocs:

Non&hyphen;owning view over a `btck&lowbar;Chain`, a sequence of block tree entries by height&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ChainView
    : public xref:btck/View-041.adoc[View&lt;btck&lowbar;Chain&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/View-041.adoc[View&lt;btck&lowbar;Chain&gt;]`
| Non&hyphen;owning view over a const C handle of type `CType&period;`
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/ChainView/2constructor.adoc[`ChainView`]         [.small]#[constructor]#
| Constructs a view over `ptr&period;`
| xref:btck/ChainView/Contains.adoc[`Contains`] 
| Tests whether an entry belongs to this chain&period;
| xref:btck/ChainView/CountEntries.adoc[`CountEntries`] 
| Returns the number of entries in the chain&period;
| xref:btck/ChainView/Entries-06e.adoc[`Entries`] 
| Returns a range over all entries in the chain, ordered by height&period;
| xref:btck/ChainView/GetByHeight.adoc[`GetByHeight`] 
| Returns the chain entry at a given height&period;
| xref:btck/ChainView/Height.adoc[`Height`] 
| Returns the height of the chain tip&period;
| xref:btck/ChainView/get.adoc[`get`] 
| Returns the borrowed C handle&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:btck/ChainView/m_ptr.adoc[`m&lowbar;ptr`] 
| The borrowed C handle&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
