Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::impl::abi_traverse_context Struct Reference

#include <abi_serializer.hpp>

Inheritance diagram for sysio::chain::impl::abi_traverse_context:
Collaboration diagram for sysio::chain::impl::abi_traverse_context:

Public Member Functions

 abi_traverse_context (abi_serializer::yield_function_t yield)
 
void logging ()
 
bool is_logging () const
 
void check_deadline () const
 
abi_serializer::yield_function_t get_yield_function ()
 
fc::scoped_exit< std::function< void()> > enter_scope ()
 

Protected Attributes

abi_serializer::yield_function_t yield
 
size_t recursion_depth = 0
 
bool log = false
 

Detailed Description

Definition at line 173 of file abi_serializer.hpp.

Constructor & Destructor Documentation

◆ abi_traverse_context()

sysio::chain::impl::abi_traverse_context::abi_traverse_context ( abi_serializer::yield_function_t yield)
inlineexplicit

Definition at line 174 of file abi_serializer.hpp.

175 : yield(std::move( yield ))
176 {
177 }
abi_serializer::yield_function_t yield

Member Function Documentation

◆ check_deadline()

void sysio::chain::impl::abi_traverse_context::check_deadline ( ) const
inline

◆ enter_scope()

fc::scoped_exit< std::function< void()> > sysio::chain::impl::abi_traverse_context::enter_scope ( )

Definition at line 631 of file abi_serializer.cpp.

631 {
632 std::function<void()> callback = [old_recursion_depth=recursion_depth, this](){
633 recursion_depth = old_recursion_depth;
634 };
635
638
639 return {std::move(callback)};
640 }
Here is the caller graph for this function:

◆ get_yield_function()

abi_serializer::yield_function_t sysio::chain::impl::abi_traverse_context::get_yield_function ( )
inline

Definition at line 183 of file abi_serializer.hpp.

183{ return yield; }

◆ is_logging()

bool sysio::chain::impl::abi_traverse_context::is_logging ( ) const
inline

Definition at line 180 of file abi_serializer.hpp.

Here is the caller graph for this function:

◆ logging()

void sysio::chain::impl::abi_traverse_context::logging ( )
inline

Definition at line 179 of file abi_serializer.hpp.

179{ log = true; } // generate variant for logging
Here is the caller graph for this function:

Member Data Documentation

◆ log

bool sysio::chain::impl::abi_traverse_context::log = false
protected

Definition at line 190 of file abi_serializer.hpp.

◆ recursion_depth

size_t sysio::chain::impl::abi_traverse_context::recursion_depth = 0
protected

Definition at line 189 of file abi_serializer.hpp.

◆ yield

abi_serializer::yield_function_t sysio::chain::impl::abi_traverse_context::yield
protected

Definition at line 188 of file abi_serializer.hpp.


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