Dash Core  0.12.2.1
P2P Digital Currency
CDiskBlockPos Struct Reference

#include <chain.h>

+ Inheritance diagram for CDiskBlockPos:

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
 CDiskBlockPos ()
 
 CDiskBlockPos (int nFileIn, unsigned int nPosIn)
 
void SetNull ()
 
bool IsNull () const
 
std::string ToString () const
 

Public Attributes

int nFile
 
unsigned int nPos
 
 ADD_SERIALIZE_METHODS
 

Friends

bool operator== (const CDiskBlockPos &a, const CDiskBlockPos &b)
 
bool operator!= (const CDiskBlockPos &a, const CDiskBlockPos &b)
 

Detailed Description

Definition at line 17 of file chain.h.

Constructor & Destructor Documentation

◆ CDiskBlockPos() [1/2]

CDiskBlockPos::CDiskBlockPos ( )
inline

Definition at line 30 of file chain.h.

◆ CDiskBlockPos() [2/2]

CDiskBlockPos::CDiskBlockPos ( int  nFileIn,
unsigned int  nPosIn 
)
inline

Definition at line 34 of file chain.h.

Member Function Documentation

◆ IsNull()

bool CDiskBlockPos::IsNull ( ) const
inline

Definition at line 48 of file chain.h.

Referenced by ConnectBlock(), DisconnectBlock(), OpenDiskFile(), and CVerifyDB::VerifyDB().

◆ SerializationOp()

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

Definition at line 25 of file chain.h.

◆ SetNull()

void CDiskBlockPos::SetNull ( )
inline

Definition at line 47 of file chain.h.

Referenced by CDiskBlockPos(), and CDiskTxPos::SetNull().

◆ ToString()

std::string CDiskBlockPos::ToString ( ) const
inline

Definition at line 50 of file chain.h.

Referenced by ReadBlockFromDisk().

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 43 of file chain.h.

◆ operator==

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

Definition at line 39 of file chain.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CDiskBlockPos::ADD_SERIALIZE_METHODS

Definition at line 22 of file chain.h.

◆ nFile

◆ nPos


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