|
|
|
static const std::string | emptyString ("") |
|
std::string | friendlyName (std::string const &iFullName) |
|
std::string | handleNamespaces (std::string const &iIn) |
|
std::string | handleTemplateArguments (std::string const &) |
|
static const std::regex | reAIKR (", *edm::helper::AssociationIdenticalKeyReference") |
|
static const std::regex | reAllSpaces (" +") |
|
static const std::regex | reArray ("\\[\\]") |
|
static const std::regex | reBeginSpace ("^ +") |
|
static const std::regex | reclangabi ("std::__1::") |
|
static const std::regex | reColons ("::") |
|
static const std::regex | reComma (",") |
|
static const std::regex | reCXX11 ("std::__cxx11::") |
|
static const std::regex | reEndSpace (" +$") |
|
static const std::regex | reLong ("long ") |
|
static const std::regex | reLongLong ("Long64_t") |
|
std::string | removeAllSpaces (std::string const &iIn) |
|
std::string | removeExtraSpaces (std::string const &iIn) |
|
static const std::regex | reOneToMany ("edm::AssociationMap< *edm::OneToMany<(.*?),(.*?), *u[a-z]*> >") |
|
static const std::regex | reOneToManyWithQuality ("edm::AssociationMap<edm::OneToManyWithQuality<(.*?), *(.*?), *(.*?), *u[a-z]*> >") |
|
static const std::regex | reOneToOne ("edm::AssociationMap< *edm::OneToOne<(.*?),(.*?), *u[a-z]*> >") |
|
static const std::regex | reOneToValue ("edm::AssociationMap< *edm::OneToValue<(.*?),(.*?), *u[a-z]*> >") |
|
static const std::regex | reOwnVector ("edm::OwnVector<(.*), *edm::ClonePolicy<\\1 *> >") |
|
static const std::regex | rePointer ("\\*") |
|
static const std::regex | reSharedPtr ("std::shared_ptr") |
|
static const std::regex | reSorted ("edm::SortedCollection<(.*), *edm::StrictWeakOrdering<\\1 *> >") |
|
static const std::regex | reString ("std::basic_string<char>") |
|
static const std::regex | reString2 ("std::string") |
|
static const std::regex | reString3 ("std::basic_string<char,std::char_traits<char> >") |
|
static const std::regex | reTemplateArgs ("[^<]*<(.*)>$") |
|
static const std::regex | reToRangeMap ("edm::RangeMap< *(.*), *(.*), *edm::ClonePolicy<([^>]*)> >") |
|
static const std::regex | reToRefs1 ("edm::RefVector< *(.*)< *(.*) *>, *\\2 *, *edm::refhelper::FindUsingAdvance< *\\1< *\\2 *> *, *\\2 *> *>") |
|
static const std::regex | reToRefs2 ("edm::RefVector< *(.*) *, *(.*) *, *edm::refhelper::FindUsingAdvance< *\\1, *\\2 *> *>") |
|
static const std::regex | reToRefsAssoc ("edm::RefVector< *Association(.*) *, *edm::helper(.*), *Association(.*)::Find>") |
|
static const std::regex | reToVector ("edm::AssociationVector<(.*), *(.*), *edm::Ref.*,.*>") |
|
static const std::regex | reULongLong ("ULong64_t") |
|
static const std::regex | reUniquePtr ("^std::unique_ptr") |
|
static const std::regex | reUniquePtrDeleter ("^std::unique_ptr< *(.*), *std::default_delete<\\1> *>") |
|
static const std::regex | reUnorderedMap ("std::unordered_map") |
|
static const std::regex | reUnorderedMapCustomHashKeyEqual ("std::unordered_map< *(.*), *(.*), *(.*) *, *std::equal_to<\\1> *>") |
|
static const std::regex | reUnorderedMapHash ("std::unordered_map< *(.*), *(.*), *std::hash<\\1> *>") |
|
static const std::regex | reUnorderedMapHashKeyEqual ("std::unordered_map< *(.*), *(.*), *std::hash<\\1> *, *std::equal_to<\\1> *>") |
|
static const std::regex | reUnorderedSet ("std::unordered_set") |
|
static const std::regex | reUnorderedSetCustomHashKeyEqual ("std::unordered_set< *(.*), *(.*) *, *std::equal_to<\\1> *>") |
|
static const std::regex | reUnorderedSetHash ("std::unordered_set< *(.*), *std::hash<\\1> *>") |
|
static const std::regex | reUnorderedSetHashKeyEqual ("std::unordered_set< *(.*), *std::hash<\\1> *, *std::equal_to<\\1> *>") |
|
static const std::regex | reUnsigned ("unsigned ") |
|
static const std::regex | reVector ("std::vector") |
|
static const std::regex | reWrapper ("edm::Wrapper<(.*)>") |
|
std::string | standardRenames (std::string const &iIn) |
|
std::string | subFriendlyName (std::string const &iFullName) |
|
◆ emptyString()
static const std::string edm::friendlyname::emptyString |
( |
"" |
| ) |
|
|
static |
◆ friendlyName()
std::string edm::friendlyname::friendlyName |
( |
std::string const & |
iFullName | ) |
|
Definition at line 278 of file FriendlyName.cc.
279 if constexpr (
debug) {
280 std::cout <<
"\nfriendlyName for " << iFullName << std::endl;
283 typedef tbb::concurrent_unordered_map<std::string, std::string> Map;
284 static Map s_fillToFriendlyName;
285 auto itFound = s_fillToFriendlyName.find(iFullName);
286 if (s_fillToFriendlyName.end() == itFound) {
287 itFound = s_fillToFriendlyName
291 if constexpr (
debug) {
292 std::cout <<
"result " << itFound->second << std::endl;
294 return itFound->second;
References gather_cfg::cout, debug, handleNamespaces(), hcallasereventfilter2012_cfi::prefix, standardRenames(), and subFriendlyName().
Referenced by edm::EventContentAnalyzer::analyze(), edm::CFWriter::branchesActivate(), edm::MixingModule::branchesActivate(), gen::FortranInstance::enter(), edm::TypeID::friendlyClassName(), edm::TypeWithDict::friendlyClassName(), gen::FortranInstance::leave(), main(), edm::RootFile::RootFile(), TFWLiteSelectorBasic::setupNewFile(), edm::BranchDescription::updateFriendlyClassName(), gen::FortranInstance::upEvnt(), gen::FortranInstance::upInit(), and gen::FortranInstance::~FortranInstance().
◆ handleNamespaces()
std::string edm::friendlyname::handleNamespaces |
( |
std::string const & |
iIn | ) |
|
◆ handleTemplateArguments()
std::string edm::friendlyname::handleTemplateArguments |
( |
std::string const & |
iIn | ) |
|
Definition at line 207 of file FriendlyName.cc.
210 if constexpr (
debug) {
211 std::cout <<
prefix <<
"handleTemplateArguments " << iIn <<
" removeExtraSpaces " <<
result << std::endl;
219 result2.reserve(iIn.size());
220 unsigned int openTemplate = 0;
221 bool hadTemplate =
false;
238 if (
const bool hasComma =
result[
i] ==
',', hasColon = hadTemplate and
result[
i] ==
':';
239 openTemplate == 0 and (hasComma
or hasColon)) {
241 if constexpr (
debug) {
242 std::cout <<
prefix <<
" templateClass " << templateClass << std::endl;
245 if constexpr (
debug) {
249 if constexpr (
debug) {
252 std::cout <<
prefix <<
" friendlierName " << friendlierName << std::endl;
254 result2 += friendlierName;
256 result2 += templateClass;
258 if constexpr (
debug) {
273 if constexpr (
debug) {
References cms::cuda::assert(), gather_cfg::cout, debug, mps_fire::i, or, hcallasereventfilter2012_cfi::prefix, reComma(), removeExtraSpaces(), mps_fire::result, findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, and subFriendlyName().
Referenced by subFriendlyName().
◆ reAIKR()
◆ reAllSpaces()
static const std::regex edm::friendlyname::reAllSpaces |
( |
" +" |
| ) |
|
|
static |
◆ reArray()
static const std::regex edm::friendlyname::reArray |
( |
"\\" |
[\\] | ) |
|
|
static |
◆ reBeginSpace()
static const std::regex edm::friendlyname::reBeginSpace |
( |
"^ +" |
| ) |
|
|
static |
◆ reclangabi()
static const std::regex edm::friendlyname::reclangabi |
( |
"std::__1::" |
| ) |
|
|
static |
◆ reColons()
static const std::regex edm::friendlyname::reColons |
( |
"::" |
| ) |
|
|
static |
◆ reComma()
static const std::regex edm::friendlyname::reComma |
( |
" |
, |
|
|
" |
|
|
) |
| |
|
static |
◆ reCXX11()
static const std::regex edm::friendlyname::reCXX11 |
( |
"std::__cxx11::" |
| ) |
|
|
static |
◆ reEndSpace()
static const std::regex edm::friendlyname::reEndSpace |
( |
" +$" |
| ) |
|
|
static |
◆ reLong()
static const std::regex edm::friendlyname::reLong |
( |
"long " |
| ) |
|
|
static |
◆ reLongLong()
static const std::regex edm::friendlyname::reLongLong |
( |
"Long64_t" |
| ) |
|
|
static |
◆ removeAllSpaces()
std::string edm::friendlyname::removeAllSpaces |
( |
std::string const & |
iIn | ) |
|
◆ removeExtraSpaces()
std::string edm::friendlyname::removeExtraSpaces |
( |
std::string const & |
iIn | ) |
|
◆ reOneToMany()
static const std::regex edm::friendlyname::reOneToMany |
( |
"edm::AssociationMap< *edm::OneToMany<(.*?),(.*?), *u[a-z]*> >" |
| ) |
|
|
static |
◆ reOneToManyWithQuality()
static const std::regex edm::friendlyname::reOneToManyWithQuality |
( |
"edm::AssociationMap<edm::OneToManyWithQuality<(.*?), *(.*?), *(.*?), *u[a-z]*> >" |
| ) |
|
|
static |
◆ reOneToOne()
static const std::regex edm::friendlyname::reOneToOne |
( |
"edm::AssociationMap< *edm::OneToOne<(.*?),(.*?), *u[a-z]*> >" |
| ) |
|
|
static |
◆ reOneToValue()
static const std::regex edm::friendlyname::reOneToValue |
( |
"edm::AssociationMap< *edm::OneToValue<(.*?),(.*?), *u[a-z]*> >" |
| ) |
|
|
static |
◆ reOwnVector()
static const std::regex edm::friendlyname::reOwnVector |
( |
"edm::OwnVector<(.*), *edm::ClonePolicy<\\1 *> >" |
| ) |
|
|
static |
◆ rePointer()
static const std::regex edm::friendlyname::rePointer |
( |
"\\*" |
| ) |
|
|
static |
◆ reSharedPtr()
static const std::regex edm::friendlyname::reSharedPtr |
( |
"std::shared_ptr" |
| ) |
|
|
static |
◆ reSorted()
static const std::regex edm::friendlyname::reSorted |
( |
"edm::SortedCollection<(.*), *edm::StrictWeakOrdering<\\1 *> >" |
| ) |
|
|
static |
◆ reString()
static const std::regex edm::friendlyname::reString |
( |
"std::basic_string<char>" |
| ) |
|
|
static |
◆ reString2()
static const std::regex edm::friendlyname::reString2 |
( |
"std::string" |
| ) |
|
|
static |
◆ reString3()
static const std::regex edm::friendlyname::reString3 |
( |
"std::basic_string<char,std::char_traits<char> >" |
| ) |
|
|
static |
◆ reTemplateArgs()
static const std::regex edm::friendlyname::reTemplateArgs |
( |
"*<(.*)>$" |
[^<] | ) |
|
|
static |
◆ reToRangeMap()
static const std::regex edm::friendlyname::reToRangeMap |
( |
"edm::RangeMap< *(.*), *(.*), *edm::ClonePolicy<([^>]* |
| ) |
|
|
static |
◆ reToRefs1()
static const std::regex edm::friendlyname::reToRefs1 |
( |
"edm::RefVector< *(.*)< *(.*) *>, *\\2 *, *edm::refhelper::FindUsingAdvance< *\\1< *\\2 *> *, *\\2 *> *>" |
| ) |
|
|
static |
◆ reToRefs2()
◆ reToRefsAssoc()
static const std::regex edm::friendlyname::reToRefsAssoc |
( |
"edm::RefVector< *Association(.*) *, *edm::helper(.*), *Association(.*)::Find>" |
| ) |
|
|
static |
◆ reToVector()
static const std::regex edm::friendlyname::reToVector |
( |
"edm::AssociationVector<(.*), *(.*), *edm::Ref.*,.*>" |
| ) |
|
|
static |
◆ reULongLong()
static const std::regex edm::friendlyname::reULongLong |
( |
"ULong64_t" |
| ) |
|
|
static |
◆ reUniquePtr()
static const std::regex edm::friendlyname::reUniquePtr |
( |
"^std::unique_ptr" |
| ) |
|
|
static |
◆ reUniquePtrDeleter()
static const std::regex edm::friendlyname::reUniquePtrDeleter |
( |
"^std::unique_ptr< *(.*), *std::default_delete<\\1> *>" |
| ) |
|
|
static |
◆ reUnorderedMap()
static const std::regex edm::friendlyname::reUnorderedMap |
( |
"std::unordered_map" |
| ) |
|
|
static |
◆ reUnorderedMapCustomHashKeyEqual()
static const std::regex edm::friendlyname::reUnorderedMapCustomHashKeyEqual |
( |
"std::unordered_map< *(.*), *(.*), *(.*) *, *std::equal_to<\\1> *>" |
| ) |
|
|
static |
◆ reUnorderedMapHash()
static const std::regex edm::friendlyname::reUnorderedMapHash |
( |
"std::unordered_map< *(.*), *(.*), *std::hash<\\1> *>" |
| ) |
|
|
static |
◆ reUnorderedMapHashKeyEqual()
static const std::regex edm::friendlyname::reUnorderedMapHashKeyEqual |
( |
"std::unordered_map< *(.*), *(.*), *std::hash<\\1> *, *std::equal_to<\\1> *>" |
| ) |
|
|
static |
◆ reUnorderedSet()
static const std::regex edm::friendlyname::reUnorderedSet |
( |
"std::unordered_set" |
| ) |
|
|
static |
◆ reUnorderedSetCustomHashKeyEqual()
static const std::regex edm::friendlyname::reUnorderedSetCustomHashKeyEqual |
( |
"std::unordered_set< *(.*), *(.*) *, *std::equal_to<\\1> *>" |
| ) |
|
|
static |
◆ reUnorderedSetHash()
static const std::regex edm::friendlyname::reUnorderedSetHash |
( |
"std::unordered_set< *(.*), *std::hash<\\1> *>" |
| ) |
|
|
static |
◆ reUnorderedSetHashKeyEqual()
static const std::regex edm::friendlyname::reUnorderedSetHashKeyEqual |
( |
"std::unordered_set< *(.*), *std::hash<\\1> *, *std::equal_to<\\1> *>" |
| ) |
|
|
static |
◆ reUnsigned()
static const std::regex edm::friendlyname::reUnsigned |
( |
"unsigned " |
| ) |
|
|
static |
◆ reVector()
static const std::regex edm::friendlyname::reVector |
( |
"std::vector" |
| ) |
|
|
static |
◆ reWrapper()
static const std::regex edm::friendlyname::reWrapper |
( |
"edm::Wrapper<(.*)>" |
| ) |
|
|
static |
◆ standardRenames()
std::string edm::friendlyname::standardRenames |
( |
std::string const & |
iIn | ) |
|
Definition at line 95 of file FriendlyName.cc.
97 using std::regex_replace;
References Skims_PA_cff::name, reAIKR(), reArray(), reclangabi(), reCXX11(), reLong(), reLongLong(), reOneToMany(), reOneToManyWithQuality(), reOneToOne(), reOneToValue(), reOwnVector(), rePointer(), reSharedPtr(), reSorted(), reString(), reString2(), reString3(), reToRangeMap(), reToRefs1(), reToRefs2(), reToRefsAssoc(), reToVector(), reULongLong(), reUnsigned(), reVector(), reWrapper(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by friendlyName().
◆ subFriendlyName()
std::string edm::friendlyname::subFriendlyName |
( |
std::string const & |
iFullName | ) |
|
Definition at line 129 of file FriendlyName.cc.
135 if (std::string_view{
result}.substr(0, 5) ==
"const") {
136 leadingConst =
"const";
140 if constexpr (
debug) {
141 std::cout <<
prefix <<
"subFriendlyName iFullName " << iFullName <<
" result " <<
result << std::endl;
148 result2 = regex_replace(
result,
reUniquePtr,
"UniquePtr", std::regex_constants::format_first_only);
159 result2 = regex_replace(
166 result2 = regex_replace(
result,
reUnorderedSet,
"stduset", std::regex_constants::format_first_only);
172 auto result2 = regex_replace(
175 result2 = regex_replace(
183 result2 = regex_replace(
result,
reUnorderedMap,
"stdumap", std::regex_constants::format_first_only);
192 if constexpr (
debug) {
196 if constexpr (
debug) {
199 std::cout <<
prefix <<
" aMatch " << aMatch <<
" theSub " << theSub << std::endl;
201 regex
const eMatch(
std::string(
"(^[^<]*)<") + aMatch +
">");
References gather_cfg::cout, debug, handleTemplateArguments(), eostools::move(), hcallasereventfilter2012_cfi::prefix, removeAllSpaces(), removeExtraSpaces(), mps_fire::result, reTemplateArgs(), reUniquePtr(), reUniquePtrDeleter(), reUnorderedMap(), reUnorderedMapCustomHashKeyEqual(), reUnorderedMapHash(), reUnorderedMapHashKeyEqual(), reUnorderedSet(), reUnorderedSetCustomHashKeyEqual(), reUnorderedSetHash(), reUnorderedSetHashKeyEqual(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by friendlyName(), and handleTemplateArguments().
static const std::regex rePointer("\\*")
std::string removeExtraSpaces(std::string const &iIn)
static const std::regex reToRefs2("edm::RefVector< *(.*) *, *(.*) *, *edm::refhelper::FindUsingAdvance< *\\1, *\\2 *> *>")
static const std::regex reString("std::basic_string<char>")
static const std::regex reLongLong("Long64_t")
static const std::regex reWrapper("edm::Wrapper<(.*)>")
static const std::regex reOneToValue("edm::AssociationMap< *edm::OneToValue<(.*?),(.*?), *u[a-z]*> >")
static const std::string emptyString("")
static const std::regex reUnorderedMapCustomHashKeyEqual("std::unordered_map< *(.*), *(.*), *(.*) *, *std::equal_to<\\1> *>")
std::string subFriendlyName(std::string const &iFullName)
static const std::regex reToRangeMap("edm::RangeMap< *(.*), *(.*), *edm::ClonePolicy<([^>]*)> >")
static const std::regex reUnorderedSet("std::unordered_set")
static const std::regex reArray("\\[\\]")
std::string removeAllSpaces(std::string const &iIn)
static const std::regex reUnorderedSetHashKeyEqual("std::unordered_set< *(.*), *std::hash<\\1> *, *std::equal_to<\\1> *>")
static const std::regex reToRefs1("edm::RefVector< *(.*)< *(.*) *>, *\\2 *, *edm::refhelper::FindUsingAdvance< *\\1< *\\2 *> *, *\\2 *> *>")
static const std::regex reColons("::")
static const std::regex reUnorderedMap("std::unordered_map")
static const std::regex reLong("long ")
static const std::regex reToVector("edm::AssociationVector<(.*), *(.*), *edm::Ref.*,.*>")
static const std::regex reOneToOne("edm::AssociationMap< *edm::OneToOne<(.*?),(.*?), *u[a-z]*> >")
static const std::regex reTemplateArgs("[^<]*<(.*)>$")
static const std::regex reString3("std::basic_string<char,std::char_traits<char> >")
std::string handleNamespaces(std::string const &iIn)
static const std::regex reAIKR(", *edm::helper::AssociationIdenticalKeyReference")
static const std::regex reUniquePtr("^std::unique_ptr")
static const std::regex reUniquePtrDeleter("^std::unique_ptr< *(.*), *std::default_delete<\\1> *>")
static const std::regex reSorted("edm::SortedCollection<(.*), *edm::StrictWeakOrdering<\\1 *> >")
static const std::regex reUnsigned("unsigned ")
static const std::regex reComma(",")
static const std::regex reToRefsAssoc("edm::RefVector< *Association(.*) *, *edm::helper(.*), *Association(.*)::Find>")
static const std::regex reOneToMany("edm::AssociationMap< *edm::OneToMany<(.*?),(.*?), *u[a-z]*> >")
std::string handleTemplateArguments(std::string const &)
Container::value_type value_type
static const std::regex reEndSpace(" +$")
static const std::regex reULongLong("ULong64_t")
static const std::regex reOwnVector("edm::OwnVector<(.*), *edm::ClonePolicy<\\1 *> >")
std::string standardRenames(std::string const &iIn)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
static const std::regex reCXX11("std::__cxx11::")
static const std::regex reAllSpaces(" +")
static const std::regex reBeginSpace("^ +")
static const std::regex reclangabi("std::__1::")
static const std::regex reVector("std::vector")
static const std::regex reOneToManyWithQuality("edm::AssociationMap<edm::OneToManyWithQuality<(.*?), *(.*?), *(.*?), *u[a-z]*> >")
static const std::regex reSharedPtr("std::shared_ptr")
static const std::regex reString2("std::string")
static const std::regex reUnorderedMapHashKeyEqual("std::unordered_map< *(.*), *(.*), *std::hash<\\1> *, *std::equal_to<\\1> *>")
static const std::regex reUnorderedMapHash("std::unordered_map< *(.*), *(.*), *std::hash<\\1> *>")
static const std::regex reUnorderedSetCustomHashKeyEqual("std::unordered_set< *(.*), *(.*) *, *std::equal_to<\\1> *>")
static const std::regex reUnorderedSetHash("std::unordered_set< *(.*), *std::hash<\\1> *>")