Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
container.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <boost/interprocess/containers/vector.hpp>
6#include <boost/interprocess/containers/set.hpp>
7#include <boost/interprocess/containers/map.hpp>
8#include <boost/interprocess/containers/flat_set.hpp>
9#include <boost/interprocess/containers/flat_map.hpp>
10
11namespace fc {
12
13 namespace bip = boost::interprocess;
14
15 namespace raw {
16
17 template<typename Stream, typename T, typename... U>
18 void pack( Stream& s, const bip::set<T, U...>& value ) {
20 }
21
22 template<typename Stream, typename T, typename... U>
23 void unpack( Stream& s, bip::set<T, U...>& value ) {
25 }
26
27 template<typename Stream, typename T, typename... U>
28 void pack( Stream& s, const bip::multiset<T, U...>& value ) {
30 }
31
32 template<typename Stream, typename T, typename... U>
33 void unpack( Stream& s, bip::multiset<T, U...>& value ) {
35 }
36
37 template<typename Stream, typename K, typename V, typename... U>
38 void pack( Stream& s, const bip::map<K, V, U...>& value ) {
40 }
41
42 template<typename Stream, typename K, typename V, typename... U>
43 void unpack( Stream& s, bip::map<K, V, U...>& value ) {
45 }
46
47 template<typename Stream, typename K, typename V, typename... U>
48 void pack( Stream& s, const bip::multimap<K, V, U...>& value ) {
50 }
51
52 template<typename Stream, typename K, typename V, typename... U>
53 void unpack( Stream& s, bip::multimap<K, V, U...>& value ) {
55 }
56
57 }
58
59 template<typename T, typename... U>
60 void to_variant( const bip::set< T, U... >& s, fc::variant& vo ) {
62 }
63
64 template<typename T, typename... U>
65 void from_variant( const fc::variant& v, bip::set< T, U... >& s ) {
67 }
68
69 template<typename T, typename... U>
70 void to_variant( const bip::multiset< T, U... >& s, fc::variant& vo ) {
72 }
73
74 template<typename T, typename... U>
75 void from_variant( const fc::variant& v, bip::multiset< T, U... >& s ) {
77 }
78
79 template<typename K, typename V, typename... U >
80 void to_variant( const bip::map< K, V, U... >& m, fc::variant& vo ) {
82 }
83
84 template<typename K, typename V, typename... U>
85 void from_variant( const variant& v, bip::map<K, V, U...>& m ) {
87 }
88
89 template<typename K, typename V, typename... U >
90 void to_variant( const bip::multimap< K, V, U... >& m, fc::variant& vo ) {
92 }
93
94 template<typename K, typename V, typename... U>
95 void from_variant( const variant& v, bip::multimap<K, V, U...>& m ) {
97 }
98
99}
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition variant.hpp:191
Concept for reading and writing characters.
const uint64 K
Definition make_512.cpp:78
void to_variant_from_set(const Set< T, U... > &s, fc::variant &vo)
void from_variant_to_map(const variant &v, Map< K, V, U... > &m)
void to_variant_from_map(const Map< K, V, U... > &m, fc::variant &vo)
void from_variant_to_set(const fc::variant &v, Set< T, U... > &s)
void unpack_map(Stream &s, Map< K, V, U... > &value)
void pack_map(Stream &s, const Map< K, V, U... > &value)
void pack_set(Stream &s, const Set< T, U... > &value)
void unpack_set(Stream &s, Set< T, U... > &value)
void unpack(Stream &s, std::deque< T > &value)
Definition raw.hpp:540
void pack(Stream &s, const std::deque< T > &value)
Definition raw.hpp:531
namespace sysio::chain
Definition authority.cpp:3
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition authority.cpp:4
#define value
Definition pkcs11.h:157
#define T(meth, val, expected)
Definition test_zm.cpp:19
Definition dtoa.c:306
char * s