Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::variant_object::entry Class Reference

a key/value pair More...

#include <variant_object.hpp>

Public Member Functions

 entry ()
 
 entry (string k, variant v)
 
 entry (entry &&e)
 
 entry (const entry &e)
 
entryoperator= (const entry &)
 
entryoperator= (entry &&)
 
const stringkey () const
 
const variantvalue () const
 
void set (variant v)
 
variantvalue ()
 

Friends

bool operator== (const entry &a, const entry &b)
 
bool operator!= (const entry &a, const entry &b)
 

Detailed Description

Definition at line 24 of file variant_object.hpp.

Constructor & Destructor Documentation

◆ entry() [1/4]

fc::variant_object::entry::entry ( )

Definition at line 10 of file variant_object.cpp.

10{}

◆ entry() [2/4]

fc::variant_object::entry::entry ( string k,
variant v )

Definition at line 11 of file variant_object.cpp.

11: _key(fc::move(k)),_value(fc::move(v)) {}

◆ entry() [3/4]

fc::variant_object::entry::entry ( entry && e)

Definition at line 12 of file variant_object.cpp.

12: _key(fc::move(e._key)),_value(fc::move(e._value)) {}

◆ entry() [4/4]

fc::variant_object::entry::entry ( const entry & e)

Definition at line 13 of file variant_object.cpp.

13: _key(e._key),_value(e._value) {}

Member Function Documentation

◆ key()

const string & fc::variant_object::entry::key ( ) const

Definition at line 30 of file variant_object.cpp.

31 {
32 return _key;
33 }
Here is the caller graph for this function:

◆ operator=() [1/2]

variant_object::entry & fc::variant_object::entry::operator= ( const entry & e)

Definition at line 14 of file variant_object.cpp.

15 {
16 if( this != &e )
17 {
18 _key = e._key;
19 _value = e._value;
20 }
21 return *this;
22 }

◆ operator=() [2/2]

variant_object::entry & fc::variant_object::entry::operator= ( variant_object::entry && e)

Definition at line 23 of file variant_object.cpp.

24 {
25 fc_swap( _key, e._key );
26 fc_swap( _value, e._value );
27 return *this;
28 }
void fc_swap(T &a, T &b)
Definition utility.hpp:211
Here is the call graph for this function:

◆ set()

void fc::variant_object::entry::set ( variant v)

Definition at line 44 of file variant_object.cpp.

45 {
46 fc_swap( _value, v );
47 }
Here is the call graph for this function:

◆ value() [1/2]

variant & fc::variant_object::entry::value ( )

Definition at line 39 of file variant_object.cpp.

40 {
41 return _value;
42 }

◆ value() [2/2]

const variant & fc::variant_object::entry::value ( ) const

Definition at line 35 of file variant_object.cpp.

36 {
37 return _value;
38 }
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const entry & a,
const entry & b )
friend

Definition at line 43 of file variant_object.hpp.

43 {
44 return !(a == b);
45 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181

◆ operator==

bool operator== ( const entry & a,
const entry & b )
friend

Definition at line 40 of file variant_object.hpp.

40 {
41 return a._key == b._key && a._value == b._value;
42 }

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