CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
DTKeyedConfig Class Reference

#include <DTKeyedConfig.h>

Inheritance diagram for DTKeyedConfig:
cond::BaseKeyed

Public Types

typedef std::vector< std::string >::const_iterator data_iterator
 
typedef std::vector< int >::const_iterator link_iterator
 

Public Member Functions

void add (const std::string &data)
 
void add (int id)
 
data_iterator dataBegin () const
 
data_iterator dataEnd () const
 
 DTKeyedConfig ()
 
 DTKeyedConfig (const DTKeyedConfig &obj)
 
int getId () const
 
link_iterator linkBegin () const
 
link_iterator linkEnd () const
 
void setId (int id)
 
 ~DTKeyedConfig () override
 
- Public Member Functions inherited from cond::BaseKeyed
 BaseKeyed ()
 
 BaseKeyed (std::string const &ikey)
 
std::string const & key () const
 
void setKey (std::string const &ikey)
 
virtual ~BaseKeyed ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

int cfgId
 
std::vector< std::string > dataList
 
std::vector< int > linkList
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Description:

Date
2010/03/18 16:02:30
Revision
1.1.2.1
Author
Paolo Ronchese INFN Padova

Definition at line 35 of file DTKeyedConfig.h.

Member Typedef Documentation

◆ data_iterator

typedef std::vector<std::string>::const_iterator DTKeyedConfig::data_iterator

Definition at line 54 of file DTKeyedConfig.h.

◆ link_iterator

typedef std::vector<int>::const_iterator DTKeyedConfig::link_iterator

Definition at line 55 of file DTKeyedConfig.h.

Constructor & Destructor Documentation

◆ DTKeyedConfig() [1/2]

DTKeyedConfig::DTKeyedConfig ( )

Constructor

Definition at line 31 of file DTKeyedConfig.cc.

31 {}

◆ DTKeyedConfig() [2/2]

DTKeyedConfig::DTKeyedConfig ( const DTKeyedConfig obj)

Definition at line 33 of file DTKeyedConfig.cc.

References cfgId, dataList, linkList, and getGTfromDQMFile::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 }
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
std::vector< std::string >::const_iterator data_iterator
Definition: DTKeyedConfig.h:54

◆ ~DTKeyedConfig()

DTKeyedConfig::~DTKeyedConfig ( )
override

Destructor

Definition at line 48 of file DTKeyedConfig.cc.

48 {}

Member Function Documentation

◆ add() [1/2]

void DTKeyedConfig::add ( const std::string &  data)

Definition at line 57 of file DTKeyedConfig.cc.

References data, and dataList.

Referenced by DTUserKeyedConfigHandler::chkConfigList(), DTKeyedConfigHandler::chkConfigList(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().

57 { dataList.push_back(data); }
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:63
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ add() [2/2]

void DTKeyedConfig::add ( int  id)

Definition at line 59 of file DTKeyedConfig.cc.

References linkList.

Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().

59 { linkList.push_back(id); }
std::vector< int > linkList
Definition: DTKeyedConfig.h:64

◆ dataBegin()

DTKeyedConfig::data_iterator DTKeyedConfig::dataBegin ( ) const

Definition at line 61 of file DTKeyedConfig.cc.

References dataList.

Referenced by DTKeyedConfigCache::get().

61 { return dataList.begin(); }
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:63

◆ dataEnd()

DTKeyedConfig::data_iterator DTKeyedConfig::dataEnd ( ) const

Definition at line 63 of file DTKeyedConfig.cc.

References dataList.

Referenced by DTKeyedConfigCache::get().

63 { return dataList.end(); }
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:63

◆ getId()

int DTKeyedConfig::getId ( ) const

Operations

Definition at line 53 of file DTKeyedConfig.cc.

References cfgId.

Referenced by DTKeyedConfigCache::get().

53 { return cfgId; }

◆ linkBegin()

DTKeyedConfig::link_iterator DTKeyedConfig::linkBegin ( ) const

Definition at line 65 of file DTKeyedConfig.cc.

References linkList.

65 { return linkList.begin(); }
std::vector< int > linkList
Definition: DTKeyedConfig.h:64

◆ linkEnd()

DTKeyedConfig::link_iterator DTKeyedConfig::linkEnd ( ) const

Definition at line 67 of file DTKeyedConfig.cc.

References linkList.

67 { return linkList.end(); }
std::vector< int > linkList
Definition: DTKeyedConfig.h:64

◆ serialize()

template<class Archive >
void DTKeyedConfig::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setId()

void DTKeyedConfig::setId ( int  id)

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 66 of file DTKeyedConfig.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 66 of file DTKeyedConfig.h.

Member Data Documentation

◆ cfgId

int DTKeyedConfig::cfgId
private

Definition at line 62 of file DTKeyedConfig.h.

Referenced by DTKeyedConfig(), getId(), and setId().

◆ dataList

std::vector<std::string> DTKeyedConfig::dataList
private

Definition at line 63 of file DTKeyedConfig.h.

Referenced by add(), dataBegin(), dataEnd(), and DTKeyedConfig().

◆ linkList

std::vector<int> DTKeyedConfig::linkList
private

Definition at line 64 of file DTKeyedConfig.h.

Referenced by add(), DTKeyedConfig(), linkBegin(), and linkEnd().