Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
CScriptNum10 Class Reference

#include <scriptnum10.h>

Public Member Functions

 CScriptNum10 (const int64_t &n)
 The ScriptNum implementation from Bitcoin Core 0.10.0, for cross-comparison. More...
 
 CScriptNum10 (const std::vector< unsigned char > &vch, bool fRequireMinimal, const size_t nMaxNumSize=nDefaultMaxNumSize)
 
bool operator== (const int64_t &rhs) const
 
bool operator!= (const int64_t &rhs) const
 
bool operator<= (const int64_t &rhs) const
 
bool operator< (const int64_t &rhs) const
 
bool operator>= (const int64_t &rhs) const
 
bool operator> (const int64_t &rhs) const
 
bool operator== (const CScriptNum10 &rhs) const
 
bool operator!= (const CScriptNum10 &rhs) const
 
bool operator<= (const CScriptNum10 &rhs) const
 
bool operator< (const CScriptNum10 &rhs) const
 
bool operator>= (const CScriptNum10 &rhs) const
 
bool operator> (const CScriptNum10 &rhs) const
 
CScriptNum10 operator+ (const int64_t &rhs) const
 
CScriptNum10 operator- (const int64_t &rhs) const
 
CScriptNum10 operator+ (const CScriptNum10 &rhs) const
 
CScriptNum10 operator- (const CScriptNum10 &rhs) const
 
CScriptNum10operator+= (const CScriptNum10 &rhs)
 
CScriptNum10operator-= (const CScriptNum10 &rhs)
 
CScriptNum10 operator- () const
 
CScriptNum10operator= (const int64_t &rhs)
 
CScriptNum10operator+= (const int64_t &rhs)
 
CScriptNum10operator-= (const int64_t &rhs)
 
int getint () const
 
std::vector< unsigned char > getvch () const
 

Static Public Member Functions

static std::vector< unsigned char > serialize (const int64_t &value)
 

Static Public Attributes

static const size_t nDefaultMaxNumSize = 4
 

Static Private Member Functions

static int64_t set_vch (const std::vector< unsigned char > &vch)
 

Private Attributes

int64_t m_value
 

Detailed Description

Definition at line 22 of file scriptnum10.h.

Constructor & Destructor Documentation

◆ CScriptNum10() [1/2]

CScriptNum10::CScriptNum10 ( const int64_t &  n)
inlineexplicit

The ScriptNum implementation from Bitcoin Core 0.10.0, for cross-comparison.

Definition at line 29 of file scriptnum10.h.

Here is the caller graph for this function:

◆ CScriptNum10() [2/2]

CScriptNum10::CScriptNum10 ( const std::vector< unsigned char > &  vch,
bool  fRequireMinimal,
const size_t  nMaxNumSize = nDefaultMaxNumSize 
)
inlineexplicit

Definition at line 36 of file scriptnum10.h.

Here is the call graph for this function:

Member Function Documentation

◆ getint()

int CScriptNum10::getint ( ) const
inline

Definition at line 113 of file scriptnum10.h.

Here is the caller graph for this function:

◆ getvch()

std::vector< unsigned char > CScriptNum10::getvch ( ) const
inline

Definition at line 122 of file scriptnum10.h.

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

◆ operator!=() [1/2]

bool CScriptNum10::operator!= ( const CScriptNum10 rhs) const
inline

Definition at line 71 of file scriptnum10.h.

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

◆ operator!=() [2/2]

bool CScriptNum10::operator!= ( const int64_t &  rhs) const
inline

Definition at line 64 of file scriptnum10.h.

◆ operator+() [1/2]

CScriptNum10 CScriptNum10::operator+ ( const CScriptNum10 rhs) const
inline

Definition at line 79 of file scriptnum10.h.

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

◆ operator+() [2/2]

CScriptNum10 CScriptNum10::operator+ ( const int64_t &  rhs) const
inline

Definition at line 77 of file scriptnum10.h.

Here is the call graph for this function:

◆ operator+=() [1/2]

CScriptNum10 & CScriptNum10::operator+= ( const CScriptNum10 rhs)
inline

Definition at line 82 of file scriptnum10.h.

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

◆ operator+=() [2/2]

CScriptNum10 & CScriptNum10::operator+= ( const int64_t &  rhs)
inline

Definition at line 97 of file scriptnum10.h.

Here is the call graph for this function:

◆ operator-() [1/3]

CScriptNum10 CScriptNum10::operator- ( ) const
inline

Definition at line 85 of file scriptnum10.h.

Here is the call graph for this function:

◆ operator-() [2/3]

CScriptNum10 CScriptNum10::operator- ( const CScriptNum10 rhs) const
inline

Definition at line 80 of file scriptnum10.h.

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

◆ operator-() [3/3]

CScriptNum10 CScriptNum10::operator- ( const int64_t &  rhs) const
inline

Definition at line 78 of file scriptnum10.h.

Here is the call graph for this function:

◆ operator-=() [1/2]

CScriptNum10 & CScriptNum10::operator-= ( const CScriptNum10 rhs)
inline

Definition at line 83 of file scriptnum10.h.

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

◆ operator-=() [2/2]

CScriptNum10 & CScriptNum10::operator-= ( const int64_t &  rhs)
inline

Definition at line 105 of file scriptnum10.h.

Here is the call graph for this function:

◆ operator<() [1/2]

bool CScriptNum10::operator< ( const CScriptNum10 rhs) const
inline

Definition at line 73 of file scriptnum10.h.

Here is the call graph for this function:

◆ operator<() [2/2]

bool CScriptNum10::operator< ( const int64_t &  rhs) const
inline

Definition at line 66 of file scriptnum10.h.

Here is the caller graph for this function:

◆ operator<=() [1/2]

bool CScriptNum10::operator<= ( const CScriptNum10 rhs) const
inline

Definition at line 72 of file scriptnum10.h.

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

◆ operator<=() [2/2]

bool CScriptNum10::operator<= ( const int64_t &  rhs) const
inline

Definition at line 65 of file scriptnum10.h.

◆ operator=()

CScriptNum10 & CScriptNum10::operator= ( const int64_t &  rhs)
inline

Definition at line 91 of file scriptnum10.h.

◆ operator==() [1/2]

bool CScriptNum10::operator== ( const CScriptNum10 rhs) const
inline

Definition at line 70 of file scriptnum10.h.

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

◆ operator==() [2/2]

bool CScriptNum10::operator== ( const int64_t &  rhs) const
inline

Definition at line 63 of file scriptnum10.h.

◆ operator>() [1/2]

bool CScriptNum10::operator> ( const CScriptNum10 rhs) const
inline

Definition at line 75 of file scriptnum10.h.

Here is the call graph for this function:

◆ operator>() [2/2]

bool CScriptNum10::operator> ( const int64_t &  rhs) const
inline

Definition at line 68 of file scriptnum10.h.

Here is the caller graph for this function:

◆ operator>=() [1/2]

bool CScriptNum10::operator>= ( const CScriptNum10 rhs) const
inline

Definition at line 74 of file scriptnum10.h.

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

◆ operator>=() [2/2]

bool CScriptNum10::operator>= ( const int64_t &  rhs) const
inline

Definition at line 67 of file scriptnum10.h.

◆ serialize()

static std::vector< unsigned char > CScriptNum10::serialize ( const int64_t &  value)
inlinestatic

Definition at line 127 of file scriptnum10.h.

Here is the caller graph for this function:

◆ set_vch()

static int64_t CScriptNum10::set_vch ( const std::vector< unsigned char > &  vch)
inlinestaticprivate

Definition at line 161 of file scriptnum10.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_value

int64_t CScriptNum10::m_value
private

Definition at line 178 of file scriptnum10.h.

◆ nDefaultMaxNumSize

const size_t CScriptNum10::nDefaultMaxNumSize = 4
static

Definition at line 34 of file scriptnum10.h.


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