2 #ifndef HLTPERFORMANCEINFO_H 3 #define HLTPERFORMANCEINFO_H 32 Module(
const char *
n,
const double dt,
const double dtCPU,
34 : name_(n), dt_(dt), dtCPU_(dtCPU), status_(
stat)
93 return moduleView_.at(m);
97 moduleView_.push_back(m);
100 ModulesInPath::const_iterator
begin() {
101 return moduleView_.begin();
103 ModulesInPath::const_iterator
end() {
104 return moduleView_.end();
107 return moduleView_.at(j);
123 modules_.push_back(m);
132 modules_.push_back(newMod);
135 for (
size_t i = 0;
i < paths_.size(); ++
i ) {
136 if ( !( paths_[
i] == path ) )
continue;
138 for (
size_t j = 0; j < modules_.size(); ++j ) {
139 if ( !(modules_[j] == mod) )
continue;
140 paths_[
i].addModuleRef(j);
148 assert(( path <paths_.size()) && (mod < modules_.size()) );
149 paths_[
path].addModuleRef(mod);
153 modules_.clear(); paths_.clear();
156 for (
size_t i = 0;
i < modules_.size(); ++
i ) {
169 Modules::iterator
findModule(
const char* moduleInstanceName) ;
170 PathList::iterator
findPath(
const char* pathName) ;
175 return paths_.size();
178 return modules_.size();
182 return paths_.begin();
189 return modules_.begin();
193 return modules_.end();
219 #endif // HLTPERFORMANCEINFO_H
void reset()
reset this path
static char const * tname
T mod(const T &a, const T &b)