|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #ifndef TIDA_FEATURESTORE_H
16 #define TIDA_FEATURESTORE_H
26 class FeatureStore :
public std::map<std::string, TIDA::FeatureBase*> {
30 typedef std::map<std::string, FeatureBase*>
map_type;
37 const_iterator itr =
begin();
38 const_iterator iend =
end();
39 while( itr!=iend )
delete (itr++)->
second;
72 if ( itr!=
end() )
return itr->second;
84 TIDA::FeatureStore::const_iterator itr =
f.begin();
85 TIDA::FeatureStore::const_iterator iend =
f.end();
87 if ( itr->first.size()>5 )
s <<
"\t[ " << itr->first <<
":\t" << itr->second <<
" ]\n";
88 else s <<
"\t[ " << itr->first <<
":\t\t" << itr->second <<
" ]\n";
95 #endif // FEATURESTORE_H
JetConstituentVector::iterator iterator
std::ostream & operator<<(std::ostream &s, const TIDA::FeatureStore &f)
std::string find(const std::string &s)
return a remapped string
std::map< std::string, FeatureBase * > map_type
void _insert(TIDA::FeatureBase *f, const std::string &key)
int find(T *&t, const std::string &key)
void insert(T *t, const std::string &key)
actual template of the Feature wrapper - stores a pointer to an object and inherits from FeatureBase
TIDA::FeatureBase * _find(const std::string &key)
wrapper class to wrap objects such that they can be added to a generic store
very basic Feature base class just so that we can store derived classes onto the store