BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
32 #include <boost/container/flat_map.hpp>
36 namespace graphene {
namespace wallet {
40 using boost::container::flat_map;
51 std::string
clean_name(
const std::string& name );
59 template<
typename T >
72 template<
typename StaticVariant >
77 template<
typename Member >
93 template<
typename T >
98 dummy.set_which( which );
100 return dummy.visit( vtor );
107 int n = dummy.count();
108 FC_ASSERT( n <= std::numeric_limits<uint16_t>::max(),
"Too many items in this static_variant" );
110 for(
int i=0; i<n; i++ )
static_variant_map create_static_variant_map()
from_which_visitor(const variant &_v, uint32_t max_depth)
static_variant_map_visitor()
T from_which_variant(int which, const variant &v, uint32_t max_depth)
StaticVariant result_type
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
const uint32_t _max_depth
std::string clean_name(const std::string &name)
result_type operator()(const Member &dummy)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
vector< string > which_to_name
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Defines exception's used by fc.
flat_map< string, int > name_to_which
result_type operator()(const T &dummy)