[#CInv]
= CInv
:mrdocs:

inv message data

== Synopsis

Declared in `&lt;protocol&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CInv;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CInv/2constructor-06.adoc[`CInv`]         [.small]#[constructor]#
| Constructors
| xref:CInv/GetMessageType.adoc[`GetMessageType`] 
| Returns the network message type this inventory entry maps to&period;
| xref:CInv/IsGenBlkMsg.adoc[`IsGenBlkMsg`] 
| Returns whether this entry refers to any block&hyphen;type message&period;
| xref:CInv/IsGenTxMsg.adoc[`IsGenTxMsg`] 
| Returns whether this entry refers to any transaction&hyphen;type message&period;
| xref:CInv/IsMsgBlk.adoc[`IsMsgBlk`] 
| Returns whether this entry refers to a block&period;
| xref:CInv/IsMsgCmpctBlk.adoc[`IsMsgCmpctBlk`] 
| Returns whether this entry refers to a compact block&period;
| xref:CInv/IsMsgFilteredBlk.adoc[`IsMsgFilteredBlk`] 
| Returns whether this entry refers to a filtered (merkle) block&period;
| xref:CInv/IsMsgTx.adoc[`IsMsgTx`] 
| Returns whether this entry refers to a plain transaction&period;
| xref:CInv/IsMsgWitnessBlk.adoc[`IsMsgWitnessBlk`] 
| Returns whether this entry refers to a block including witness data&period;
| xref:CInv/IsMsgWtx.adoc[`IsMsgWtx`] 
| Returns whether this entry refers to a witness transaction (wtx)&period;
| xref:CInv/ToString.adoc[`ToString`] 
| Returns a human&hyphen;readable representation of this inventory entry&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CInv/hash.adoc[`hash`] 
| Hash of the referenced object&period;
| xref:CInv/type.adoc[`type`] 
| Inventory type, one of the GetDataMsg values&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:operator_lt-04.adoc[operator&lt;]`
| Orders two inventory entries by type and then by hash&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:ToGenTxid.adoc[`ToGenTxid`]
| Convert a TX&sol;WITNESS&lowbar;TX&sol;WTX CInv to a GenTxid&period;
|===


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