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

#include <chain.h>

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
 CBlockFileInfo ()
 
std::string ToString () const
 
void AddBlock (unsigned int nHeightIn, uint64_t nTimeIn)
 update statistics (does not update nSize) More...
 

Public Attributes

unsigned int nBlocks
 
unsigned int nSize
 number of blocks stored in file More...
 
unsigned int nUndoSize
 number of used bytes of block file More...
 
unsigned int nHeightFirst
 number of used bytes in the undo file More...
 
unsigned int nHeightLast
 lowest height of block in file More...
 
uint64_t nTimeFirst
 highest height of block in file More...
 
uint64_t nTimeLast
 earliest time of block in file More...
 
 ADD_SERIALIZE_METHODS
 latest time of block in file More...
 

Detailed Description

Definition at line 18 of file chain.h.

Constructor & Destructor Documentation

◆ CBlockFileInfo()

CBlockFileInfo::CBlockFileInfo ( )
inline

Definition at line 54 of file chain.h.

Here is the call graph for this function:

Member Function Documentation

◆ AddBlock()

void CBlockFileInfo::AddBlock ( unsigned int  nHeightIn,
uint64_t  nTimeIn 
)
inline

update statistics (does not update nSize)

Definition at line 62 of file chain.h.

◆ SerializationOp()

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

Definition at line 32 of file chain.h.

◆ SetNull()

void CBlockFileInfo::SetNull ( )
inline

Definition at line 43 of file chain.h.

Here is the caller graph for this function:

◆ ToString()

std::string CBlockFileInfo::ToString ( ) const

Definition at line 7226 of file main.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockFileInfo::ADD_SERIALIZE_METHODS

latest time of block in file

Definition at line 29 of file chain.h.

◆ nBlocks

unsigned int CBlockFileInfo::nBlocks

Definition at line 21 of file chain.h.

◆ nHeightFirst

unsigned int CBlockFileInfo::nHeightFirst

number of used bytes in the undo file

Definition at line 24 of file chain.h.

◆ nHeightLast

unsigned int CBlockFileInfo::nHeightLast

lowest height of block in file

Definition at line 25 of file chain.h.

◆ nSize

unsigned int CBlockFileInfo::nSize

number of blocks stored in file

Definition at line 22 of file chain.h.

◆ nTimeFirst

uint64_t CBlockFileInfo::nTimeFirst

highest height of block in file

Definition at line 26 of file chain.h.

◆ nTimeLast

uint64_t CBlockFileInfo::nTimeLast

earliest time of block in file

Definition at line 27 of file chain.h.

◆ nUndoSize

unsigned int CBlockFileInfo::nUndoSize

number of used bytes of block file

Definition at line 23 of file chain.h.


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