8-byte Copy-on-Write wrapper around std::unordered_map<std::string, std::string>.
More...
#include <Style.hpp>
|
|
using | Map = std::unordered_map<std::string, std::string> |
|
using | const_iterator = Map::const_iterator |
|
|
| SharedPropMap (const Map &m) |
|
| SharedPropMap (Map &&m) |
|
| SharedPropMap (const SharedPropMap &o) noexcept |
|
| SharedPropMap (SharedPropMap &&o) noexcept |
|
SharedPropMap & | operator= (const SharedPropMap &o) noexcept |
|
SharedPropMap & | operator= (SharedPropMap &&o) noexcept |
|
SharedPropMap & | operator= (const Map &m) |
|
bool | empty () const noexcept |
|
size_t | size () const noexcept |
|
uint64_t | versionId () const noexcept |
|
bool | sharesStorageWith (const SharedPropMap &o) const noexcept |
|
const Map & | asMap () const noexcept |
|
| operator const Map & () const noexcept |
|
const_iterator | begin () const noexcept |
|
const_iterator | end () const noexcept |
|
const_iterator | cbegin () const noexcept |
|
const_iterator | cend () const noexcept |
|
const_iterator | find (const std::string &k) const |
|
size_t | count (const std::string &k) const |
|
bool | contains (const std::string &k) const |
|
const std::string & | at (const std::string &k) const |
|
std::string & | operator[] (const std::string &k) |
|
std::string & | operator[] (std::string &&k) |
|
template<typename... Args> |
| auto | emplace (Args &&...args) |
|
template<typename V> |
| auto | insert_or_assign (const std::string &k, V &&v) |
|
size_t | erase (const std::string &k) |
|
void | clear () noexcept |
|
void | mergeFrom (const SharedPropMap &other) |
|
bool | operator== (const SharedPropMap &o) const |
|
bool | operator!= (const SharedPropMap &o) const |
8-byte Copy-on-Write wrapper around std::unordered_map<std::string, std::string>.
Empty maps occupy a single null pointer (zero heap allocation). Copying shares storage in O(1); mutating detaches on write and bumps a monotonic versionId() used by StyleResolver's ThemeCache.
The documentation for this class was generated from the following file: