Home | History | Annotate | Download | only in include

Lines Matching defs:Key

50   static K Key(Iterator it) { return it->first; }
52 static PersistentContainerValue Set(Impl* impl, K key,
54 std::pair<Iterator, bool> res = impl->insert(std::make_pair(key, value));
62 static PersistentContainerValue Get(Impl* impl, K key) {
63 Iterator it = impl->find(key);
67 static PersistentContainerValue Remove(Impl* impl, K key) {
68 Iterator it = impl->find(key);
95 MapType* map, const K& key, Local<V> value) {
107 static void Dispose(Isolate* isolate, Global<V> value, K key) {}
123 static WeakCallbackDataType* WeakCallbackParameter(MapType* map, const K& key,
138 static void Dispose(Isolate* isolate, Global<V> value, K key) {}
178 Local<V> Get(const K& key) {
179 return Local<V>::New(isolate_, FromVal(Traits::Get(&impl_, key)));
185 bool Contains(const K& key) {
186 return Traits::Get(&impl_, key) != kPersistentContainerNotFound;
193 bool SetReturnValue(const K& key,
195 return SetReturnValueFromVal(&returnValue, Traits::Get(&impl_, key));
201 void SetReference(const K& key,
205 reinterpret_cast<internal::Object**>(FromVal(Traits::Get(&impl_, key))));
209 * Return value for key and remove it from the map.
211 Global<V> Remove(const K& key) {
212 return Release(Traits::Remove(&impl_, key)).Pass();
228 Traits::Key(i));
280 * The value will become invalid if the value for this key changes
282 * key; as a result of the weak callback for the same key; or as a
285 PersistentValueReference GetReference(const K& key) {
286 return PersistentValueReference(Traits::Get(&impl_, key));
326 void RemoveWeak(const K& key) {
328 p.val_ = FromVal(Traits::Remove(&impl_, key));
366 Global<V> Set(const K& key, Local<V> value) {
368 return SetUnique(key, &persistent);
374 Global<V> Set(const K& key, Global<V> value) {
375 return SetUnique(key, &value);
382 Global<V> SetUnique(const K& key, Global<V>* persistent) {
386 Traits::WeakCallbackParameter(this, key, value), WeakCallback);
389 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
397 Global<V> Set(const K& key, Global<V> value,
400 return SetUnique(key, &value);
409 K key = Traits::KeyFromWeakCallbackData(data);
411 persistentValueMap->Remove(key).Pass(), key);
433 Global<V> Set(const K& key, Local<V> value) {
435 return SetUnique(key, &persistent);
441 Global<V> Set(const K& key, Global<V> value) {
442 return SetUnique(key, &value);
449 Global<V> SetUnique(const K& key, Global<V>* persistent) {
457 Traits::WeakCallbackParameter(this, key, value), OnWeakCallback,
461 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
469 Global<V> Set(const K& key, Global<V> value,
472 return SetUnique(key, &value);
480 K key = Traits::KeyFromWeakCallbackInfo(data);
481 map->RemoveWeak(key);