Bitcoin Core 29.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | Friends | List of all members
TxGraph::Ref Class Reference

#include <txgraph.h>

Collaboration diagram for TxGraph::Ref:
[legend]

Public Member Functions

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

Private Attributes

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

Friends

class TxGraph
 

Detailed Description

Definition at line 183 of file txgraph.h.

Constructor & Destructor Documentation

◆ Ref() [1/3]

TxGraph::Ref::Ref ( )
defaultnoexcept

Construct an empty Ref.

Non-empty Refs can only be created using TxGraph::AddTransaction.

◆ ~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 2085 of file txgraph.cpp.

Here is the call graph for this function:

◆ Ref() [2/3]

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

Definition at line 2108 of file txgraph.cpp.

◆ Ref() [3/3]

TxGraph::Ref::Ref ( const Ref )
delete

Member Function Documentation

◆ operator=() [1/2]

Ref & TxGraph::Ref::operator= ( const Ref )
delete

◆ operator=() [2/2]

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

Definition at line 2094 of file txgraph.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ TxGraph

friend class TxGraph
friend

Definition at line 186 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 188 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 190 of file txgraph.h.


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