[#btck-WitnessStackApi-04] = xref:btck.adoc[btck]::WitnessStackApi :relfileprefix: ../ :mrdocs: CRTP mixin adding witness‐stack accessors shared by the view and owning types. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Derived> class WitnessStackApi; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:btck/WitnessStackApi-04/CountItems.adoc[`CountItems`] | Returns the number of items on the witness stack. | xref:btck/WitnessStackApi-04/GetItem.adoc[`GetItem`] | Returns a single witness item by index. | xref:btck/WitnessStackApi-04/Items-01.adoc[`Items`] | Returns a range over all witness items. |=== == Friends [cols="1,4"] |=== | Name| Description | `Derived` | |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:btck/WitnessStack.adoc[`WitnessStack`] | Owning wrapper over a `btck_WitnessStack`. | xref:btck/WitnessStackView.adoc[`WitnessStackView`] | Non‐owning view over a `btck_WitnessStack`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#