Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
CFeeRate Class Reference

Fee rate in liu per kilobyte: CAmount / kB. More...

#include <feerate.h>

Public Member Functions

 CFeeRate ()
 Fee rate of 0 liu per kB. More...
 
 CFeeRate (const CAmount &_nSatoshisPerK)
 
 CFeeRate (const CAmount &nFeePaid, size_t nBytes)
 Constructor for a fee rate in liu per kB. More...
 
 CFeeRate (const CFeeRate &other)
 
CAmount GetFee (size_t nBytes) const
 Return the fee in liu for the given size in bytes. More...
 
CAmount GetFeePerK () const
 Return the fee in liu for a size of 1000 bytes. More...
 
CFeeRateoperator+= (const CFeeRate &a)
 
std::string ToString () const
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

 ADD_SERIALIZE_METHODS
 

Private Attributes

CAmount nSatoshisPerK
 

Friends

bool operator< (const CFeeRate &a, const CFeeRate &b)
 
bool operator> (const CFeeRate &a, const CFeeRate &b)
 
bool operator== (const CFeeRate &a, const CFeeRate &b)
 
bool operator<= (const CFeeRate &a, const CFeeRate &b)
 
bool operator>= (const CFeeRate &a, const CFeeRate &b)
 
bool operator!= (const CFeeRate &a, const CFeeRate &b)
 

Detailed Description

Fee rate in liu per kilobyte: CAmount / kB.

Definition at line 20 of file feerate.h.

Constructor & Destructor Documentation

CFeeRate::CFeeRate ( )
inline

Fee rate of 0 liu per kB.

Definition at line 26 of file feerate.h.

Here is the caller graph for this function:

CFeeRate::CFeeRate ( const CAmount _nSatoshisPerK)
inlineexplicit

Definition at line 27 of file feerate.h.

Here is the call graph for this function:

CFeeRate::CFeeRate ( const CAmount nFeePaid,
size_t  nBytes 
)

Constructor for a fee rate in liu per kB.

The size in bytes must not exceed (2^63 - 1)

Definition at line 12 of file feerate.cpp.

Here is the call graph for this function:

CFeeRate::CFeeRate ( const CFeeRate other)
inline

Definition at line 30 of file feerate.h.

Here is the call graph for this function:

Member Function Documentation

CAmount CFeeRate::GetFee ( size_t  nBytes) const

Return the fee in liu for the given size in bytes.

Definition at line 23 of file feerate.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CAmount CFeeRate::GetFeePerK ( ) const
inline

Return the fee in liu for a size of 1000 bytes.

Definition at line 38 of file feerate.h.

Here is the call graph for this function:

Here is the caller graph for this function:

CFeeRate& CFeeRate::operator+= ( const CFeeRate a)
inline

Definition at line 45 of file feerate.h.

Here is the call graph for this function:

template<typename Stream , typename Operation >
void CFeeRate::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 51 of file feerate.h.

std::string CFeeRate::ToString ( ) const

Definition at line 40 of file feerate.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

bool operator!= ( const CFeeRate a,
const CFeeRate b 
)
friend

Definition at line 44 of file feerate.h.

bool operator< ( const CFeeRate a,
const CFeeRate b 
)
friend

Definition at line 39 of file feerate.h.

bool operator<= ( const CFeeRate a,
const CFeeRate b 
)
friend

Definition at line 42 of file feerate.h.

bool operator== ( const CFeeRate a,
const CFeeRate b 
)
friend

Definition at line 41 of file feerate.h.

bool operator> ( const CFeeRate a,
const CFeeRate b 
)
friend

Definition at line 40 of file feerate.h.

bool operator>= ( const CFeeRate a,
const CFeeRate b 
)
friend

Definition at line 43 of file feerate.h.

Member Data Documentation

CFeeRate::ADD_SERIALIZE_METHODS

Definition at line 48 of file feerate.h.

CAmount CFeeRate::nSatoshisPerK
private

Definition at line 23 of file feerate.h.


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