LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IndexMap.h
Go to the documentation of this file.
1 #ifndef LCIO_INDEXMAP_H
2 #define LCIO_INDEXMAP_H 1
3 
4 #include "EVENT/LCCollection.h"
5 #include "EVENT/LCParameters.h"
6 
7 #include "LCIOSTLTypes.h"
8 
9 #include <string>
10 
11 namespace UTIL{
12 
21  class IndexMap{
22 
23  public:
24 
58  IndexMap(const EVENT::LCCollection* col, const std::string& key1, const std::string& key2);
59 
61  IndexMap(const IndexMap&) = delete ;
63  IndexMap& operator=(const IndexMap&) = delete ;
64 
65  //destructor
66  ~IndexMap();
67 
69  int encode(const std::string name);
70 
72  const std::string& decode(int type) const;
73 
74  protected:
80  }; // class
81 
82 }//namespace
83 
84 #endif /* ifndef LCIO_INDEXMAP_H */
const std::string & decode(int type) const
decode int to string (e.g.
Definition: IndexMap.cc:42
const std::string _key2
Definition: IndexMap.h:77
int encode(const std::string name)
encode string to index (e.g.
Definition: IndexMap.cc:21
IndexMap & operator=(const IndexMap &)=delete
no assignment operator
EVENT::StringVec _strvec
Definition: IndexMap.h:78
STL class.
const std::string _key1
Definition: IndexMap.h:76
The generic collection used in LCIO.
Definition: LCCollection.h:29
IndexMap(const EVENT::LCCollection *col, const std::string &key1, const std::string &key2)
Constructor: takes as arguments the collection where the parameters are stored and the parameter name...
Definition: IndexMap.cc:12
utility class to manage indices according to Collection Parameters
Definition: IndexMap.h:21
const EVENT::LCCollection * _col
Definition: IndexMap.h:75
EVENT::IntVec _intvec
Definition: IndexMap.h:79