Bitcoin
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)
 
void SetNull ()
 
 CBlockFileInfo ()
 
std::string ToString () const
 
void AddBlock (unsigned int nHeightIn, uint64_t nTimeIn)
 

Public Attributes

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

Constructor & Destructor Documentation

◆ CBlockFileInfo()

CBlockFileInfo::CBlockFileInfo ( )
inline

Member Function Documentation

◆ AddBlock()

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

update statistics (does not update nSize)

◆ SerializationOp()

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

◆ SetNull()

void CBlockFileInfo::SetNull ( )
inline

◆ ToString()

std::string CBlockFileInfo::ToString ( ) const

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockFileInfo::ADD_SERIALIZE_METHODS

◆ nBlocks

unsigned int CBlockFileInfo::nBlocks

number of blocks stored in file

◆ nHeightFirst

unsigned int CBlockFileInfo::nHeightFirst

lowest height of block in file

◆ nHeightLast

unsigned int CBlockFileInfo::nHeightLast

highest height of block in file

◆ nSize

unsigned int CBlockFileInfo::nSize

number of used bytes of block file

◆ nTimeFirst

uint64_t CBlockFileInfo::nTimeFirst

earliest time of block in file

◆ nTimeLast

uint64_t CBlockFileInfo::nTimeLast

latest time of block in file

◆ nUndoSize

unsigned int CBlockFileInfo::nUndoSize

number of used bytes in the undo file


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