|
identt
|
Public Types | |
| using | StringMapT = std::unordered_map< std::string, T > |
| using | LockT = SharedObject< StringMapT >::LockT |
| using | WriteLockT = SharedObject< StringMapT >::WriteLockT |
| using | ReadLockT = SharedObject< StringMapT >::ReadLockT |
Public Types inherited from identt::utils::SharedObject< std::unordered_map< std::string, T > > | |
| using | LockT = boost::shared_mutex |
| using | WriteLockT = boost::unique_lock< LockT > |
| using | ReadLockT = boost::shared_lock< LockT > |
Public Member Functions | |
| SharedStringMap (const SharedStringMap &)=delete | |
| make noncopyable and remove default | |
| SharedStringMap & | operator= (const SharedStringMap &)=delete |
| SharedStringMap () | |
| Constructor : default. More... | |
| virtual | ~SharedStringMap () |
| destructor | |
| void | Add (std::string key, T value) |
| Add : add one value. More... | |
| void | Add (std::string &key, T value) |
| Add : add one value by address. More... | |
| T | Get (std::string key) |
| Get : add one value. More... | |
| T | Get (std::string &key) |
| Get : add one value by address. More... | |
Public Member Functions inherited from identt::utils::SharedObject< std::unordered_map< std::string, T > > | |
| SharedObject (const SharedObject &)=delete | |
| make noncopyable and remove default | |
| SharedObject () | |
| Constructor : default. More... | |
| SharedObject (std::unordered_map< std::string, T > t) | |
| SharedObject & | operator= (const SharedObject &)=delete |
| virtual | ~SharedObject () |
| destructor | |
| void | Set (std::unordered_map< std::string, T > t) |
| Set : set. More... | |
| std::unordered_map< std::string, T > | Get () |
| Get : get. More... | |
Additional Inherited Members | |
Public Attributes inherited from identt::utils::SharedObject< std::unordered_map< std::string, T > > | |
| std::unordered_map< std::string, T > | t_ |
| LockT | mutex_ |
|
inline |
Constructor : default.
|
inline |
Add : add one value.
| key | std::string elem to add |
| value | T elem to add |
|
inline |
Add : add one value by address.
| key | std::string& elem to add |
| value | T elem to add |
|
inline |
Get : add one value.
| key | std::string elem to get |
|
inline |
Get : add one value by address.
| key | std::string& elem to get |
1.8.12