BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
8 namespace fc {
namespace raw {
10 template<
typename Stream>
19 virtual void handle(
const int64_t& v )
const
23 virtual void handle(
const uint64_t& v )
const
27 virtual void handle(
const double& v )
const
31 virtual void handle(
const bool& v )
const
35 virtual void handle(
const string& v )
const
54 template<
typename Stream>
55 inline void pack( Stream& s,
const variant& v, uint32_t _max_depth )
62 template<
typename Stream>
68 unpack( s, t, _max_depth );
124 template<
typename Stream>
130 pack( s, vs, _max_depth );
131 for(
auto itr = v.
begin(); itr != v.
end(); ++itr )
133 pack( s, itr->key(), _max_depth );
134 pack( s, itr->value(), _max_depth );
137 template<
typename Stream>
143 unpack( s, vs, _max_depth );
146 for( uint32_t i = 0; i < vs.
value; ++i )
152 mvo.
set( std::move(key), std::move(value) );
An order-perserving dictionary of variant's.
An order-perserving dictionary of variant's.
virtual void handle(const uint64_t &v) const
virtual void handle(const double &v) const
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
mutable_variant_object & set(string key, variant var)
virtual void handle(const int64_t &v) const
std::vector< variant > variants
virtual void handle(const variants &v) const
virtual void handle() const
handles null_type variants
void visit(const visitor &v) const
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
virtual void handle(const variant_object &v) const
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Defines exception's used by fc.
#define FC_MAX_PREALLOC_SIZE
virtual void handle(const bool &v) const
virtual void handle(const string &v) const
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)
variant_packer(Stream &_s, uint32_t _max_depth)
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)