Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
Wrapper< Formatter, T > Class Template Reference

Simple wrapper class to serialize objects using a formatter; used by Using(). More...

#include <serialize.h>

Public Member Functions

 Wrapper (T obj)
template<typename Stream>
void Serialize (Stream &s) const
template<typename Stream>
void Unserialize (Stream &s)

Protected Attributes

T m_object

Detailed Description

template<typename Formatter, typename T>
class Wrapper< Formatter, T >

Simple wrapper class to serialize objects using a formatter; used by Using().

Definition at line 466 of file serialize.h.

Constructor & Destructor Documentation

◆ Wrapper()

template<typename Formatter, typename T>
Wrapper< Formatter, T >::Wrapper ( T obj)
inlineexplicit

Definition at line 472 of file serialize.h.

Member Function Documentation

◆ Serialize()

template<typename Formatter, typename T>
template<typename Stream>
void Wrapper< Formatter, T >::Serialize ( Stream & s) const
inline

Definition at line 473 of file serialize.h.

◆ Unserialize()

template<typename Formatter, typename T>
template<typename Stream>
void Wrapper< Formatter, T >::Unserialize ( Stream & s)
inline

Definition at line 474 of file serialize.h.

Member Data Documentation

◆ m_object

template<typename Formatter, typename T>
T Wrapper< Formatter, T >::m_object
protected

Definition at line 470 of file serialize.h.


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