76 if(!
fgTypesPtr.compare_exchange_strong(expected,tmp)) {
106 std::map<TString, EMVA>::const_iterator it =
fStr2type.find( methodname );
109 <<
"Cannot add method " << methodname
110 <<
" to the name->type map because it exists already" <<
Endl;
126 std::map<TString, EMVA>::const_iterator it =
fStr2type.find( method );
128 Log() << kFATAL <<
"Unknown method in map: " << method <<
Endl;
131 else return it->second;
141 std::map<TString, EMVA>::const_iterator it =
fStr2type.begin();
142 for (; it!=
fStr2type.end(); ++it)
if (it->second == method)
return it->first;
143 Log() << kFATAL <<
"Unknown method index in map: " << method <<
Endl;
Basic types used by ROOT and required by TInterpreter.
bool Bool_t
Boolean (0=false, 1=true) (bool).
static std::mutex gTypesMutex
ostringstream derivative to redirect and format output
Singleton class for Global types used by TMVA.
static void DestroyInstance()
"destructor" of the single instance
static std::atomic< Types * > fgTypesPtr
TString GetMethodName(Types::EMVA method) const
static Types & Instance()
The single instance of "Types" if existing already, or create it (Singleton).
Bool_t AddTypeMapping(Types::EMVA method, const TString &methodname)
std::map< TString, TMVA::Types::EMVA > fStr2type
types-to-text map
Types::EMVA GetMethodType(const TString &method) const
returns the method type (enum) for a given method (string)
MsgLogger * fLogger
! message logger
MsgLogger & Endl(MsgLogger &ml)