Raven Core  3.0.0
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 27 of file streams.h.

Constructor & Destructor Documentation

◆ OverrideStream()

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

Definition at line 35 of file streams.h.

Member Function Documentation

◆ GetType()

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

Definition at line 64 of file streams.h.

Here is the caller graph for this function:

◆ GetVersion()

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

Definition at line 63 of file streams.h.

Here is the caller graph for this function:

◆ operator<<()

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

Definition at line 38 of file streams.h.

Here is the call graph for this function:

◆ operator>>()

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

Definition at line 46 of file streams.h.

Here is the call graph for this function:

◆ read()

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

Definition at line 58 of file streams.h.

◆ write()

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

Definition at line 53 of file streams.h.

Member Data Documentation

◆ nType

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

Definition at line 31 of file streams.h.

◆ nVersion

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

Definition at line 32 of file streams.h.

◆ stream

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

Definition at line 29 of file streams.h.


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