Lines Matching refs:value
58 PersistentContainerValue value) {
59 std::pair<Iterator, bool> res = impl->insert(std::make_pair(key, value));
63 res.first->second = value;
75 PersistentContainerValue value = it->second;
77 return value;
100 MapType* map, const K& key, Local<V> value) {
112 static void Dispose(Isolate* isolate, Global<V> value, K key) {}
129 Local<V> value) {
143 static void Dispose(Isolate* isolate, Global<V> value, K key) {}
156 * A map wrapper that allows using Global as a mapped value.
181 * Get value stored in map.
192 * Check whether a value is contained in the map.
199 * Get value stored in map and set it in returnValue.
200 * Return true if a value was found.
208 * Return value for key and remove it from the map.
265 explicit PersistentValueReference(PersistentContainerValue value)
266 : value_(value) { }
268 void operator=(PersistentContainerValue value) {
269 value_ = value;
276 * Get a reference to a map value. This enables fast, repeated access
277 * to a value stored in the map while the map remains unchanged.
280 * The value will become invalid if the value for this key changes
305 V* v = persistent->template value<V>();
315 * Return a container value as Global and make sure the weak
345 PersistentContainerValue value) {
346 bool hasValue = value != kPersistentContainerNotFound;
349 *reinterpret_cast<internal::Address*>(FromVal(value)));
372 * Put value into map. Depending on Traits::kIsWeak, the value will be held
374 * Returns old value as Global.
376 Global<V> Set(const K& key, Local<V> value) {
377 Global<V> persistent(this->isolate(), value);
382 * Put value into map, like Set(const K&, Local<V>).
384 Global<V> Set(const K& key, Global<V> value) {
385 return SetUnique(key, &value);
389 * Put the value into the map, and set the 'weak' callback when demanded
400 auto value = Local<V>::New(this->isolate(), *persistent);
402 Traits::WeakCallbackParameter(this, key, value), WeakCallback,
411 * Put a value into the map and update the reference.
414 Global<V> Set(const K& key, Global<V> value,
416 *reference = this->Leak(&value);
417 return SetUnique(key, &value);
448 * Put value into map. Depending on Traits::kIsWeak, the value will be held
450 * Returns old value as Global.
452 Global<V> Set(const K& key, Local<V> value) {
453 Global<V> persistent(this->isolate(), value);
458 * Put value into map, like Set(const K&, Local<V>).
460 Global<V> Set(const K& key, Global<V> value) {
461 return SetUnique(key, &value);
465 * Put the value into the map, and set the 'weak' callback when demanded
476 auto value = Local<V>::New(this->isolate(), *persistent);
478 Traits::WeakCallbackParameter(this, key, value), OnWeakCallback,
487 * Put a value into the map and update the reference.
490 Global<V> Set(const K& key, Global<V> value,
492 *reference = this->Leak(&value);
493 return SetUnique(key, &value);
516 * A map that uses Global as value and std::map as the backing
532 * A map that uses Global as value and std::map as the backing
550 static void Append(Impl* impl, PersistentContainerValue value) {
551 impl->push_back(value);
590 * Append a value to the vector.
592 void Append(Local<V> value) {
593 Global<V> persistent(isolate_, value);
598 * Append a persistent's value to the vector.
619 * Retrieve the i-th value in the vector.