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

Method GetTag

pose_graph/src/utils/Statistics.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77std::string Statistics::GetTag(size_t handle) {
78 std::lock_guard<std::mutex> lock(Instance().mutex_);
79 std::string tag;
80 // Perform a linear search for the tag.
81 for (typename map_t::value_type current_tag : Instance().tag_map_) {
82 if (current_tag.second == handle) {
83 return current_tag.first;
84 }
85 }
86 return tag;
87}
88
89StatsCollectorImpl::StatsCollectorImpl(size_t handle) : handle_(handle) {}
90

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected