Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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:
Inheritance graph
[legend]
Collaboration diagram for CScript:
Collaboration graph
[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 (signed char b)
 
 CScript (short b)
 
 CScript (int b)
 
 CScript (long b)
 
 CScript (int64 b)
 
 CScript (unsigned char b)
 
 CScript (unsigned int b)
 
 CScript (unsigned short b)
 
 CScript (unsigned long b)
 
 CScript (uint64 b)
 
 CScript (opcodetype b)
 
 CScript (const uint256 &b)
 
 CScript (const CBigNum &b)
 
 CScript (const std::vector< unsigned char > &b)
 
CScriptoperator<< (signed char b)
 
CScriptoperator<< (short b)
 
CScriptoperator<< (int b)
 
CScriptoperator<< (long b)
 
CScriptoperator<< (int64 b)
 
CScriptoperator<< (unsigned char b)
 
CScriptoperator<< (unsigned int b)
 
CScriptoperator<< (unsigned short b)
 
CScriptoperator<< (unsigned long b)
 
CScriptoperator<< (uint64 b)
 
CScriptoperator<< (opcodetype opcode)
 
CScriptoperator<< (const uint160 &b)
 
CScriptoperator<< (const uint256 &b)
 
CScriptoperator<< (const CPubKey &key)
 
CScriptoperator<< (const CBigNum &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
 
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 n)
 
CScriptpush_uint64 (uint64 n)
 

Friends

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

Detailed Description

Serialized script, used inside transaction inputs and outputs.

Definition at line 244 of file script.h.

Constructor & Destructor Documentation

CScript::CScript ( )
inline

Definition at line 276 of file script.h.

CScript::CScript ( const CScript b)
inline

Definition at line 277 of file script.h.

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

Definition at line 278 of file script.h.

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

Definition at line 280 of file script.h.

CScript::CScript ( signed char  b)
inlineexplicit

Definition at line 298 of file script.h.

CScript::CScript ( short  b)
inlineexplicit

Definition at line 299 of file script.h.

CScript::CScript ( int  b)
inlineexplicit

Definition at line 300 of file script.h.

CScript::CScript ( long  b)
inlineexplicit

Definition at line 301 of file script.h.

CScript::CScript ( int64  b)
inlineexplicit

Definition at line 302 of file script.h.

CScript::CScript ( unsigned char  b)
inlineexplicit

Definition at line 303 of file script.h.

CScript::CScript ( unsigned int  b)
inlineexplicit

Definition at line 304 of file script.h.

CScript::CScript ( unsigned short  b)
inlineexplicit

Definition at line 305 of file script.h.

CScript::CScript ( unsigned long  b)
inlineexplicit

Definition at line 306 of file script.h.

CScript::CScript ( uint64  b)
inlineexplicit

Definition at line 307 of file script.h.

CScript::CScript ( opcodetype  b)
inlineexplicit

Definition at line 309 of file script.h.

CScript::CScript ( const uint256 b)
inlineexplicit

Definition at line 310 of file script.h.

CScript::CScript ( const CBigNum b)
inlineexplicit

Definition at line 311 of file script.h.

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

Definition at line 312 of file script.h.

Member Function Documentation

static int CScript::DecodeOP_N ( opcodetype  opcode)
inlinestatic

Definition at line 480 of file script.h.

static opcodetype CScript::EncodeOP_N ( int  n)
inlinestatic

Definition at line 487 of file script.h.

int CScript::Find ( opcodetype  op) const
inline

Definition at line 513 of file script.h.

int CScript::FindAndDelete ( const CScript b)
inline

Definition at line 495 of file script.h.

CScriptID CScript::GetID ( ) const
inline

Definition at line 589 of file script.h.

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

Definition at line 399 of file script.h.

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

Definition at line 408 of file script.h.

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

Definition at line 416 of file script.h.

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

Definition at line 421 of file script.h.

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

Definition at line 426 of file script.h.

unsigned int CScript::GetSigOpCount ( bool  fAccurate) const

Definition at line 1686 of file script.cpp.

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

... and return its opcount:

Definition at line 1710 of file script.cpp.

bool CScript::IsPayToScriptHash ( ) const

Definition at line 1734 of file script.cpp.

bool CScript::IsPushOnly ( ) const
inline

Definition at line 537 of file script.h.

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

Definition at line 283 of file script.h.

CScript& CScript::operator<< ( signed char  b)
inline

Definition at line 316 of file script.h.

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

Definition at line 317 of file script.h.

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

Definition at line 318 of file script.h.

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

Definition at line 319 of file script.h.

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

Definition at line 320 of file script.h.

CScript& CScript::operator<< ( unsigned char  b)
inline

Definition at line 321 of file script.h.

CScript& CScript::operator<< ( unsigned int  b)
inline

Definition at line 322 of file script.h.

CScript& CScript::operator<< ( unsigned short  b)
inline

Definition at line 323 of file script.h.

CScript& CScript::operator<< ( unsigned long  b)
inline

Definition at line 324 of file script.h.

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

Definition at line 325 of file script.h.

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

Definition at line 327 of file script.h.

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

Definition at line 335 of file script.h.

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

Definition at line 342 of file script.h.

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

Definition at line 349 of file script.h.

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

Definition at line 357 of file script.h.

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

Definition at line 363 of file script.h.

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

Definition at line 390 of file script.h.

void CScript::print ( ) const
inline

Definition at line 584 of file script.h.

void CScript::PrintHex ( ) const
inline

Definition at line 556 of file script.h.

CScript& CScript::push_int64 ( int64  n)
inlineprotected

Definition at line 247 of file script.h.

CScript& CScript::push_uint64 ( uint64  n)
inlineprotected

Definition at line 261 of file script.h.

void CScript::SetDestination ( const CTxDestination address)

Definition at line 1768 of file script.cpp.

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

Definition at line 1773 of file script.cpp.

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

Definition at line 561 of file script.h.

Friends And Related Function Documentation

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

Definition at line 289 of file script.h.


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