public void setVal(NodeCursor<A, V> node, V v) { // Also, vals cannot be primitive types. Need a 'null' to indicate invalid. assert (v != null); valstore.set(node.index(), v); }
public void setAgg(NodeCursor<A, V> node, A a) { assert (isAggValid(node)); aggstore.set(node.computeIndex(), a); }
public V getVal(NodeCursor<A, V> node) { return valstore.get(node.index()); }
public boolean hasVal(NodeCursor<A, V> node) { return valstore.get(node.index()) != null; }
public A getAgg(NodeCursor<A, V> node) { int index = node.computeIndex(); assert (index >= 0); if (index < aggstore.size()) return aggstore.get(index); return null; }