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) );
virtual void handle(const variant_object &v) const
virtual void handle(const bool &v) const
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)
An order-perserving dictionary of variant's.
std::vector< variant > variants
virtual void handle(const double &v) const
variant_packer(Stream &_s, uint32_t _max_depth)
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
virtual void handle(const uint64_t &v) const
virtual void handle() const
handles null_type variants
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)
Defines exception's used by fc.
void visit(const visitor &v) const
virtual void handle(const string &v) const
#define FC_MAX_PREALLOC_SIZE
mutable_variant_object & set(string key, variant var)
virtual void handle(const int64_t &v) const
virtual void handle(const variants &v) const
An order-perserving dictionary of variant's.