Wire Sysio Wire Sysion 1.0.0
|
An order-preserving dictionary of variants. More...
#include <variant_object.hpp>
Public Types | |
typedef variant_object::entry | entry |
a key/value pair | |
typedef std::vector< entry >::iterator | iterator |
typedef std::vector< entry >::const_iterator | const_iterator |
Friends | |
class | variant_object |
Keys are kept in the order they are inserted. This dictionary implements copy-on-write
Definition at line 117 of file variant_object.hpp.
std::vector<entry>::const_iterator fc::mutable_variant_object::const_iterator |
Definition at line 124 of file variant_object.hpp.
Definition at line 121 of file variant_object.hpp.
std::vector<entry>::iterator fc::mutable_variant_object::iterator |
Definition at line 123 of file variant_object.hpp.
|
inlineexplicit |
Definition at line 212 of file variant_object.hpp.
fc::mutable_variant_object::mutable_variant_object | ( | ) |
Definition at line 273 of file variant_object.cpp.
initializes the first key/value pair in the object
Definition at line 278 of file variant_object.cpp.
|
inline |
Definition at line 223 of file variant_object.hpp.
fc::mutable_variant_object::mutable_variant_object | ( | mutable_variant_object && | obj | ) |
Definition at line 294 of file variant_object.cpp.
fc::mutable_variant_object::mutable_variant_object | ( | const mutable_variant_object & | obj | ) |
Definition at line 289 of file variant_object.cpp.
fc::mutable_variant_object::mutable_variant_object | ( | const variant_object & | obj | ) |
Definition at line 284 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::begin | ( | ) |
Definition at line 190 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::begin | ( | ) | const |
Definition at line 200 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::end | ( | ) |
Definition at line 195 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::end | ( | ) | const |
Definition at line 205 of file variant_object.cpp.
void fc::mutable_variant_object::erase | ( | const string & | key | ) |
Definition at line 328 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::find | ( | const char * | key | ) |
Definition at line 232 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::find | ( | const char * | key | ) | const |
Definition at line 215 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::find | ( | const string & | key | ) |
Definition at line 227 of file variant_object.cpp.
mutable_variant_object::iterator fc::mutable_variant_object::find | ( | const string & | key | ) | const |
Definition at line 210 of file variant_object.cpp.
mutable_variant_object & fc::mutable_variant_object::operator() | ( | const mutable_variant_object & | mvo | ) | & |
Copy another mutable_variant_object into this mutable_variant_object.
Definition at line 398 of file variant_object.cpp.
mutable_variant_object fc::mutable_variant_object::operator() | ( | const mutable_variant_object & | mvo | ) | && |
Definition at line 407 of file variant_object.cpp.
mutable_variant_object & fc::mutable_variant_object::operator() | ( | const variant_object & | vo | ) | & |
Copy a variant_object into this mutable_variant_object.
Definition at line 384 of file variant_object.cpp.
mutable_variant_object fc::mutable_variant_object::operator() | ( | const variant_object & | vo | ) | && |
Definition at line 391 of file variant_object.cpp.
|
inline |
Definition at line 185 of file variant_object.hpp.
|
inline |
Definition at line 191 of file variant_object.hpp.
mutable_variant_object & fc::mutable_variant_object::operator() | ( | string | key, |
variant | var ) & |
Appends key and var without checking for duplicates, designed to simplify construction of dictionaries using (key,val)(key2,val2) syntax Convenience method to simplify the manual construction of variant_objects
Instead of: mutable_variant_object("c",c).set("a",a).set("b",b);
You can use: mutable_variant_object( "c", c )( "b", b)( "c",c )
Appends key and var without checking for duplicates, designed to simplify construction of dictionaries using (key,val)(key2,val2) syntax
Definition at line 372 of file variant_object.cpp.
mutable_variant_object fc::mutable_variant_object::operator() | ( | string | key, |
variant | var ) && |
Definition at line 378 of file variant_object.cpp.
mutable_variant_object & fc::mutable_variant_object::operator= | ( | const mutable_variant_object & | obj | ) |
Definition at line 314 of file variant_object.cpp.
mutable_variant_object & fc::mutable_variant_object::operator= | ( | const variant_object & | obj | ) |
Definition at line 299 of file variant_object.cpp.
mutable_variant_object & fc::mutable_variant_object::operator= | ( | mutable_variant_object && | obj | ) |
Definition at line 305 of file variant_object.cpp.
variant & fc::mutable_variant_object::operator[] | ( | const char * | key | ) |
Definition at line 260 of file variant_object.cpp.
const variant & fc::mutable_variant_object::operator[] | ( | const char * | key | ) | const |
Definition at line 249 of file variant_object.cpp.
Definition at line 255 of file variant_object.cpp.
Definition at line 244 of file variant_object.cpp.
void fc::mutable_variant_object::reserve | ( | size_t | s | ) |
mutable_variant_object & fc::mutable_variant_object::set | ( | string | key, |
variant | var ) & |
replaces the value at key with var or inserts key if not found
replaces the value at key with var or insert's key if not found
Definition at line 341 of file variant_object.cpp.
mutable_variant_object fc::mutable_variant_object::set | ( | string | key, |
variant | var ) && |
Definition at line 355 of file variant_object.cpp.
size_t fc::mutable_variant_object::size | ( | ) | const |
Definition at line 268 of file variant_object.cpp.
|
friend |
Definition at line 238 of file variant_object.hpp.