Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
CScript Class Reference

Serialized script, used inside transaction inputs and outputs. More...

#include <script.h>

Inheritance diagram for CScript:
[legend]
Collaboration diagram for CScript:
[legend]

Public Member Functions

 CScript ()
 
 CScript (const CScript &b)
 
 CScript (const_iterator pbegin, const_iterator pend)
 
 CScript (const unsigned char *pbegin, const unsigned char *pend)
 
CScriptoperator+= (const CScript &b)
 
 CScript (int64_t b)
 
 CScript (opcodetype b)
 
 CScript (const uint256 &b)
 
 CScript (const CScriptNum &b)
 
 CScript (const std::vector< unsigned char > &b)
 
CScriptoperator<< (int64_t b)
 
CScriptoperator<< (opcodetype opcode)
 
CScriptoperator<< (const uint160 &b)
 
CScriptoperator<< (const uint256 &b)
 
CScriptoperator<< (const CPubKey &key)
 
CScriptoperator<< (const CScriptNum &b)
 
CScriptoperator<< (const std::vector< unsigned char > &b)
 
CScriptoperator<< (const CScript &b)
 
bool GetOp (iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet)
 
bool GetOp (iterator &pc, opcodetype &opcodeRet)
 
bool GetOp (const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet) const
 
bool GetOp (const_iterator &pc, opcodetype &opcodeRet) const
 
bool GetOp2 (const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > *pvchRet) const
 
int FindAndDelete (const CScript &b)
 
int Find (opcodetype op) const
 
unsigned int GetSigOpCount (bool fAccurate) const
 
unsigned int GetSigOpCount (const CScript &scriptSig) const
 
bool IsPayToScriptHash () const
 
bool IsPushOnly () const
 
bool HasCanonicalPushes () const
 
bool IsUnspendable () const
 
void SetDestination (const CTxDestination &address)
 
void SetMultisig (int nRequired, const std::vector< CPubKey > &keys)
 
void PrintHex () const
 
std::string ToString () const
 
void print () const
 
CScriptID GetID () const
 

Static Public Member Functions

static int DecodeOP_N (opcodetype opcode)
 
static opcodetype EncodeOP_N (int n)
 

Protected Member Functions

CScriptpush_int64 (int64_t n)
 

Friends

CScript operator+ (const CScript &a, const CScript &b)
 

Detailed Description

Serialized script, used inside transaction inputs and outputs.

Definition at line 413 of file script.h.

Constructor & Destructor Documentation

CScript::CScript ( )
inline

Definition at line 429 of file script.h.

CScript::CScript ( const CScript b)
inline

Definition at line 430 of file script.h.

CScript::CScript ( const_iterator  pbegin,
const_iterator  pend 
)
inline

Definition at line 431 of file script.h.

CScript::CScript ( const unsigned char *  pbegin,
const unsigned char *  pend 
)
inline

Definition at line 433 of file script.h.

CScript::CScript ( int64_t  b)
inline

Definition at line 450 of file script.h.

Here is the call graph for this function:

CScript::CScript ( opcodetype  b)
inlineexplicit

Definition at line 452 of file script.h.

Here is the call graph for this function:

CScript::CScript ( const uint256 b)
inlineexplicit

Definition at line 453 of file script.h.

Here is the call graph for this function:

CScript::CScript ( const CScriptNum b)
inlineexplicit

Definition at line 454 of file script.h.

Here is the call graph for this function:

CScript::CScript ( const std::vector< unsigned char > &  b)
inlineexplicit

Definition at line 455 of file script.h.

Here is the call graph for this function:

Member Function Documentation

static int CScript::DecodeOP_N ( opcodetype  opcode)
inlinestatic

Definition at line 613 of file script.h.

Here is the caller graph for this function:

static opcodetype CScript::EncodeOP_N ( int  n)
inlinestatic

Definition at line 620 of file script.h.

int CScript::Find ( opcodetype  op) const
inline

Definition at line 646 of file script.h.

Here is the call graph for this function:

int CScript::FindAndDelete ( const CScript b)
inline

Definition at line 628 of file script.h.

Here is the call graph for this function:

Here is the caller graph for this function:

CScriptID CScript::GetID ( ) const
inline

Definition at line 720 of file script.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CScript::GetOp ( iterator &  pc,
opcodetype opcodeRet,
std::vector< unsigned char > &  vchRet 
)
inline

Definition at line 532 of file script.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CScript::GetOp ( iterator &  pc,
opcodetype opcodeRet 
)
inline

Definition at line 541 of file script.h.

Here is the call graph for this function:

bool CScript::GetOp ( const_iterator &  pc,
opcodetype opcodeRet,
std::vector< unsigned char > &  vchRet 
) const
inline

Definition at line 549 of file script.h.

Here is the call graph for this function:

bool CScript::GetOp ( const_iterator &  pc,
opcodetype opcodeRet 
) const
inline

Definition at line 554 of file script.h.

Here is the call graph for this function:

bool CScript::GetOp2 ( const_iterator &  pc,
opcodetype opcodeRet,
std::vector< unsigned char > *  pvchRet 
) const
inline

Definition at line 559 of file script.h.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int CScript::GetSigOpCount ( bool  fAccurate) const

Definition at line 1818 of file script.cpp.

Here is the caller graph for this function:

unsigned int CScript::GetSigOpCount ( const CScript scriptSig) const

... and return its opcount:

Definition at line 1842 of file script.cpp.

Here is the call graph for this function:

bool CScript::HasCanonicalPushes ( ) const

Definition at line 1893 of file script.cpp.

Here is the caller graph for this function:

bool CScript::IsPayToScriptHash ( ) const

Definition at line 1866 of file script.cpp.

Here is the caller graph for this function:

bool CScript::IsPushOnly ( ) const

Definition at line 1875 of file script.cpp.

Here is the caller graph for this function:

bool CScript::IsUnspendable ( ) const
inline

Definition at line 678 of file script.h.

CScript& CScript::operator+= ( const CScript b)
inline

Definition at line 436 of file script.h.

CScript& CScript::operator<< ( int64_t  b)
inline

Definition at line 458 of file script.h.

Here is the call graph for this function:

Here is the caller graph for this function:

CScript& CScript::operator<< ( opcodetype  opcode)
inline

Definition at line 460 of file script.h.

CScript& CScript::operator<< ( const uint160 b)
inline

Definition at line 468 of file script.h.

CScript& CScript::operator<< ( const uint256 b)
inline

Definition at line 475 of file script.h.

CScript& CScript::operator<< ( const CPubKey key)
inline

Definition at line 482 of file script.h.

Here is the call graph for this function:

CScript& CScript::operator<< ( const CScriptNum b)
inline

Definition at line 490 of file script.h.

Here is the call graph for this function:

CScript& CScript::operator<< ( const std::vector< unsigned char > &  b)
inline

Definition at line 496 of file script.h.

CScript& CScript::operator<< ( const CScript b)
inline

Definition at line 523 of file script.h.

void CScript::print ( ) const
inline

Definition at line 715 of file script.h.

Here is the call graph for this function:

void CScript::PrintHex ( ) const
inline

Definition at line 687 of file script.h.

Here is the call graph for this function:

CScript& CScript::push_int64 ( int64_t  n)
inlineprotected

Definition at line 416 of file script.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void CScript::SetDestination ( const CTxDestination address)

Definition at line 1945 of file script.cpp.

Here is the caller graph for this function:

void CScript::SetMultisig ( int  nRequired,
const std::vector< CPubKey > &  keys 
)

Definition at line 1950 of file script.cpp.

Here is the caller graph for this function:

std::string CScript::ToString ( ) const
inline

Definition at line 692 of file script.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

CScript operator+ ( const CScript a,
const CScript b 
)
friend

Definition at line 442 of file script.h.


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