Insertion-ordered string->Json map with O(1) average lookup. More...
#include <json.h>
Public Types | |
| using | value_type = std::pair<std::string, Json> |
| using | storage = std::vector<value_type> |
Public Member Functions | |
| Object ()=default | |
| Object (const Object &)=default | |
| Object (Object &&) noexcept=default | |
| Object & | operator= (const Object &)=default |
| Object & | operator= (Object &&) noexcept=default |
| Json & | operator[] (const std::string &key) |
| Json & | operator[] (std::string &&key) |
| const Json * | find (const std::string &key) const |
| Json * | find (const std::string &key) |
| bool | contains (const std::string &key) const |
| bool | erase (const std::string &key) |
| std::size_t | size () const |
| bool | empty () const |
| void | clear () |
| storage::iterator | begin () |
| storage::iterator | end () |
| storage::const_iterator | begin () const |
| storage::const_iterator | end () const |
| bool | operator== (const Object &other) const |
| using librats::Json::Object::storage = std::vector<value_type> |
| using librats::Json::Object::value_type = std::pair<std::string, Json> |
|
default |
Referenced by Object(), Object(), operator=(), operator=(), and operator==().
|
default |
References Object().
|
defaultnoexcept |
References Object().
|
inline |
|
inline |
|
inline |
| bool librats::Json::Object::erase | ( | const std::string & | key | ) |
| Json * librats::Json::Object::find | ( | const std::string & | key | ) |
References librats::Json::Json(), and find().
| const Json * librats::Json::Object::find | ( | const std::string & | key | ) | const |
References librats::Json::Json(), and find().
Referenced by contains(), find(), and find().
| Json & librats::Json::Object::operator[] | ( | const std::string & | key | ) |
References librats::Json::Json().
| Json & librats::Json::Object::operator[] | ( | std::string && | key | ) |
References librats::Json::Json().