Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | 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 <core.h>

+ Collaboration diagram for COutPoint:

Public Member Functions

 COutPoint ()
 
 COutPoint (uint256 hashIn, unsigned int nIn)
 
 IMPLEMENT_SERIALIZE (READWRITE(FLATDATA(*this));) void SetNull()
 
bool IsNull () const
 
std::string ToString () const
 
void print () const
 

Public Attributes

uint256 hash
 
unsigned int n
 

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 22 of file core.h.

Constructor & Destructor Documentation

COutPoint::COutPoint ( )
inline

Definition at line 28 of file core.h.

COutPoint::COutPoint ( uint256  hashIn,
unsigned int  nIn 
)
inline

Definition at line 29 of file core.h.

Member Function Documentation

COutPoint::IMPLEMENT_SERIALIZE ( READWRITE(FLATDATA(*this));  )
inline

Definition at line 30 of file core.h.

bool COutPoint::IsNull ( ) const
inline

Definition at line 32 of file core.h.

Referenced by CheckTransaction(), and CTxIn::ToString().

+ Here is the caller graph for this function:

void COutPoint::print ( ) const

Definition at line 15 of file core.cpp.

References LogPrintf, and ToString().

+ Here is the call graph for this function:

std::string COutPoint::ToString ( ) const

Definition at line 10 of file core.cpp.

References hash, n, strprintf, and base_uint< BITS >::ToString().

Referenced by print(), and CTxIn::ToString().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

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

Definition at line 44 of file core.h.

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

Definition at line 34 of file core.h.

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

Definition at line 39 of file core.h.

Member Data Documentation

uint256 COutPoint::hash
unsigned int COutPoint::n

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