5 #include "graphstructs.h"
9 NodeValuePair(EncodingNode *n, uint64_t val) : node(n), value(val) {}
16 void merge(EncodingValue *value);
18 HashsetEncodingNode nodes;
21 uint hashNodeValuePair(NodeValuePair *nvp);
22 bool equalsNodeValuePair(NodeValuePair *nvp1, NodeValuePair *nvp2);
24 typedef Hashtable<NodeValuePair *, EncodingValue *, uintptr_t, 4, hashNodeValuePair, equalsNodeValuePair> NVPMap;
26 class EncodingSubGraph {
29 void addNode(EncodingNode *n);
30 SetIteratorEncodingNode * nodeIterator();
35 uint estimateNewSize(EncodingNode *n);
36 uint estimateNewSize(EncodingSubGraph *sg);
37 void traverseValue(EncodingNode *node, uint64_t value);
40 HashsetEncodingNode nodes;
45 friend class EncodingGraph;