MCPcopy Create free account
hub / github.com/Singular/Singular / keys

Method keys

ppcc/adlib/map.h:332–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330
331template <typename K, typename V>
332Arr<K> *Map<K, V>::keys() {
333 Arr<K> *result = new Arr<K>(_count);
334 for (Int i = 0; i < _size; i++) {
335 if (_state[i] == SLOT_OCCUPIED)
336 result->add(_keys[i]);
337 }
338 return result;
339}
340
341template <typename K, typename V>
342Arr<V> *Map<K, V>::values() {

Callers 3

__charMethod · 0.80
right_options_moveMethod · 0.80
MainFunction · 0.80

Calls 1

addMethod · 0.45

Tested by 1

MainFunction · 0.64