associate pidx with gidx
| 33 | |
| 34 | // associate pidx with gidx |
| 35 | void insert(int64_t gidx, int64_t pidx) { |
| 36 | auto iter = table.find(gidx); |
| 37 | if (iter == table.end()) { |
| 38 | table[gidx] = std::unordered_set<int64_t>({pidx}); |
| 39 | } |
| 40 | else { |
| 41 | table[gidx].insert(pidx); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // get the pointer to the point index set |
| 46 | std::unordered_set<int64_t> * get_pidx(int64_t gidx) { |
no outgoing calls
no test coverage detected