Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
TxGraph::Ref Class Reference

#include <txgraph.h>

Inheritance diagram for TxGraph::Ref:
[legend]
Collaboration diagram for TxGraph::Ref:
[legend]

Public Member Functions

 Ref () noexcept=default
 Construct an empty Ref.
virtual ~Ref ()
 Destroy this Ref.
Refoperator= (Ref &&other) noexcept=delete
 Ref (Ref &&other) noexcept
Refoperator= (const Ref &)=delete
 Ref (const Ref &)=delete

Private Attributes

TxGraphm_graph = nullptr
 Which Graph the Entry lives in.
GraphIndex m_index = GraphIndex(-1)
 Index into the Graph's m_entries.

Friends

class TxGraph

Detailed Description

Definition at line 232 of file txgraph.h.

Constructor & Destructor Documentation

◆ Ref() [1/3]

TxGraph::Ref::Ref ( )
defaultnoexcept

Construct an empty Ref.

It can be initialized through TxGraph::AddTransaction.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Ref()

TxGraph::Ref::~Ref ( )
virtual

Destroy this Ref.

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

Definition at line 3552 of file txgraph.cpp.

◆ Ref() [2/3]

TxGraph::Ref::Ref ( Ref && other)
noexcept

Definition at line 3561 of file txgraph.cpp.

Here is the call graph for this function:

◆ Ref() [3/3]

TxGraph::Ref::Ref ( const Ref & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

Ref & TxGraph::Ref::operator= ( const Ref & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

Ref & TxGraph::Ref::operator= ( Ref && other)
deletenoexcept
Here is the call graph for this function:

◆ TxGraph

friend class TxGraph
friend

Definition at line 235 of file txgraph.h.

Member Data Documentation

◆ m_graph

TxGraph* TxGraph::Ref::m_graph = nullptr
private

Which Graph the Entry lives in.

nullptr if this Ref is empty.

Definition at line 237 of file txgraph.h.

◆ m_index

GraphIndex TxGraph::Ref::m_index = GraphIndex(-1)
private

Index into the Graph's m_entries.

Only used if m_graph != nullptr.

Definition at line 239 of file txgraph.h.


The documentation for this class was generated from the following files: