Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::from_variant_visitor< T > Class Template Reference

#include <variant.hpp>

Inheritance diagram for fc::from_variant_visitor< T >:
Collaboration diagram for fc::from_variant_visitor< T >:

Public Member Functions

 from_variant_visitor (const variant_object &_vo, T &v)
 
template<typename Member , class Class , Member Class::* member>
void operator() (const char *name) const
 
- Public Member Functions inherited from fc::reflector_init_visitor< T >
 reflector_init_visitor (T &c)
 
void reflector_init () const
 
void reflector_init ()
 

Public Attributes

const variant_objectvo
 

Additional Inherited Members

- Protected Attributes inherited from fc::reflector_init_visitor< T >
Tobj
 

Detailed Description

template<typename T>
class fc::from_variant_visitor< T >

Definition at line 42 of file variant.hpp.

Constructor & Destructor Documentation

◆ from_variant_visitor()

template<typename T >
fc::from_variant_visitor< T >::from_variant_visitor ( const variant_object & _vo,
T & v )
inline

Definition at line 45 of file variant.hpp.

46 :reflector_init_visitor<T>(v)
47 ,vo(_vo){}
const variant_object & vo
Definition variant.hpp:57

Member Function Documentation

◆ operator()()

template<typename T >
template<typename Member , class Class , Member Class::* member>
void fc::from_variant_visitor< T >::operator() ( const char * name) const
inline

Definition at line 50 of file variant.hpp.

51 {
52 auto itr = vo.find(name);
53 if( itr != vo.end() )
54 from_variant( itr->value(), this->obj.*member );
55 }
std::string name
iterator end() const
iterator find(const string &key) const
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
Here is the call graph for this function:

Member Data Documentation

◆ vo

template<typename T >
const variant_object& fc::from_variant_visitor< T >::vo

Definition at line 57 of file variant.hpp.


The documentation for this class was generated from the following file: