CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTKeyedConfig.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * $Date: 2010/03/18 16:03:17 $
5  * $Revision: 1.1.2.1 $
6  * \author Paolo Ronchese INFN Padova
7  *
8  */
9 
10 //-----------------------
11 // This Class' Header --
12 //-----------------------
14 
15 //-------------------------------
16 // Collaborating Class Headers --
17 //-------------------------------
18 
19 //---------------
20 // C++ Headers --
21 //---------------
22 #include <iostream>
23 
24 //-------------------
25 // Initializations --
26 //-------------------
27 
28 //----------------
29 // Constructors --
30 //----------------
32 
33 DTKeyedConfig::DTKeyedConfig(const DTKeyedConfig& obj) : cond::BaseKeyed::BaseKeyed(obj) {
34  cfgId = obj.cfgId;
35  data_iterator d_iter = obj.dataList.begin();
36  data_iterator d_iend = obj.dataList.end();
37  while (d_iter != d_iend)
38  dataList.push_back(*d_iter++);
39  link_iterator l_iter = obj.linkList.begin();
40  link_iterator l_iend = obj.linkList.end();
41  while (l_iter != l_iend)
42  linkList.push_back(*l_iter++);
43 }
44 
45 //--------------
46 // Destructor --
47 //--------------
49 
50 //--------------
51 // Operations --
52 //--------------
53 int DTKeyedConfig::getId() const { return cfgId; }
54 
55 void DTKeyedConfig::setId(int id) { cfgId = id; }
56 
57 void DTKeyedConfig::add(const std::string& data) { dataList.push_back(data); }
58 
59 void DTKeyedConfig::add(int id) { linkList.push_back(id); }
60 
62 
64 
66 
uint16_t *__restrict__ id
void add(const std::string &data)
data_iterator dataBegin() const
link_iterator linkBegin() const
link_iterator linkEnd() const
~DTKeyedConfig() override
std::vector< int > linkList
Definition: DTKeyedConfig.h:64
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:63
std::vector< int >::const_iterator link_iterator
Definition: DTKeyedConfig.h:55
void setId(int id)
int getId() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::vector< std::string >::const_iterator data_iterator
Definition: DTKeyedConfig.h:54
data_iterator dataEnd() const