Wire Sysio Wire Sysion 1.0.0
|
An order-preserving dictionary of variants. More...
#include <variant_object.hpp>
Classes | |
class | entry |
a key/value pair More... | |
Public Types | |
typedef std::vector< entry >::const_iterator | iterator |
Public Member Functions | |
variant_object () | |
variant_object (string key, variant val) | |
template<typename T > | |
variant_object (string key, T &&val) | |
variant_object (const variant_object &) | |
variant_object (variant_object &&) | |
variant_object (const mutable_variant_object &) | |
variant_object (mutable_variant_object &&) | |
variant_object & | operator= (variant_object &&) |
variant_object & | operator= (const variant_object &) |
variant_object & | operator= (mutable_variant_object &&) |
variant_object & | operator= (const mutable_variant_object &) |
size_t | estimated_size () const |
Immutable Interface | |
Calling these methods will not result in copies of the underlying type. | |
iterator | begin () const |
iterator | end () const |
iterator | find (const string &key) const |
iterator | find (const char *key) const |
const variant & | operator[] (const string &key) const |
const variant & | operator[] (const char *key) const |
size_t | size () const |
bool | contains (const char *key) const |
Friends | |
class | mutable_variant_object |
Keys are kept in the order they are inserted. This dictionary implements copy-on-write
Definition at line 20 of file variant_object.hpp.
std::vector<entry>::const_iterator fc::variant_object::iterator |
Definition at line 52 of file variant_object.hpp.
fc::variant_object::variant_object | ( | ) |
Definition at line 97 of file variant_object.cpp.
initializes the first key/value pair in the object
Definition at line 102 of file variant_object.cpp.
Definition at line 77 of file variant_object.hpp.
fc::variant_object::variant_object | ( | const variant_object & | obj | ) |
Definition at line 109 of file variant_object.cpp.
fc::variant_object::variant_object | ( | variant_object && | obj | ) |
Definition at line 115 of file variant_object.cpp.
fc::variant_object::variant_object | ( | const mutable_variant_object & | obj | ) |
Definition at line 122 of file variant_object.cpp.
fc::variant_object::variant_object | ( | mutable_variant_object && | obj | ) |
Definition at line 127 of file variant_object.cpp.
variant_object::iterator fc::variant_object::begin | ( | ) | const |
|
inline |
Definition at line 68 of file variant_object.hpp.
variant_object::iterator fc::variant_object::end | ( | ) | const |
Definition at line 58 of file variant_object.cpp.
size_t fc::variant_object::estimated_size | ( | ) | const |
Definition at line 165 of file variant_object.cpp.
variant_object::iterator fc::variant_object::find | ( | const char * | key | ) | const |
Definition at line 68 of file variant_object.cpp.
variant_object::iterator fc::variant_object::find | ( | const string & | key | ) | const |
Definition at line 63 of file variant_object.cpp.
variant_object & fc::variant_object::operator= | ( | const mutable_variant_object & | obj | ) |
Definition at line 159 of file variant_object.cpp.
variant_object & fc::variant_object::operator= | ( | const variant_object & | obj | ) |
Definition at line 143 of file variant_object.cpp.
variant_object & fc::variant_object::operator= | ( | mutable_variant_object && | obj | ) |
Definition at line 152 of file variant_object.cpp.
variant_object & fc::variant_object::operator= | ( | variant_object && | obj | ) |
Definition at line 133 of file variant_object.cpp.
const variant & fc::variant_object::operator[] | ( | const char * | key | ) | const |
Definition at line 85 of file variant_object.cpp.
Definition at line 80 of file variant_object.cpp.
size_t fc::variant_object::size | ( | ) | const |
Definition at line 92 of file variant_object.cpp.
|
friend |
Definition at line 98 of file variant_object.hpp.