Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
COutPoint Class Reference

An outpoint - a combination of a transaction hash and an index n into its vout. More...

#include <transaction.h>

Collaboration diagram for COutPoint:
[legend]

Public Member Functions

 COutPoint ()
 
 COutPoint (const uint256 &hashIn, uint32_t nIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
void SetNull ()
 
bool IsNull () const
 
std::string ToString () const
 

Public Attributes

uint256 hash
 
uint32_t n
 
 ADD_SERIALIZE_METHODS
 

Static Public Attributes

static constexpr uint32_t NULL_INDEX = std::numeric_limits<uint32_t>::max()
 

Friends

bool operator< (const COutPoint &a, const COutPoint &b)
 
bool operator== (const COutPoint &a, const COutPoint &b)
 
bool operator!= (const COutPoint &a, const COutPoint &b)
 

Detailed Description

An outpoint - a combination of a transaction hash and an index n into its vout.

Definition at line 18 of file transaction.h.

Constructor & Destructor Documentation

◆ COutPoint() [1/2]

COutPoint::COutPoint ( )
inline

Definition at line 26 of file transaction.h.

Here is the caller graph for this function:

◆ COutPoint() [2/2]

COutPoint::COutPoint ( const uint256 hashIn,
uint32_t  nIn 
)
inline

Definition at line 27 of file transaction.h.

Member Function Documentation

◆ IsNull()

bool COutPoint::IsNull ( ) const
inline

Definition at line 38 of file transaction.h.

Here is the call graph for this function:

◆ SerializationOp()

template<typename Stream , typename Operation >
void COutPoint::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 32 of file transaction.h.

◆ SetNull()

void COutPoint::SetNull ( )
inline

Definition at line 37 of file transaction.h.

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

◆ ToString()

std::string COutPoint::ToString ( ) const

Definition at line 12 of file transaction.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const COutPoint a,
const COutPoint b 
)
friend

Definition at line 51 of file transaction.h.

◆ operator<

bool operator< ( const COutPoint a,
const COutPoint b 
)
friend

Definition at line 40 of file transaction.h.

◆ operator==

bool operator== ( const COutPoint a,
const COutPoint b 
)
friend

Definition at line 46 of file transaction.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

COutPoint::ADD_SERIALIZE_METHODS

Definition at line 29 of file transaction.h.

◆ hash

uint256 COutPoint::hash

Definition at line 21 of file transaction.h.

◆ n

uint32_t COutPoint::n

Definition at line 22 of file transaction.h.

◆ NULL_INDEX

constexpr uint32_t COutPoint::NULL_INDEX = std::numeric_limits<uint32_t>::max()
static

Definition at line 24 of file transaction.h.


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