CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 //---------------
21 // C++ Headers --
22 //---------------
23 #include <iostream>
24 
25 
26 //-------------------
27 // Initializations --
28 //-------------------
29 
30 
31 //----------------
32 // Constructors --
33 //----------------
35 }
36 
37 
39  cfgId = obj.cfgId;
40  data_iterator d_iter = obj.dataList.begin();
41  data_iterator d_iend = obj.dataList.end();
42  while ( d_iter != d_iend ) dataList.push_back( *d_iter++ );
43  link_iterator l_iter = obj.linkList.begin();
44  link_iterator l_iend = obj.linkList.end();
45  while ( l_iter != l_iend ) linkList.push_back( *l_iter++ );
46 }
47 
48 
49 //--------------
50 // Destructor --
51 //--------------
53 }
54 
55 //--------------
56 // Operations --
57 //--------------
58 int DTKeyedConfig::getId() const {
59  return cfgId;
60 }
61 
62 
63 void DTKeyedConfig::setId( int id ) {
64  cfgId = id;
65 }
66 
67 
69  dataList.push_back( data );
70 }
71 
72 
73 void DTKeyedConfig::add( int id ) {
74  linkList.push_back( id );
75 }
76 
77 
79  return dataList.begin();
80 }
81 
82 
84  return dataList.end();
85 }
86 
87 
89  return linkList.begin();
90 }
91 
92 
94  return linkList.end();
95 }
96 
97 
98 
99 
100 
101 
virtual ~DTKeyedConfig()
void add(const std::string &data)
data_iterator dataBegin() const
link_iterator linkBegin() const
link_iterator linkEnd() const
std::vector< int >::const_iterator link_iterator
Definition: DTKeyedConfig.h:57
std::vector< int > linkList
Definition: DTKeyedConfig.h:67
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:66
void setId(int id)
int getId() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::vector< std::string >::const_iterator data_iterator
Definition: DTKeyedConfig.h:56
data_iterator dataEnd() const