Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CHashVerifier< Source > Class Template Reference

Reads data from an underlying stream, while hashing the read data. More...

#include <hash.h>

Inheritance diagram for CHashVerifier< Source >:
[legend]
Collaboration diagram for CHashVerifier< Source >:
[legend]

Public Member Functions

 CHashVerifier (Source *source_)
 
void read (char *pch, size_t nSize)
 
void ignore (size_t nSize)
 
template<typename T >
CHashVerifier< Source > & operator>> (T &obj)
 
- Public Member Functions inherited from CHashWriter
 CHashWriter (int nTypeIn, int nVersionIn)
 
int GetType () const
 
int GetVersion () const
 
void write (const char *pch, size_t size)
 
uint256 GetHash ()
 
template<typename T >
CHashWriteroperator<< (const T &obj)
 

Private Attributes

Sourcesource
 

Detailed Description

template<typename Source>
class CHashVerifier< Source >

Reads data from an underlying stream, while hashing the read data.

Definition at line 165 of file hash.h.

Constructor & Destructor Documentation

template<typename Source>
CHashVerifier< Source >::CHashVerifier ( Source source_)
inline

Definition at line 171 of file hash.h.

Member Function Documentation

template<typename Source>
void CHashVerifier< Source >::ignore ( size_t  nSize)
inline

Definition at line 179 of file hash.h.

Here is the call graph for this function:

template<typename Source>
template<typename T >
CHashVerifier<Source>& CHashVerifier< Source >::operator>> ( T obj)
inline

Definition at line 190 of file hash.h.

Here is the call graph for this function:

template<typename Source>
void CHashVerifier< Source >::read ( char *  pch,
size_t  nSize 
)
inline

Definition at line 173 of file hash.h.

Here is the call graph for this function:

Member Data Documentation

template<typename Source>
Source* CHashVerifier< Source >::source
private

Definition at line 168 of file hash.h.


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