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

#include <abi_serializer.hpp>

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

Public Member Functions

fc::scoped_exit< std::function< void()> > disallow_extensions_unless (bool condition)
 
bool extensions_allowed () const
 
 abi_traverse_context_with_path (const abi_serializer &abis, abi_serializer::yield_function_t yield, const std::string_view &type)
 
 abi_traverse_context_with_path (const abi_serializer &abis, const abi_traverse_context &ctx, const std::string_view &type)
 
- Public Member Functions inherited from sysio::chain::impl::abi_traverse_context_with_path
 abi_traverse_context_with_path (const abi_serializer &abis, abi_serializer::yield_function_t yield, const std::string_view &type)
 
 abi_traverse_context_with_path (const abi_serializer &abis, const abi_traverse_context &ctx, const std::string_view &type)
 
void set_path_root (const std::string_view &type)
 
fc::scoped_exit< std::function< void()> > push_to_path (const path_item &item)
 
void set_array_index_of_path_back (uint32_t i)
 
void hint_array_type_if_in_array ()
 
void hint_struct_type_if_in_array (const map< type_name, struct_def >::const_iterator &itr)
 
void hint_variant_type_if_in_array (const map< type_name, variant_def >::const_iterator &itr)
 
string get_path_string () const
 
string maybe_shorten (const std::string_view &str)
 
- Public Member Functions inherited from sysio::chain::impl::abi_traverse_context
 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

bool allow_extensions = true
 
- Protected Attributes inherited from sysio::chain::impl::abi_traverse_context_with_path
const abi_serializerabis
 
path_root root_of_path
 
vector< path_itempath
 
- Protected Attributes inherited from sysio::chain::impl::abi_traverse_context
abi_serializer::yield_function_t yield
 
size_t recursion_depth = 0
 
bool log = false
 

Additional Inherited Members

- Public Attributes inherited from sysio::chain::impl::abi_traverse_context_with_path
bool short_path = false
 

Detailed Description

Definition at line 265 of file abi_serializer.hpp.

Member Function Documentation

◆ abi_traverse_context_with_path() [1/2]

sysio::chain::impl::abi_traverse_context_with_path::abi_traverse_context_with_path ( const abi_serializer & abis,
abi_serializer::yield_function_t yield,
const std::string_view & type )
inline

Definition at line 228 of file abi_serializer.hpp.

229 : abi_traverse_context( std::move( yield ) ), abis(abis)
230 {
231 set_path_root(type);
232 }
void set_path_root(const std::string_view &type)
abi_traverse_context(abi_serializer::yield_function_t yield)
abi_serializer::yield_function_t yield

◆ abi_traverse_context_with_path() [2/2]

sysio::chain::impl::abi_traverse_context_with_path::abi_traverse_context_with_path ( const abi_serializer & abis,
const abi_traverse_context & ctx,
const std::string_view & type )
inline

Definition at line 234 of file abi_serializer.hpp.

236 {
237 set_path_root(type);
238 }

◆ disallow_extensions_unless()

fc::scoped_exit< std::function< void()> > sysio::chain::impl::variant_to_binary_context::disallow_extensions_unless ( bool condition)

Definition at line 886 of file abi_serializer.cpp.

886 {
887 std::function<void()> callback = [old_allow_extensions=allow_extensions, this](){
888 allow_extensions = old_allow_extensions;
889 };
890
891 if( !condition ) {
892 allow_extensions = false;
893 }
894
895 return {std::move(callback)};
896 }

◆ extensions_allowed()

bool sysio::chain::impl::variant_to_binary_context::extensions_allowed ( ) const
inline

Definition at line 270 of file abi_serializer.hpp.

270{ return allow_extensions; }

Member Data Documentation

◆ allow_extensions

bool sysio::chain::impl::variant_to_binary_context::allow_extensions = true
protected

Definition at line 273 of file abi_serializer.hpp.


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