Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::detail::snapshot_row_writer< T > Struct Template Reference

#include <snapshot.hpp>

Inheritance diagram for sysio::chain::detail::snapshot_row_writer< T >:
Collaboration diagram for sysio::chain::detail::snapshot_row_writer< T >:

Public Member Functions

 snapshot_row_writer (const T &data)
 
template<typename DataStream >
void write_stream (DataStream &out) const
 
void write (ostream_wrapper &out) const override
 
void write (fc::sha256::encoder &out) const override
 
fc::variant to_variant () const override
 
std::string row_type_name () const override
 
- Public Member Functions inherited from sysio::chain::detail::abstract_snapshot_row_writer

Public Attributes

const Tdata
 

Detailed Description

template<typename T>
struct sysio::chain::detail::snapshot_row_writer< T >

Definition at line 79 of file snapshot.hpp.

Constructor & Destructor Documentation

◆ snapshot_row_writer()

template<typename T >
sysio::chain::detail::snapshot_row_writer< T >::snapshot_row_writer ( const T & data)
inlineexplicit

Definition at line 80 of file snapshot.hpp.

Member Function Documentation

◆ row_type_name()

template<typename T >
std::string sysio::chain::detail::snapshot_row_writer< T >::row_type_name ( ) const
inlineoverridevirtual

Implements sysio::chain::detail::abstract_snapshot_row_writer.

Definition at line 102 of file snapshot.hpp.

102 {
103 return boost::core::demangle( typeid( T ).name() );
104 }
std::string name
#define T(meth, val, expected)

◆ to_variant()

template<typename T >
fc::variant sysio::chain::detail::snapshot_row_writer< T >::to_variant ( ) const
inlineoverridevirtual

Implements sysio::chain::detail::abstract_snapshot_row_writer.

Definition at line 96 of file snapshot.hpp.

96 {
97 fc::variant var;
98 fc::to_variant(data, var);
99 return var;
100 }
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition variant.hpp:191
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition authority.cpp:4
Here is the call graph for this function:

◆ write() [1/2]

template<typename T >
void sysio::chain::detail::snapshot_row_writer< T >::write ( fc::sha256::encoder & out) const
inlineoverridevirtual

Implements sysio::chain::detail::abstract_snapshot_row_writer.

Definition at line 92 of file snapshot.hpp.

92 {
93 write_stream(out);
94 }
void write_stream(DataStream &out) const
Definition snapshot.hpp:84
Here is the call graph for this function:

◆ write() [2/2]

template<typename T >
void sysio::chain::detail::snapshot_row_writer< T >::write ( ostream_wrapper & out) const
inlineoverridevirtual

Implements sysio::chain::detail::abstract_snapshot_row_writer.

Definition at line 88 of file snapshot.hpp.

88 {
89 write_stream(out);
90 }
Here is the call graph for this function:

◆ write_stream()

template<typename T >
template<typename DataStream >
void sysio::chain::detail::snapshot_row_writer< T >::write_stream ( DataStream & out) const
inline

Definition at line 84 of file snapshot.hpp.

84 {
85 fc::raw::pack(out, data);
86 }
void pack(Stream &s, const std::deque< T > &value)
Definition raw.hpp:531
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ data

template<typename T >
const T& sysio::chain::detail::snapshot_row_writer< T >::data

Definition at line 106 of file snapshot.hpp.


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