MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/CompactNSearch / HashEntry

Class HashEntry

include/DataStructures.h:56–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56struct HashEntry
57{
58 HashEntry()
59 {
60 indices.reserve(INITIAL_NUMBER_OF_INDICES);
61 }
62
63 HashEntry(PointID const& id)
64 {
65 add(id);
66 }
67
68 void add(PointID const& id)
69 {
70 indices.push_back(id);
71 }
72
73 void erase(PointID const& id)
74 {
75 indices.erase(std::find(indices.begin(), indices.end(), id));
76 }
77
78 unsigned int n_indices() const
79 {
80 return static_cast<unsigned int>(indices.size());
81 }
82
83 std::vector<PointID> indices;
84};
85
86struct SpatialHasher
87{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected