Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::if_enum< IsReflected > Struct Template Reference

#include <variant.hpp>

Static Public Member Functions

template<typename T >
static void to_variant (const T &v, fc::variant &vo)
 
template<typename T >
static void from_variant (const fc::variant &v, T &o)
 

Detailed Description

template<typename IsReflected = fc::false_type>
struct fc::if_enum< IsReflected >

Definition at line 61 of file variant.hpp.

Member Function Documentation

◆ from_variant()

template<typename IsReflected = fc::false_type>
template<typename T >
static void fc::if_enum< IsReflected >::from_variant ( const fc::variant & v,
T & o )
inlinestatic

Definition at line 71 of file variant.hpp.

72 {
73 const variant_object& vo = v.get_object();
74 fc::reflector<T>::visit( from_variant_visitor<T>( vo, o ) );
75 }
variant_object & get_object()
Definition variant.cpp:554
defines visit functions for T Unless this is specialized, visit() will not be defined for T.
Definition reflect.hpp:33
Here is the call graph for this function:

◆ to_variant()

template<typename IsReflected = fc::false_type>
template<typename T >
static void fc::if_enum< IsReflected >::to_variant ( const T & v,
fc::variant & vo )
inlinestatic

Definition at line 64 of file variant.hpp.

65 {
66 mutable_variant_object mvo;
67 fc::reflector<T>::visit( to_variant_visitor<T>( mvo, v ) );
68 vo = fc::move(mvo);
69 }

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