PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CTxOut Class Reference

An output of a transaction. More...

#include <transaction.h>

Collaboration diagram for CTxOut:
[legend]

Public Member Functions

 CTxOut ()
 
 CTxOut (const CAmount &nValueIn, CScript scriptPubKeyIn)
 
 SERIALIZE_METHODS (CTxOut, obj)
 
void SetNull ()
 
bool IsNull () const
 
void SetEmpty ()
 
bool IsEmpty () const
 
uint256 GetHash () const
 
bool IsZerocoinMint () const
 
std::string ToString () const
 
size_t DynamicMemoryUsage () const
 

Public Attributes

CAmount nValue
 
CScript scriptPubKey
 
int nRounds
 

Friends

bool operator== (const CTxOut &a, const CTxOut &b)
 
bool operator!= (const CTxOut &a, const CTxOut &b)
 

Detailed Description

An output of a transaction.

It contains the public key that the next input must be able to sign with to claim it.

Definition at line 136 of file transaction.h.

Constructor & Destructor Documentation

◆ CTxOut() [1/2]

CTxOut::CTxOut ( )
inline

Definition at line 143 of file transaction.h.

Here is the call graph for this function:

◆ CTxOut() [2/2]

CTxOut::CTxOut ( const CAmount nValueIn,
CScript  scriptPubKeyIn 
)

Definition at line 71 of file transaction.cpp.

Member Function Documentation

◆ DynamicMemoryUsage()

size_t CTxOut::DynamicMemoryUsage ( ) const
inline

Definition at line 193 of file transaction.h.

Here is the call graph for this function:

◆ GetHash()

uint256 CTxOut::GetHash ( ) const

Definition at line 78 of file transaction.cpp.

Here is the call graph for this function:

◆ IsEmpty()

bool CTxOut::IsEmpty ( ) const
inline

Definition at line 170 of file transaction.h.

Here is the call graph for this function:

◆ IsNull()

bool CTxOut::IsNull ( ) const
inline

Definition at line 159 of file transaction.h.

Here is the caller graph for this function:

◆ IsZerocoinMint()

bool CTxOut::IsZerocoinMint ( ) const

Definition at line 83 of file transaction.cpp.

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

◆ SERIALIZE_METHODS()

CTxOut::SERIALIZE_METHODS ( CTxOut  ,
obj   
)
inline

Definition at line 150 of file transaction.h.

◆ SetEmpty()

void CTxOut::SetEmpty ( )
inline

Definition at line 164 of file transaction.h.

Here is the call graph for this function:

◆ SetNull()

void CTxOut::SetNull ( )
inline

Definition at line 152 of file transaction.h.

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

◆ ToString()

std::string CTxOut::ToString ( ) const

Definition at line 88 of file transaction.cpp.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 186 of file transaction.h.

◆ operator==

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

Definition at line 179 of file transaction.h.

Member Data Documentation

◆ nRounds

int CTxOut::nRounds

Definition at line 141 of file transaction.h.

◆ nValue

CAmount CTxOut::nValue

Definition at line 139 of file transaction.h.

◆ scriptPubKey

CScript CTxOut::scriptPubKey

Definition at line 140 of file transaction.h.


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