veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::Coin Struct Reference

represents VBK atomic units More...

Detailed Description

Definition at line 21 of file coin.hpp.

#include <coin.hpp>

+ Collaboration diagram for altintegration::Coin:

Public Member Functions

std::string toPrettyString () const
 
 Coin (int64_t atomicUnits)
 
void toVbkEncoding (WriteStream &stream) const
 Convert Coin to data stream using BtcTx Coin byte format. More...
 
size_t estimateSize () const
 
bool operator== (const Coin &other) const noexcept
 Compare two Coins for equality. More...
 

Public Attributes

int64_t units {}
 

Constructor & Destructor Documentation

◆ Coin()

altintegration::Coin::Coin ( int64_t  atomicUnits)
inlineexplicit

Definition at line 28 of file coin.hpp.

28: units(atomicUnits) {}

Member Function Documentation

◆ operator==()

bool altintegration::Coin::operator== ( const Coin other) const
noexcept
Parameters
otherCoin
Returns
comparing result

◆ toVbkEncoding()

void altintegration::Coin::toVbkEncoding ( WriteStream stream) const
Parameters
streamdata stream to write into

Member Data Documentation

◆ units

int64_t altintegration::Coin::units {}

Definition at line 22 of file coin.hpp.


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