MCPcopy Create free account
hub / github.com/apple/ml-pointersect / insert

Method insert

pointersect/pr/cpp/pr.cpp:35–43  ·  view source on GitHub ↗

associate pidx with gidx

Source from the content-addressed store, hash-verified

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) {

Callers 7

set_bucket_boundariesMethod · 0.80
set_dataset_lengthsMethod · 0.80
_determine_bucketsMethod · 0.80
compare_rgbd_imagesFunction · 0.80
gather_pointsFunction · 0.80
grid_ray_intersectionFunction · 0.80
grid_ray_intersection_v2Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected