Lines Matching refs:key

24 size_t HashItem(const std::string& key, const T& value)  in HashItem()  argument
26 return std::hash<std::string>()(key) + std::hash<T>()(value); in HashItem()
30 void UObject::AddItemToObject(const std::string& key, const char* value) in AddItemToObject() argument
33 stringItems_[key] = value; in AddItemToObject()
37 void UObject::AddItemToObject(const std::string& key, const std::string& value) in AddItemToObject() argument
39 stringItems_[key] = value; in AddItemToObject()
42 void UObject::AddItemToObject(const std::string& key, size_t value) in AddItemToObject() argument
44 sizetItems_[key] = value; in AddItemToObject()
47 void UObject::AddItemToObject(const std::string& key, int32_t value) in AddItemToObject() argument
49 int32Items_[key] = value; in AddItemToObject()
52 void UObject::AddItemToObject(const std::string& key, int64_t value) in AddItemToObject() argument
54 int64Items_[key] = value; in AddItemToObject()
57 void UObject::AddItemToObject(const std::string& key, double value) in AddItemToObject() argument
59 doubleItems_[key] = value; in AddItemToObject()
62 void UObject::AddItemToObject(const std::string& key, bool value) in AddItemToObject() argument
64 boolItems_[key] = value; in AddItemToObject()
67 void UObject::AddItemToObject(const std::string& key, const std::shared_ptr<UObject>& value) in AddItemToObject() argument
70 children_[key] = std::move(value); in AddItemToObject()
74 std::string UObject::GetString(const std::string& key) const in GetString()
76 auto iter = stringItems_.find(key); in GetString()
83 size_t UObject::GetSizeT(const std::string& key) const in GetSizeT()
85 auto sizetIter = sizetItems_.find(key); in GetSizeT()
89 auto doubleIter = doubleItems_.find(key); in GetSizeT()
96 int32_t UObject::GetInt32(const std::string& key) const in GetInt32()
98 auto int32Iter = int32Items_.find(key); in GetInt32()
102 auto doubleIter = doubleItems_.find(key); in GetInt32()
109 int64_t UObject::GetInt64(const std::string& key) const in GetInt64()
111 auto int64Iter = int64Items_.find(key); in GetInt64()
115 auto doubleIter = doubleItems_.find(key); in GetInt64()
122 double UObject::GetDouble(const std::string& key) const in GetDouble()
124 auto iter = doubleItems_.find(key); in GetDouble()
131 bool UObject::GetBool(const std::string& key) const in GetBool()
133 auto iter = boolItems_.find(key); in GetBool()
140 std::shared_ptr<UObject> UObject::GetObject(const std::string& key) const in GetObject()
142 auto iter = children_.find(key); in GetObject()
149 bool UObject::Contains(const std::string& key) const in Contains()
151 …return stringItems_.count(key) || sizetItems_.count(key) || int32Items_.count(key) || int64Items_.… in Contains()
152 doubleItems_.count(key) || boolItems_.count(key) || children_.count(key); in Contains()
323 void UObject::WriteKV(const std::string& key, const std::string& value) in WriteKV() argument
326 WriteInt32(key.length()); in WriteKV()
327 WriteString(key); in WriteKV()
332 void UObject::WriteKV(const std::string& key, size_t value) in WriteKV() argument
335 WriteInt32(key.length()); in WriteKV()
336 WriteString(key); in WriteKV()
340 void UObject::WriteKV(const std::string& key, int32_t value) in WriteKV() argument
343 WriteInt32(key.length()); in WriteKV()
344 WriteString(key); in WriteKV()
348 void UObject::WriteKV(const std::string& key, int64_t value) in WriteKV() argument
351 WriteInt32(key.length()); in WriteKV()
352 WriteString(key); in WriteKV()
356 void UObject::WriteKV(const std::string& key, double value) in WriteKV() argument
359 WriteInt32(key.length()); in WriteKV()
360 WriteString(key); in WriteKV()
364 void UObject::WriteKV(const std::string& key, bool value) in WriteKV() argument
367 WriteInt32(key.length()); in WriteKV()
368 WriteString(key); in WriteKV()
372 void UObject::WriteObj(const std::string& key, const std::shared_ptr<UObject>& obj) in WriteObj() argument
375 WriteInt32(key.length()); in WriteObj()
376 WriteString(key); in WriteObj()
460 std::string key = ReadString(keyLen); in ReadKey() local
461 return key; in ReadKey()
468 std::string key = ReadKey(); in ReadKV() local
471 AddItemToObject(key, value); in ReadKV()
473 std::string key = ReadKey(); in ReadKV() local
475 AddItemToObject(key, value); in ReadKV()
477 std::string key = ReadKey(); in ReadKV() local
479 AddItemToObject(key, value); in ReadKV()
481 std::string key = ReadKey(); in ReadKV() local
483 AddItemToObject(key, value); in ReadKV()
485 std::string key = ReadKey(); in ReadKV() local
487 AddItemToObject(key, value); in ReadKV()
489 std::string key = ReadKey(); in ReadKV() local
491 AddItemToObject(key, value); in ReadKV()
493 std::string key = ReadKey(); in ReadKV() local
496 AddItemToObject(key, obj); in ReadKV()