Lines Matching defs:map

34 // Basic map operations on top of upb's strtable.
38 // errors due to incorrect map key or value types are raised as close as
51 // one-to-one to equality of keys. We store strings directly (i.e., they map to
181 VALUE Map_set_frame(VALUE map, VALUE val) {
182 Map* self = ruby_to_Map(map);
200 * => new map
205 * indicate the type of the map key and value fields.
217 * The last argument, if present, provides initial content for map. Note that
223 * shallow-copied into the new Map: the original map is unmodified, but
254 rb_raise(rb_eArgError, "Invalid key type for map.");
281 * Invokes &block on each |key, value| pair in the map, in unspecified order.
282 * Note that Map also includes Enumerable; map thus acts like a normal Ruby
310 * Returns the list of keys contained in the map, in unspecified order.
332 * Returns the list of values contained in the map, in unspecified order.
360 * incorrect. Returns nil when the key is not present in the map.
420 * Returns true if the given key is present in the map. Throws an exception if
467 * Removes all entries from the map.
487 * Returns the number of entries (key-value pairs) in the map.
513 * Duplicates this map with a shallow copy. References to all non-primitive
570 * Compares this map to another. Maps are equal if they have identical key sets,
618 // Not present in other map.
636 * Returns a hash value based on this map's contents.
666 * Returns a Ruby Hash object containing all the values within the map
694 * Returns a string representing this map's elements. It will be formatted as
733 * Map.merge(other_map) => map
735 * Copies key/value pairs from other_map into a copy of this map. If a key is
736 * set in other_map and this map, the value from other_map overwrites the value
737 * in the new copy of this map. Returns the new copy of this map with merged
786 // Internal method: map iterator initialization (used for serialization).