LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::friendlyname Namespace Reference

Functions

std::string friendlyName (std::string const &iFullName)
 

Function Documentation

std::string art::friendlyname::friendlyName ( std::string const &  iFullName)

Definition at line 143 of file FriendlyName.cc.

Referenced by art::BranchDescription::BranchDescription(), art::detail::createProductLookups(), and art::TypeID::friendlyClassName().

144 {
145  static std::recursive_mutex s_mutex;
146  static std::map<std::string, std::string> s_nameMap;
147  std::lock_guard sentry{s_mutex};
148  auto entry = s_nameMap.find(iFullName);
149  if (entry == s_nameMap.end()) {
150  entry =
151  s_nameMap.emplace(iFullName, subFriendlyName(standardRenames(iFullName)))
152  .first;
153  }
154  return entry->second;
155 }