20 template<
typename Member,
class Class, Member (Class::*member)>
23 this->add(vo,
name,(val.*member));
34 void add( mutable_variant_object& vo,
const char*
name,
const M& v )
const
37 mutable_variant_object& vo;
49 template<
typename Member,
class Class, Member (Class::*member)>
60 template<
typename IsReflected=fc::false_type>
void operator()(const char *name) const
from_variant_visitor(const variant_object &_vo, T &v)
const variant_object & vo
An order-preserving dictionary of variants.
void operator()(const char *name) const
to_variant_visitor(mutable_variant_object &mvo, const T &v)
An order-preserving dictionary of variants.
iterator find(const string &key) const
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
variant_object & get_object()
const string & get_string() const
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)
#define T(meth, val, expected)
static void to_variant(const T &o, fc::variant &v)
static void from_variant(const fc::variant &v, T &o)
static void from_variant(const fc::variant &v, T &o)
static void to_variant(const T &v, fc::variant &vo)
defines visit functions for T Unless this is specialized, visit() will not be defined for T.