Data type used to reference transactions within a TxGraph.

Synopsis

Declared in <txgraph.h>

class Ref;

Description

Every transaction within a TxGraph has exactly one corresponding TxGraph::Ref, held by users of the class. Destroying the TxGraph::Ref removes the corresponding transaction (in both the main and staging graphs).

Users of the class can inherit from TxGraph::Ref. If all Refs are inherited this way, the Ref* pointers returned by TxGraph functions can be cast to, and used as, this inherited type.

Member Functions

Name

Description

Ref [constructor]

Constructors

~Ref [destructor] [virtual]

Destroy this Ref. If it is not empty, the corresponding transaction is removed (in both main and staging, if it exists).

operator=

Assignment operators

Friends

Name

Description

TxGraph

Data structure to encapsulate fees, sizes, and dependencies for a set of transactions.

Derived Classes

Name

Description

CTxMemPoolEntry

CTxMemPoolEntry stores data about the corresponding transaction, as well as data about all in‐mempool transactions that depend on the transaction ("descendant" transactions).

Created with MrDocs