Bitcoin
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
COutPoint Class Reference

#include <transaction.h>

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

Constructor & Destructor Documentation

◆ COutPoint() [1/2]

COutPoint::COutPoint ( )
inline

◆ COutPoint() [2/2]

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

Member Function Documentation

◆ IsNull()

bool COutPoint::IsNull ( ) const
inline

◆ SerializationOp()

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

◆ SetNull()

void COutPoint::SetNull ( )
inline

◆ ToString()

std::string COutPoint::ToString ( ) const

Friends And Related Function Documentation

◆ operator!=

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

◆ operator<

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

◆ operator==

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

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

COutPoint::ADD_SERIALIZE_METHODS

◆ hash

uint256 COutPoint::hash

◆ n

uint32_t COutPoint::n

◆ NULL_INDEX

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

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