All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiDict Namespace Reference

Classes

struct  KeyedContainerDict
 
struct  KeyedObjectDict
 

Functions

std::string typeName (const std::type_info &typ)
 
std::string vectorName (const std::type_info &typ)
 
std::string vectorName (const std::string &typ)
 
std::string pairName (const std::type_info &typ1, const std::type_info &typ2)
 
std::string relationName (const std::string &prefix, const std::type_info &typ1, const std::type_info &typ2)
 
std::string templateName1 (const std::string &templ, const std::type_info &typ)
 
std::string templateName1 (const std::string &templ, const std::string &typ)
 
std::string templateName2 (const std::string &templ, const std::type_info &typ1, const std::type_info &typ2)
 
std::string templateName3 (const std::string &templ, const std::type_info &typ1, const std::type_info &typ2, const std::type_info &typ3)
 
std::string keyedContainerName (const std::string &prefix, const std::type_info &typ1)
 

Function Documentation

std::string GaudiDict::keyedContainerName ( const std::string &  prefix,
const std::type_info &  typ1 
)

Definition at line 73 of file Dictionary.cpp.

73  {
74  std::string s = "KeyedContainer<";
75  s += typeName(typ1);
76  s += ",";
77  s += mgr_typ;
78  if ( mgr_typ[mgr_typ.length()-1]=='>' ) s += " ";
79  s += ">";
80  return clean(s);
81 }
string s
Definition: gaudirun.py:210
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:22
std::string GaudiDict::pairName ( const std::type_info &  typ1,
const std::type_info &  typ2 
)

Definition at line 69 of file Dictionary.cpp.

69  {
70  return templateName2("std::pair", typ1, typ2);
71 }
std::string templateName2(const std::string &templ, const std::type_info &typ1, const std::type_info &typ2)
Definition: Dictionary.cpp:41
std::string GaudiDict::relationName ( const std::string &  prefix,
const std::type_info &  typ1,
const std::type_info &  typ2 
)

Definition at line 83 of file Dictionary.cpp.

83  {
84  return "";
85 }
std::string GaudiDict::templateName1 ( const std::string &  templ,
const std::type_info &  typ 
)

Definition at line 30 of file Dictionary.cpp.

30  {
31  return templateName1(templ, typeName(typ));
32 }
std::string templateName1(const std::string &templ, const std::string &typ)
Definition: Dictionary.cpp:34
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:22
std::string GaudiDict::templateName1 ( const std::string &  templ,
const std::string &  typ 
)

Definition at line 34 of file Dictionary.cpp.

34  {
35  std::string s = templ + "<";
36  s += typ;
37  s += (s[s.length()-1] == '>') ? " >" : ">";
38  return clean(s);
39 }
string s
Definition: gaudirun.py:210
std::string GaudiDict::templateName2 ( const std::string &  templ,
const std::type_info &  typ1,
const std::type_info &  typ2 
)

Definition at line 41 of file Dictionary.cpp.

41  {
42  std::string s = templ + "<";
43  s += typeName(typ1);
44  s += ",";
45  s += typeName(typ2);
46  s += (s[s.length()-1] == '>') ? " >" : ">";
47  return clean(s);
48 }
string s
Definition: gaudirun.py:210
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:22
std::string GaudiDict::templateName3 ( const std::string &  templ,
const std::type_info &  typ1,
const std::type_info &  typ2,
const std::type_info &  typ3 
)

Definition at line 50 of file Dictionary.cpp.

50  {
51  std::string s = templ + "<";
52  s += typeName(typ1);
53  s += ",";
54  s += typeName(typ2);
55  s += ",";
56  s += typeName(typ3);
57  s += (s[s.length()-1] == '>') ? " >" : ">";
58  return clean(s);
59 }
string s
Definition: gaudirun.py:210
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:22
std::string GaudiDict::typeName ( const std::type_info &  typ)

Definition at line 22 of file Dictionary.cpp.

22  {
23  std::string r = clean(System::typeinfoName(typ));
24  //if ( r.substr(0,4) == "enum" ) {
25  // r = "int";
26  //}
27  return r;
28 }
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:298
std::string GaudiDict::vectorName ( const std::type_info &  typ)

Definition at line 61 of file Dictionary.cpp.

61  {
62  return templateName1("std::vector", typ);
63 }
std::string templateName1(const std::string &templ, const std::string &typ)
Definition: Dictionary.cpp:34
std::string GaudiDict::vectorName ( const std::string &  typ)

Definition at line 65 of file Dictionary.cpp.

65  {
66  return templateName1("std::vector", typ);
67 }
std::string templateName1(const std::string &templ, const std::string &typ)
Definition: Dictionary.cpp:34