Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | List of all members
uint256 Class Reference

256-bit unsigned integer More...

#include <uint256.h>

+ Inheritance diagram for uint256:
+ Collaboration diagram for uint256:

Public Types

typedef base_uint256 basetype
 

Public Member Functions

 uint256 ()
 
 uint256 (const basetype &b)
 
uint256operator= (const basetype &b)
 
 uint256 (uint64_t b)
 
uint256operator= (uint64_t b)
 
 uint256 (const std::string &str)
 
 uint256 (const std::vector< unsigned char > &vch)
 
- Public Member Functions inherited from base_uint< BITS >
bool operator! () const
 
const base_uint operator~ () const
 
const base_uint operator- () const
 
double getdouble () const
 
base_uintoperator= (uint64_t b)
 
base_uintoperator^= (const base_uint &b)
 
base_uintoperator&= (const base_uint &b)
 
base_uintoperator|= (const base_uint &b)
 
base_uintoperator^= (uint64_t b)
 
base_uintoperator|= (uint64_t b)
 
base_uintoperator<<= (unsigned int shift)
 
base_uintoperator>>= (unsigned int shift)
 
base_uintoperator+= (const base_uint &b)
 
base_uintoperator-= (const base_uint &b)
 
base_uintoperator+= (uint64_t b64)
 
base_uintoperator-= (uint64_t b64)
 
base_uintoperator++ ()
 
const base_uint operator++ (int)
 
base_uintoperator-- ()
 
const base_uint operator-- (int)
 
std::string GetHex () const
 
void SetHex (const char *psz)
 
void SetHex (const std::string &str)
 
std::string ToString () const
 
unsigned char * begin ()
 
unsigned char * end ()
 
const unsigned char * begin () const
 
const unsigned char * end () const
 
unsigned int size () const
 
uint64_t GetLow64 () const
 
unsigned int GetSerializeSize (int nType, int nVersion) const
 
template<typename Stream >
void Serialize (Stream &s, int nType, int nVersion) const
 
template<typename Stream >
void Unserialize (Stream &s, int nType, int nVersion)
 

Additional Inherited Members

- Protected Types inherited from base_uint< BITS >
enum  { WIDTH =BITS/32 }
 
- Protected Attributes inherited from base_uint< BITS >
uint32_t pn [WIDTH]
 

Detailed Description

256-bit unsigned integer

Definition at line 531 of file uint256.h.

Member Typedef Documentation

Definition at line 534 of file uint256.h.

Constructor & Destructor Documentation

uint256::uint256 ( )
inline

Definition at line 536 of file uint256.h.

References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.

uint256::uint256 ( const basetype b)
inline

Definition at line 542 of file uint256.h.

References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.

uint256::uint256 ( uint64_t  b)
inline

Definition at line 555 of file uint256.h.

References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.

uint256::uint256 ( const std::string &  str)
inlineexplicit

Definition at line 572 of file uint256.h.

References base_uint< BITS >::SetHex().

+ Here is the call graph for this function:

uint256::uint256 ( const std::vector< unsigned char > &  vch)
inlineexplicit

Definition at line 577 of file uint256.h.

References memcpy(), and base_uint< BITS >::pn.

+ Here is the call graph for this function:

Member Function Documentation

uint256& uint256::operator= ( const basetype b)
inline

Definition at line 548 of file uint256.h.

References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.

uint256& uint256::operator= ( uint64_t  b)
inline

Definition at line 563 of file uint256.h.

References base_uint< BITS >::pn, and base_uint< BITS >::WIDTH.


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