LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CollectionParameterMap.h
Go to the documentation of this file.
1 #ifndef CollectionParameterMap_h
2 #define CollectionParameterMap_h 1
3 
4 #include "EVENT/LCCollection.h"
5 
6 #include <map>
7 #include <string>
8 
9 namespace UTIL{
10 
11 
24 
25  public:
26  CollectionParameterMap() = default ;
29 
31 
35  CollectionParameterMap( const std::string& keyName , const std::string& valueName, EVENT::LCCollection* col ) ;
36 
40  CollectionParameterMap( const std::string& keyName , const std::string& valueName, const EVENT::LCCollection* col ) ;
41 
45 
48  map_type& map() { return _map ; }
49 
50 
51  protected:
52 
53 
54  void init( const EVENT::LCCollection* col ) ;
55 
60 
61 
62  } ;
63 
64 } // namespace
65 #endif
66 
67 
Helper class for setting and retrieving an std::map&lt;string,int&gt; as collection parameters.
CollectionParameterMap & operator=(const CollectionParameterMap &)=delete
std::map< std::string, int > map_type
STL class.
~CollectionParameterMap()
Update the collection parameters keyName and valueName when going out of scope.
map_type & map()
The std::map&lt; std::string, int &gt;.
The generic collection used in LCIO.
Definition: LCCollection.h:29
void init(const EVENT::LCCollection *col)