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

Method get_pidx

pointersect/pr/cpp/pr.cpp:46–54  ·  view source on GitHub ↗

get the pointer to the point index set

Source from the content-addressed store, hash-verified

44
45 // get the pointer to the point index set
46 std::unordered_set<int64_t> * get_pidx(int64_t gidx) {
47 auto iter = table.find(gidx);
48 if (iter == table.end()) {
49 return nullptr;
50 }
51 else {
52 return &(table[gidx]);
53 }
54 }
55
56 // get the underlying table
57 Table get_table() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected