| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

Classes | Functions
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 (std::string templ, const std::type_info &typ)
std::string | templateName1 (std::string templ, const std::string &typ)
std::string | templateName2 (std::string templ, const std::type_info &typ1, const std::type_info &typ2)
std::string | templateName3 (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 77 of file Dictionary.cpp.

78 {
79 std::string s = "KeyedContainer<";
80 s += typeName( typ1 );
81 s += ",";
82 s += mgr_typ;
83 if ( mgr_typ[mgr_typ.length() - 1] == '>' ) s += " ";
84 s += ">";
85 return clean( s );
86 }
std::string
STL class.
gaudirun.s
string s
Definition: gaudirun.py:253
GaudiDict::typeName
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:23

std::string GaudiDict::pairName | ( | const std::type_info & | typ1,
|  | const std::type_info & | typ2
| ) |  |

Definition at line 72 of file Dictionary.cpp.

73 {
74 return templateName2( "std::pair", typ1, typ2 );
75 }
GaudiDict::templateName2
std::string templateName2(std::string templ, const std::type_info &typ1, const std::type_info &typ2)
Definition: Dictionary.cpp:45

std::string GaudiDict::relationName | ( | const std::string & | prefix,
|  | const std::type_info & | typ1,
|  | const std::type_info & | typ2
| ) |  |

Definition at line 88 of file Dictionary.cpp.

90 {
91 return "";
92 }

std::string GaudiDict::templateName1 | ( | std::string | templ,
|  | const std::type_info & | typ
| ) |  |

Definition at line 32 of file Dictionary.cpp.

33 {
34 return templateName1( std::move( templ ), typeName( typ ) );
35 }
std::move
T move(T...args)
GaudiDict::templateName1
std::string templateName1(std::string templ, const std::string &typ)
Definition: Dictionary.cpp:37
GaudiDict::typeName
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:23

std::string GaudiDict::templateName1 | ( | std::string | templ,
|  | const std::string & | typ
| ) |  |

Definition at line 37 of file Dictionary.cpp.

38 {
39 s += "<";
40 s += typ;
41 s += ( s.back() == '>' ) ? " >" : ">"; // with C++11, we can have <somename<T>>...
42 return clean( s );
43 }
gaudirun.s
string s
Definition: gaudirun.py:253

std::string GaudiDict::templateName2 | ( | std::string | templ,
|  | const std::type_info & | typ1,
|  | const std::type_info & | typ2
| ) |  |

Definition at line 45 of file Dictionary.cpp.

46 {
47 s += "<";
48 s += typeName( typ1 );
49 s += ",";
50 s += typeName( typ2 );
51 s += ( s.back() == '>' ) ? " >" : ">";
52 return clean( s );
53 }
gaudirun.s
string s
Definition: gaudirun.py:253
GaudiDict::typeName
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:23

std::string GaudiDict::templateName3 | ( | std::string | templ,
|  | const std::type_info & | typ1,
|  | const std::type_info & | typ2,
|  | const std::type_info & | typ3
| ) |  |

Definition at line 55 of file Dictionary.cpp.

57 {
58 s += "<";
59 s += typeName( typ1 );
60 s += ",";
61 s += typeName( typ2 );
62 s += ",";
63 s += typeName( typ3 );
64 s += ( s.back() == '>' ) ? " >" : ">";
65 return clean( s );
66 }
gaudirun.s
string s
Definition: gaudirun.py:253
GaudiDict::typeName
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:23

std::string GaudiDict::typeName | ( | const std::type_info & | typ | ) |

Definition at line 23 of file Dictionary.cpp.

24 {
25 std::string r = clean( System::typeinfoName( typ ) );
26 // if ( r.compare(0,4,"enum") == 0 ) {
27 // r = "int";
28 //}
29 return r;
30 }
System::typeinfoName
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:329
std::string
STL class.

std::string GaudiDict::vectorName | ( | const std::type_info & | typ | ) |

Definition at line 68 of file Dictionary.cpp.

68 { return templateName1( "std::vector", typ ); }
GaudiDict::templateName1
std::string templateName1(std::string templ, const std::string &typ)
Definition: Dictionary.cpp:37

std::string GaudiDict::vectorName | ( | const std::string & | typ | ) |

Definition at line 70 of file Dictionary.cpp.

70 { return templateName1( "std::vector", typ ); }
GaudiDict::templateName1
std::string templateName1(std::string templ, const std::string &typ)
Definition: Dictionary.cpp:37