Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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 (Span< const std::byte > src)
 
void read (Span< std::byte > dst)
 
int GetVersion () const
 
int GetType () const
 
void ignore (size_t size)
 

Private Attributes

Streamstream
 
const int nType
 
const int nVersion
 

Detailed Description

template<typename Stream>
class OverrideStream< Stream >

Definition at line 25 of file streams.h.

Constructor & Destructor Documentation

◆ OverrideStream()

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

Definition at line 32 of file streams.h.

Member Function Documentation

◆ GetType()

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

Definition at line 52 of file streams.h.

◆ GetVersion()

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

Definition at line 51 of file streams.h.

◆ ignore()

template<typename Stream >
void OverrideStream< Stream >::ignore ( size_t  size)
inline

Definition at line 53 of file streams.h.

◆ operator<<()

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

Definition at line 32 of file streams.h.

◆ operator>>()

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

Definition at line 41 of file streams.h.

Here is the call graph for this function:

◆ read()

template<typename Stream >
void OverrideStream< Stream >::read ( Span< std::byte >  dst)
inline

Definition at line 49 of file streams.h.

Here is the call graph for this function:

◆ write()

template<typename Stream >
void OverrideStream< Stream >::write ( Span< const std::byte >  src)
inline

Definition at line 47 of file streams.h.

Member Data Documentation

◆ nType

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

Definition at line 28 of file streams.h.

◆ nVersion

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

Definition at line 29 of file streams.h.

◆ stream

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

Definition at line 26 of file streams.h.


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