| 200 | //============================================================================// |
| 201 | |
| 202 | G4RunManagerType G4RunManagerFactory::GetType(const std::string& key) |
| 203 | { |
| 204 | // IGNORES CASE! |
| 205 | static const auto opts = std::regex::icase; |
| 206 | |
| 207 | if (std::regex_match(key, std::regex("^(Serial).*", opts))) return G4RunManagerType::Serial; |
| 208 | if (std::regex_match(key, std::regex("^(MT).*", opts))) return G4RunManagerType::MT; |
| 209 | if (std::regex_match(key, std::regex("^(Task).*", opts))) return G4RunManagerType::Tasking; |
| 210 | if (std::regex_match(key, std::regex("^(TBB).*", opts))) return G4RunManagerType::TBB; |
| 211 | if (std::regex_match(key, std::regex("^(SubEvt).*", opts))) return G4RunManagerType::SubEvt; |
| 212 | |
| 213 | return G4RunManagerType::Default; |
| 214 | } |
| 215 | |
| 216 | //============================================================================// |
| 217 |
no outgoing calls
no test coverage detected