Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
OverrideStream< Stream > Class Template Reference

#include <streams.h>

Public Member Functions

 OverrideStream (Stream *stream_, int nType_, int nVersion_)
 
template<typename T >
OverrideStream< Stream > & operator<< (const T &obj)
 
template<typename T >
OverrideStream< Stream > & operator>> (T &obj)
 
void write (const char *pch, size_t nSize)
 
void read (char *pch, size_t nSize)
 
int GetVersion () const
 
int GetType () const
 

Private Attributes

Stream * stream
 
const int nType
 
const int nVersion
 

Detailed Description

template<typename Stream>
class OverrideStream< Stream >

Definition at line 26 of file streams.h.

Constructor & Destructor Documentation

template<typename Stream>
OverrideStream< Stream >::OverrideStream ( Stream *  stream_,
int  nType_,
int  nVersion_ 
)
inline

Definition at line 34 of file streams.h.

Member Function Documentation

template<typename Stream>
int OverrideStream< Stream >::GetType ( ) const
inline

Definition at line 63 of file streams.h.

Here is the caller graph for this function:

template<typename Stream>
int OverrideStream< Stream >::GetVersion ( ) const
inline

Definition at line 62 of file streams.h.

Here is the caller graph for this function:

template<typename Stream>
template<typename T >
OverrideStream<Stream>& OverrideStream< Stream >::operator<< ( const T &  obj)
inline

Definition at line 37 of file streams.h.

Here is the call graph for this function:

template<typename Stream>
template<typename T >
OverrideStream<Stream>& OverrideStream< Stream >::operator>> ( T &  obj)
inline

Definition at line 45 of file streams.h.

Here is the call graph for this function:

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

Definition at line 57 of file streams.h.

template<typename Stream>
void OverrideStream< Stream >::write ( const char *  pch,
size_t  nSize 
)
inline

Definition at line 52 of file streams.h.

Member Data Documentation

template<typename Stream>
const int OverrideStream< Stream >::nType
private

Definition at line 30 of file streams.h.

template<typename Stream>
const int OverrideStream< Stream >::nVersion
private

Definition at line 31 of file streams.h.

template<typename Stream>
Stream* OverrideStream< Stream >::stream
private

Definition at line 28 of file streams.h.


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