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

Method values

ppcc/adlib/map.h:342–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341template <typename K, typename V>
342Arr<V> *Map<K, V>::values() {
343 Arr<V> *result = new Arr<V>(_count);
344 for (Int i = 0; i < _size; i++) {
345 if (_state[i] == SLOT_OCCUPIED)
346 result->add(_values[i]);
347 }
348 return result;
349}
350
351template <typename K, typename V>
352Arr<Assoc<K, V> > *Map<K, V>::pairs() {

Callers 1

MainFunction · 0.80

Calls 1

addMethod · 0.45

Tested by 1

MainFunction · 0.64