#include <string>
#include <vector>
#include <stdarg.h>
#include "AthenaBaseComps/AthMessaging.h"
#include "VolumeTreeNavigator.icc"
Go to the source code of this file.
|
typedef std::pair< G4VPhysicalVolume *, int > | VolID |
|
typedef std::vector< VolID > | VolTree |
|
typedef VolTree::iterator | VolNav |
|
|
template<class T > |
std::string | stringify (T obj) |
|
template<class T > |
std::string | cleanstr (T obj) |
|
◆ VolID
typedef std::pair<G4VPhysicalVolume*,int> VolID |
◆ VolNav
typedef VolTree::iterator VolNav |
◆ VolTree
◆ cleanstr()
template<class T >
std::string cleanstr |
( |
T |
obj | ) |
|
|
inline |
Definition at line 81 of file VolumeTreeNavigator.h.
84 std::string::size_type
col =
s.find_first_of(
":");
85 while (
col != std::string::npos) {
86 (
s.substr(
col,2) ==
"::") ?
s.replace(
col,2,
"_") :
s.replace(
col,1,
"-");
87 col =
s.find_first_of(
":");
89 std::string::size_type sp =
s.find_first_of(
" ");
90 while (sp != std::string::npos) {
92 sp =
s.find_first_of(
" ");
◆ stringify()
template<class T >
std::string stringify |
( |
T |
obj | ) |
|
|
inline |