11 namespace JetAlgorithmType {
13 static const std::string c_unknownAlg =
"UnknownAlg";
20 static const std::map<std::string, ID> nameToIDmap = {
54 static const std::map<ID, std::string> idToNamemap = {
69 auto itr = idToNamemap.find(
id );
70 if( itr != idToNamemap.end() ) {
78 auto itr = nameToIDmap.find(
n );
79 if( itr != nameToIDmap.end() ) {
89 static const std::string c_unCategorized =
"Uncategorized";
96 static const std::map<std::string, Type> nameToTypemap = {
148 static const std::map<Type, std::string> typeToNamemap {
195 auto itr = typeToNamemap.find(
t );
196 return ( ( itr != typeToNamemap.end() ) && (
t !=
Uncategorized ) );
201 auto itr = typeToNamemap.find(
id );
202 if( itr != typeToNamemap.end() ) {
205 return c_unCategorized;
210 auto itr = nameToTypemap.find(
n );
211 if( itr != nameToTypemap.end() ) {
219 namespace JetTransform {
225 case Trim:
return "Trim";
226 case Prune:
return "Prune";
232 return "UnknownTransform";