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.
188 * Check whether a value is contained in the map.
195 * Get value stored in map and set it in returnValue.
196 * Return true if a value was found.
204 * Return value for key and remove it from the map.
260 explicit PersistentValueReference(PersistentContainerValue value)
261 : value_(value) { }
263 void operator=(PersistentContainerValue value) {
264 value_ = value;
271 * Get a reference to a map value. This enables fast, repeated access
272 * to a value stored in the map while the map remains unchanged.
275 * The value will become invalid if the value for this key changes
310 * Return a container value as Global and make sure the weak
339 PersistentContainerValue value) {
340 bool hasValue = value != kPersistentContainerNotFound;
343 *reinterpret_cast<internal::Address*>(FromVal(value)));
366 * Put value into map. Depending on Traits::kIsWeak, the value will be held
368 * Returns old value as Global.
370 Global<V> Set(const K& key, Local<V> value) {
371 Global<V> persistent(this->isolate(), value);
376 * Put value into map, like Set(const K&, Local<V>).
378 Global<V> Set(const K& key, Global<V> value) {
379 return SetUnique(key, &value);
383 * Put the value into the map, and set the 'weak' callback when demanded
394 Local<V> value(Local<V>::New(this->isolate(), *persistent));
396 Traits::WeakCallbackParameter(this, key, value), WeakCallback,
405 * Put a value into the map and update the reference.
408 Global<V> Set(const K& key, Global<V> value,
410 *reference = this->Leak(&value);
411 return SetUnique(key, &value);
442 * Put value into map. Depending on Traits::kIsWeak, the value will be held
444 * Returns old value as Global.
446 Global<V> Set(const K& key, Local<V> value) {
447 Global<V> persistent(this->isolate(), value);
452 * Put value into map, like Set(const K&, Local<V>).
454 Global<V> Set(const K& key, Global<V> value) {
455 return SetUnique(key, &value);
459 * Put the value into the map, and set the 'weak' callback when demanded
470 Local<V> value(Local<V>::New(this->isolate(), *persistent));
472 Traits::WeakCallbackParameter(this, key, value), OnWeakCallback,
481 * Put a value into the map and update the reference.
484 Global<V> Set(const K& key, Global<V> value,
486 *reference = this->Leak(&value);
487 return SetUnique(key, &value);
510 * A map that uses Global as value and std::map as the backing
526 * A map that uses Global as value and std::map as the backing
545 static void Append(Impl* impl, PersistentContainerValue value) {
546 impl->push_back(value);
586 * Append a value to the vector.
588 void Append(Local<V> value) {
589 Global<V> persistent(isolate_, value);
594 * Append a persistent's value to the vector.
615 * Retrieve the i-th value in the vector.