PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
CFeeRate Class Reference

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

#include <amount.h>

Public Member Functions

 CFeeRate ()
 
 CFeeRate (const CAmount &_nSatoshisPerK)
 
 CFeeRate (const CAmount &nFeePaid, size_t nSize)
 
 CFeeRate (const CFeeRate &other)
 
CAmount GetFee (size_t size) const
 
CAmount GetFeePerK () const
 
std::string ToString () const
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 

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)
 

Detailed Description

Fee rate in PRCY per kilobyte: CAmount / kB.

Definition at line 39 of file amount.h.

Constructor & Destructor Documentation

◆ CFeeRate() [1/4]

CFeeRate::CFeeRate ( )
inline

Definition at line 44 of file amount.h.

◆ CFeeRate() [2/4]

CFeeRate::CFeeRate ( const CAmount _nSatoshisPerK)
inlineexplicit

Definition at line 45 of file amount.h.

◆ CFeeRate() [3/4]

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

Definition at line 12 of file amount.cpp.

◆ CFeeRate() [4/4]

CFeeRate::CFeeRate ( const CFeeRate other)
inline

Definition at line 47 of file amount.h.

Member Function Documentation

◆ GetFee()

CAmount CFeeRate::GetFee ( size_t  size) const

Definition at line 20 of file amount.cpp.

Here is the caller graph for this function:

◆ GetFeePerK()

CAmount CFeeRate::GetFeePerK ( ) const
inline

Definition at line 50 of file amount.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializationOp()

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

Definition at line 62 of file amount.h.

◆ ToString()

std::string CFeeRate::ToString ( ) const

Definition at line 30 of file amount.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<

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

Definition at line 52 of file amount.h.

◆ operator<=

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

Definition at line 55 of file amount.h.

◆ operator==

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

Definition at line 54 of file amount.h.

◆ operator>

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

Definition at line 53 of file amount.h.

◆ operator>=

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

Definition at line 56 of file amount.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CFeeRate::ADD_SERIALIZE_METHODS

Definition at line 59 of file amount.h.

◆ nSatoshisPerK

CAmount CFeeRate::nSatoshisPerK
private

Definition at line 42 of file amount.h.


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