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

#include <snapshot.hpp>

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

Public Member Functions

 snapshot_row_reader (T &data)
 
void provide (std::istream &in) const override
 
void provide (const fc::variant &var) const override
 
std::string row_type_name () const override
 
- Public Member Functions inherited from sysio::chain::detail::abstract_snapshot_row_reader

Public Attributes

Tdata
 

Detailed Description

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

Definition at line 194 of file snapshot.hpp.

Constructor & Destructor Documentation

◆ snapshot_row_reader()

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

Definition at line 195 of file snapshot.hpp.

Member Function Documentation

◆ provide() [1/2]

template<typename T >
void sysio::chain::detail::snapshot_row_reader< T >::provide ( const fc::variant & var) const
inlineoverridevirtual

Implements sysio::chain::detail::abstract_snapshot_row_reader.

Definition at line 205 of file snapshot.hpp.

205 {
206 row_validation_helper::apply(data, [&var,this]() {
207 fc::from_variant(var, data);
208 });
209 }
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
static auto apply(const T &data, F f) -> std::enable_if_t< is_chainbase_object_v< T > >
Definition snapshot.hpp:179
Here is the call graph for this function:

◆ provide() [2/2]

template<typename T >
void sysio::chain::detail::snapshot_row_reader< T >::provide ( std::istream & in) const
inlineoverridevirtual

Implements sysio::chain::detail::abstract_snapshot_row_reader.

Definition at line 199 of file snapshot.hpp.

199 {
200 row_validation_helper::apply(data, [&in,this](){
201 fc::raw::unpack(in, data);
202 });
203 }
void unpack(Stream &s, std::deque< T > &value)
Definition raw.hpp:540
Here is the call graph for this function:

◆ row_type_name()

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

Implements sysio::chain::detail::abstract_snapshot_row_reader.

Definition at line 211 of file snapshot.hpp.

211 {
212 return boost::core::demangle( typeid( T ).name() );
213 }
std::string name
#define T(meth, val, expected)

Member Data Documentation

◆ data

template<typename T >
T& sysio::chain::detail::snapshot_row_reader< T >::data

Definition at line 215 of file snapshot.hpp.


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