MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / HasHandle

Method HasHandle

pose_graph/src/utils/Statistics.cpp:71–75  ·  view source on GitHub ↗

Return true if a handle has been initialized for a specific tag. In contrast to GetHandle(), this allows testing for existence without modifying the tag/handle map.

Source from the content-addressed store, hash-verified

69// In contrast to GetHandle(), this allows testing for existence without
70// modifying the tag/handle map.
71bool Statistics::HasHandle(std::string const& tag) {
72 std::lock_guard<std::mutex> lock(Instance().mutex_);
73 bool tag_found = Instance().tag_map_.count(tag);
74 return tag_found;
75}
76
77std::string Statistics::GetTag(size_t handle) {
78 std::lock_guard<std::mutex> lock(Instance().mutex_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected