8 template<
typename IntType,
typename EnumType>
16 :
value( (EnumType)t ){}
20 explicit operator IntType()
const {
return static_cast<IntType
>(
value); }
21 operator EnumType()
const {
return value; }
50 template<
typename IntType,
typename EnumType>
53 vo = (EnumType)var.value;
55 template<
typename IntType,
typename EnumType>
58 vo.value = var.
as<EnumType>();
65 template<
typename Stream,
typename IntType,
typename EnumType>
71 template<
typename Stream,
typename IntType,
typename EnumType>
friend bool operator==(const enum_type &e, const enum_type &i)
friend bool operator==(EnumType i, const enum_type &e)
friend bool operator==(const enum_type &e, EnumType i)
friend bool operator==(IntType i, const enum_type &e)
friend bool operator!=(const enum_type &e, EnumType i)
bool operator>(EnumType i) const
enum_type & operator=(IntType i)
bool operator<=(const enum_type &e) const
bool operator<(const enum_type &e) const
bool operator>=(const enum_type &e) const
bool operator<(EnumType i) const
friend bool operator!=(const enum_type &e, const enum_type &i)
friend bool operator!=(const enum_type &e, IntType i)
bool operator>(const enum_type &e) const
enum_type & operator=(EnumType i)
friend bool operator==(const enum_type &e, IntType i)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Concept for reading and writing characters.
void unpack(Stream &s, std::deque< T > &value)
void pack(Stream &s, const std::deque< T > &value)
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)
defines visit functions for T Unless this is specialized, visit() will not be defined for T.